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