forked from ivmai/bdwgc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
digimars.mak
94 lines (81 loc) · 2.34 KB
/
digimars.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Makefile to build Hans Boehm garbage collector using the Digital Mars
# compiler from www.digitalmars.com
# Written by Walter Bright
DEFINES=-D_WINDOWS -DGC_DLL -DGC_THREADS -DGC_DISCOVER_TASK_THREADS -DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DGC_GCJ_SUPPORT -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION -DUSE_MUNMAP
CFLAGS=-Iinclude -Ilibatomic_ops\src $(DEFINES) -wx -g
LFLAGS=/ma/implib/co
CC=sc
.c.obj:
$(CC) -c $(CFLAGS) $*
.cpp.obj:
$(CC) -c $(CFLAGS) -Aa $*
OBJS= \
allchblk.obj\
alloc.obj\
blacklst.obj\
checksums.obj\
dbg_mlc.obj\
fnlz_mlc.obj\
dyn_load.obj\
finalize.obj\
gc_cpp.obj\
gcj_mlc.obj\
headers.obj\
mach_dep.obj\
malloc.obj\
mallocx.obj\
mark.obj\
mark_rts.obj\
misc.obj\
new_hblk.obj\
obj_map.obj\
os_dep.obj\
ptr_chck.obj\
reclaim.obj\
typd_mlc.obj\
win32_threads.obj
targets: gc.dll gc.lib gctest.exe test_cpp.exe
gc.dll: $(OBJS) gc.def digimars.mak
$(CC) -ogc.dll $(OBJS) -L$(LFLAGS) gc.def kernel32.lib user32.lib
gc.def: digimars.mak
echo LIBRARY GC >gc.def
echo DESCRIPTION "Boehm-Demers-Weiser Garbage Collector" >>gc.def
echo EXETYPE NT >>gc.def
echo EXPORTS >>gc.def
echo GC_is_visible_print_proc >>gc.def
echo GC_is_valid_displacement_print_proc >>gc.def
clean:
del *.log gc.def gc.dll gc.lib gc.map gctest.map test_cpp.map
del tests\test.obj gctest.exe tests\test_cpp.obj test_cpp.exe
del $(OBJS)
gctest.exe: gc.lib tests\test.obj
$(CC) -ogctest.exe tests\test.obj gc.lib
tests\test.obj: tests\test.c
$(CC) -c $(CFLAGS) tests\test.c -otests\test.obj
test_cpp.exe: gc.lib tests\test_cpp.obj
$(CC) -otest_cpp.exe tests\test_cpp.obj gc.lib
tests\test_cpp.obj: tests\test_cpp.cc
$(CC) -c $(CFLAGS) -cpp tests\test_cpp.cc -otests\test_cpp.obj
allchblk.obj: allchblk.c
alloc.obj: alloc.c
blacklst.obj: blacklst.c
checksums.obj: checksums.c
dbg_mlc.obj: dbg_mlc.c
dyn_load.obj: dyn_load.c
finalize.obj: finalize.c
fnlz_mlc.obj: fnlz_mlc.c
gc_cpp.obj: gc_cpp.cc gc_cpp.cpp
headers.obj: headers.c
mach_dep.obj: mach_dep.c
malloc.obj: malloc.c
mallocx.obj: mallocx.c
mark.obj: mark.c
mark_rts.obj: mark_rts.c
misc.obj: misc.c
new_hblk.obj: new_hblk.c
obj_map.obj: obj_map.c
os_dep.obj: os_dep.c
ptr_chck.obj: ptr_chck.c
reclaim.obj: reclaim.c
typd_mlc.obj: typd_mlc.c
win32_threads.obj: win32_threads.c