Debian Codegraph @

external/bdwgc/BCC_MAKEFILE

raw
1 # Makefile for Borland C++ 5.5 on NT
2 #
3 bc= c:\Borland\BCC55
4 bcbin= $(bc)\bin
5 bclib= $(bc)\lib
6 bcinclude= $(bc)\include
7
8 gcinclude1 = $(bc)\gc6.2\include
9 gcinclude2 = $(bc)\gc6.2\cord
10
11 cc= $(bcbin)\bcc32
12 rc= $(bcbin)\brc32
13 lib= $(bcbin)\tlib
14 link= $(bcbin)\ilink32
15 cflags= -O2 -R -v- -vi -H -H=gc.csm -I$(bcinclude);$(gcinclude1);$(gcinclude2) -L$(bclib) \
16 -w-pro -w-aus -w-par -w-ccc -w-rch -a4
17 defines= -DALL_INTERIOR_POINTERS -DNO_GETENV -DJAVA_FINALIZATION -DENABLE_DISCLAIM -DGC_OPERATOR_NEW_ARRAY
18
19 .c.obj:
20 $(cc) @&&|
21 $(cdebug) $(cflags) $(cvars) $(defines) -o$* -c $*.c
22 |
23
24 .cpp.obj:
25 $(cc) @&&|
26 $(cdebug) $(cflags) $(cvars) $(defines) -o$* -c $*.cpp
27 |
28
29 .rc.res:
30 $(rc) -i$(bcinclude) -r -fo$* $*.rc
31
32 XXXOBJS= XXXalloc.obj XXXreclaim.obj XXXallchblk.obj XXXmisc.obj \
33 XXXmach_dep.obj XXXos_dep.obj XXXmark_rts.obj XXXheaders.obj XXXmark.obj \
34 XXXobj_map.obj XXXblacklst.obj XXXfinalize.obj XXXnew_hblk.obj \
35 XXXdbg_mlc.obj XXXmalloc.obj XXXdyn_load.obj \
36 XXXtypd_mlc.obj XXXptr_chck.obj XXXgc_cpp.obj XXXmallocx.obj \
37 XXXfnlz_mlc.obj
38
39 OBJS= $(XXXOBJS:XXX=)
40
41 all: gctest.exe cord\de.exe test_cpp.exe
42
43 $(OBJS) test.obj: include\private\gc_priv.h include\private\gc_hdrs.h include\gc.h include\private\gcconfig.h MAKEFILE
44
45 gc.lib: $(OBJS)
46 del gc.lib
47 $(lib) $* @&&|
48 $(XXXOBJS:XXX=+)
49 |
50
51 gctest.exe: tests\test.obj gc.lib
52 $(cc) @&&|
53 $(cflags) -W -e$* tests\test.obj gc.lib
54 |
55
56 cord\tests\de.obj cord\tests\de_win.obj: include\cord.h \
57 include\cord_pos.h cord\tests\de_win.h cord\tests\de_cmds.h
58
59 cord\de.exe: cord\cordbscs.obj cord\cordxtra.obj cord\tests\de.obj \
60 cord\tests\de_win.obj cord\tests\de_win.res gc.lib
61 $(cc) @&&|
62 $(cflags) -W -e$* cord\cordbscs.obj cord\cordxtra.obj \
63 cord\tests\de.obj cord\tests\de_win.obj gc.lib
64 |
65 $(rc) cord\tests\de_win.res cord\de.exe
66
67 gc_cpp.obj: include\gc_cpp.h include\gc.h
68
69 gc_cpp.cpp: gc_cpp.cc
70 copy gc_cpp.cc gc_cpp.cpp
71
72 test_cpp.cpp: tests\test_cpp.cc
73 copy tests\test_cpp.cc test_cpp.cpp
74
75 test_cpp.exe: test_cpp.obj include\gc_cpp.h include\gc.h gc.lib
76 $(cc) @&&|
77 $(cflags) -W -e$* test_cpp.obj gc.lib
78 |
79
80 scratch:
81 -del *.obj *.res *.exe *.csm cord\*.obj cord\*.res cord\*.exe cord\*.csm
82
83 clean:
84 del gc.lib
85 del *.obj
86 del tests\test.obj