1 # Makefile for Watcom C/C++ 10.5, 10.6, 11.0 on NT, OS2 and DOS4GW .
2 # May work with Watcom 10.0 .
6 # Uncoment one of line for cross compiling
41 # Watcom before 11.0 not support option -oh
42 # Remove it if you get error
47 DEFS=-DALL_INTERIOR_POINTERS -DSILENT #-DSMALL_CONFIG #-DGC_DEBUG
49 # ! -DUSE_GENERIC required !
50 CFLAGS=$(OPTIM) -zp4 $(CALLING) -zc -DUSE_GENERIC $(D_SYSTEM) $(DEFS)
54 OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj &
55 mach_dep.obj os_dep.obj mark_rts.obj headers.obj mark.obj &
56 obj_map.obj blacklst.obj finalize.obj new_hblk.obj &
57 dbg_mlc.obj malloc.obj stubborn.obj dyn_load.obj &
58 typd_mlc.obj ptr_chck.obj gc_cpp.obj mallocx.obj
61 all: gc.lib gctest.exe
63 # this file required for DOS4GW only
64 gc_watcom.obj: gc_watcom.asm WCC_MAKEFILE
65 $(AS) $(ASFLAGS) gc_watcom.asm
68 gc.lib: $(OBJS) gc_watcom.obj
70 @for %i in ($(OBJS)) do @%append $*.lb1 +'%i'
71 @@%append $*.lb1 +'gc_watcom.obj'
72 *wlib -b -c -n -p=512 $@ @$*.lb1
76 @for %i in ($(OBJS)) do @%append $*.lb1 +'%i'
77 *wlib -b -c -n -p=512 $@ @$*.lb1
84 gctest.exe: test.obj gc.lib
87 @%append $*.lnk sys dos4g
90 @%append $*.lnk sys nt
93 @%append $*.lnk sys os2v2
95 @%append $*.lnk op case
96 @%append $*.lnk op stack=256K
97 @%append $*.lnk name $*
98 @%append $*.lnk file test.obj
99 @%append $*.lnk library gc.lib
108 $(CXX) $(CXXFLAGS) $*.cc
110 .cpp.obj: .AUTODEPEND
111 $(CXX) $(CXXFLAGS) $*.cpp
114 @if exist *.obj del *.obj
115 @if exist *.map del *.map
116 @if exist *.lnk del *.lnk
117 @if exist *.lb1 del *.lb1
118 @if exist *.sym del *.sym
119 @if exist *.err del *.err
120 @if exist *.tmp del *.tmp
121 @if exist *.lst del *.lst
122 @if exist *.exe del *.exe
123 @if exist *.log del *.log