1 # Makefile to build Hans Boehm garbage collector using the Digital Mars
2 # compiler from www.digitalmars.com
3 # Written by Walter Bright
6 DEFINES
=-DNDEBUG
-DSILENT
-DGC_BUILD
-D_WINDOWS
-DGC_DLL
-DALL_INTERIOR_POINTERS
-D__STDC__
-DWIN32_THREADS
7 CFLAGS
=-Iinclude
$(DEFINES
) -wx
-g
15 $(CC
) -c
$(CFLAGS
) -Aa
$*
42 targets
: gc.dll gc.lib gctest.exe
44 gc.dll
: $(OBJS
) gc.def digimars.mak
45 sc
-ogc.dll
$(OBJS
) -L
$(LFLAGS
) gc.def kernel32.lib user32.lib
48 echo LIBRARY GC
>gc.def
49 echo DESCRIPTION
"Hans Boehm Garbage Collector" >>gc.def
50 echo EXETYPE NT
>>gc.def
52 echo GC_is_visible_print_proc
>>gc.def
53 echo GC_is_valid_displacement_print_proc
>>gc.def
60 gctest.exe
: gc.lib tests
\test.obj
61 sc
-ogctest.exe tests
\test.obj gc.lib
63 tests
\test.obj
: tests
\test.c
64 $(CC
) -c
-g
-DNDEBUG
-DSILENT
-DGC_BUILD
-D_WINDOWS
-DGC_DLL \
65 -DALL_INTERIOR_POINTERS
-DWIN32_THREADS \
66 -Iinclude tests
\test.c
-otests
\test.obj
68 allchblk.obj
: allchblk.c
70 blacklst.obj
: blacklst.c
71 checksums.obj
: checksums.c
72 dbg_mlc.obj
: dbg_mlc.c
73 dyn_load.obj
: dyn_load.c
74 finalize.obj
: finalize.c
75 gc_cpp.obj
: gc_cpp.
cpp
76 headers.obj
: headers.c
77 mach_dep.obj
: mach_dep.c
79 mallocx.obj
: mallocx.c
81 mark_rts.obj
: mark_rts.c
83 new_hblk.obj
: new_hblk.c
84 obj_map.obj
: obj_map.c
86 ptr_chck.obj
: ptr_chck.c
87 reclaim.obj
: reclaim.c
88 stubborn.obj
: stubborn.c
89 typd_mlc.obj
: typd_mlc.c
90 win32_threads.obj
: win32_threads.c