home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sa104os2.zip / SATHR104.ZIP / SATHER / SYSTEM / GC / MAKEFILE.NT < prev    next >
Text File  |  1994-12-22  |  2KB  |  60 lines

  1. # Makefile for Windows NT.  Assumes Microsoft compiler, and a single thread.
  2. # DLLs are included in the root set under NT, but not under win32S.
  3. # Use "nmake nodebug=1 all" for optimized versions of library, gctest and editor.
  4.  
  5. !include <ntwin32.mak>
  6.  
  7. OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj obj_map.obj blacklst.obj finalize.obj new_hblk.obj dbg_mlc.obj malloc.obj stubborn.obj dyn_load.obj typd_mlc.obj ptr_chck.obj gc_cpp.obj
  8.  
  9. all: gctest.exe cord\de.exe test_cpp.exe
  10.  
  11. .c.obj:
  12.     $(cc) $(cdebug) $(cflags) $(cvars) -DSMALL_CONFIG -DSILENT -DALL_INTERIOR_POINTERS $*.c /Fo$*.obj
  13.  
  14. .cpp.obj:
  15.     $(cc) $(cdebug) $(cflags) $(cvars) -DSMALL_CONFIG -DSILENT -DALL_INTERIOR_POINTERS $*.CPP /Fo$*.obj
  16.  
  17. $(OBJS) test.obj: gc_priv.h gc_hdrs.h gc.h
  18.  
  19. gc.lib: $(OBJS)
  20.     lib /MACHINE:i386 /out:gc.lib $(OBJS)
  21. # The original NT SDK used lib32 instead of lib
  22.  
  23. gctest.exe: test.obj gc.lib
  24. #    The following works for win32 debugging.  For win32s debugging use debugtype:coff
  25. #    and add mapsympe line.
  26. #  This produces a "GUI" applications that opens no windows and writes to the log file
  27. #  "gc.log".  This is done to make the result runnable under win32s.
  28.     $(link) -debug:full -debugtype:cv $(guiflags) -stack:131072 -out:$*.exe test.obj $(guilibs) gc.lib
  29. #    mapsympe -n -o gctest.sym gctest.exe
  30.  
  31. cord\de_win.rbj: cord\de_win.res
  32.     cvtres -$(CPU) cord\de_win.res -o cord\de_win.rbj
  33.  
  34. cord\de.obj cord\de_win.obj: cord\cord.h cord\cord_pos.h cord\de_win.h cord\de_cmds.h
  35.  
  36. cord\de_win.res: cord\de_win.rc cord\de_win.h cord\de_cmds.h
  37.     $(rc) $(rcvars) -r -fo cord\de_win.res $(cvars) cord\de_win.rc
  38.  
  39. # Cord/de is a real win32 gui application.
  40. cord\de.exe: cord\cordbscs.obj cord\cordxtra.obj cord\de.obj cord\de_win.obj cord\de_win.rbj gc.lib
  41.     $(link) -debug:full -debugtype:cv $(guiflags) -stack:16384 -out:cord\de.exe  cord\cordbscs.obj cord\cordxtra.obj cord\de.obj cord\de_win.obj cord\de_win.rbj gc.lib $(guilibs)
  42.  
  43. gc_cpp.obj: gc_cpp.h gc.h
  44.  
  45. gc_cpp.cpp: gc_cpp.cc
  46.     copy gc_cpp.cc gc_cpp.cpp
  47.  
  48. test_cpp.cpp: test_cpp.cc
  49.     copy test_cpp.cc test_cpp.cpp
  50.  
  51. # This generates the C++ test executable.  The executable expects
  52. # a single numeric argument, which is the number of iterations.
  53. # Unlike the other test programs, this is currently a console application,
  54. # and hence does not run under win32s.
  55. test_cpp.exe: test_cpp.obj gc_cpp.h gc.h gc.lib
  56.     $(link) -debug:full -debugtype:cv $(conflags) -stack:16384 -out:test_cpp.exe test_cpp.obj gc.lib $(conlibs)
  57.  
  58.  
  59.  
  60.