1 # Makefile for Borland C++ 4.5 on NT
\r
2 # For Borland 5.0, replace bc45 by bc5.
\r
3 # If you have the Borland assembler, remove "-DUSE_GENERIC"
\r
8 bcinclude= $(bc)\include
\r
13 link= $(bcbin)\tlink32
\r
14 cflags= -R -v -vi -H -H=gc.csm -I$(bcinclude);cord -L$(bclib) \
\r
15 -w-pro -w-aus -w-par -w-ccc -w-rch -a4 -D__STDC__=0
\r
17 defines= -DSMALL_CONFIG -DSILENT -DALL_INTERIOR_POINTERS -DUSE_GENERIC
\r
21 $(cdebug) $(cflags) $(cvars) $(defines) -o$* -c $*.c
\r
26 $(cdebug) $(cflags) $(cvars) $(defines) -o$* -c $*.cpp
\r
30 $(rc) -i$(bcinclude) -r -fo$* $*.rc
\r
32 XXXOBJS= XXXalloc.obj XXXreclaim.obj XXXallchblk.obj XXXmisc.obj \
\r
33 XXXmach_dep.obj XXXos_dep.obj XXXmark_rts.obj XXXheaders.obj XXXmark.obj \
\r
34 XXXobj_map.obj XXXblacklst.obj XXXfinalize.obj XXXnew_hblk.obj \
\r
35 XXXdbg_mlc.obj XXXmalloc.obj XXXstubborn.obj XXXdyn_load.obj \
\r
36 XXXtypd_mlc.obj XXXptr_chck.obj XXXgc_cpp.obj XXXmallocx.obj
\r
38 OBJS= $(XXXOBJS:XXX=)
\r
40 all: gctest.exe cord\de.exe test_cpp.exe
\r
42 $(OBJS) test.obj: gc_priv.h gc_hdrs.h gc.h config.h MAKEFILE
\r
50 gctest.exe: test.obj gc.lib
\r
52 $(cflags) -W -e$* test.obj gc.lib
\r
55 cord\de.obj cord\de_win.obj: cord\cord.h cord\private\cord_pos.h cord\de_win.h \
\r
58 cord\de.exe: cord\cordbscs.obj cord\cordxtra.obj cord\de.obj cord\de_win.obj \
\r
59 cord\de_win.res gc.lib
\r
61 $(cflags) -W -e$* cord\cordbscs.obj cord\cordxtra.obj \
\r
62 cord\de.obj cord\de_win.obj gc.lib
\r
64 $(rc) cord\de_win.res cord\de.exe
\r
66 gc_cpp.obj: gc_cpp.h gc.h
\r
68 gc_cpp.cpp: gc_cpp.cc
\r
69 copy gc_cpp.cc gc_cpp.cpp
\r
71 test_cpp.cpp: test_cpp.cc
\r
72 copy test_cpp.cc test_cpp.cpp
\r
74 test_cpp.exe: test_cpp.obj gc_cpp.h gc.h gc.lib
\r
76 $(cflags) -W -e$* test_cpp.obj gc.lib
\r
80 -del *.obj *.res *.exe *.csm cord\*.obj cord\*.res cord\*.exe cord\*.csm
\r