source: trunk/gcc/boehm-gc/BCC_MAKEFILE@ 2544

Last change on this file since 2544 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.1 KB
Line 
1# Makefile for Borland C++ 4.5 on NT
2# For Borland 5.0, replace bc45 by bc5.
3# If you have the Borland assembler, remove "-DUSE_GENERIC"
4#
5bc= c:\bc45
6bcbin= $(bc)\bin
7bclib= $(bc)\lib
8bcinclude= $(bc)\include
9
10cc= $(bcbin)\bcc32
11rc= $(bcbin)\brc32
12lib= $(bcbin)\tlib
13link= $(bcbin)\tlink32
14cflags= -R -v -vi -H -H=gc.csm -I$(bcinclude);cord -L$(bclib) \
15 -w-pro -w-aus -w-par -w-ccc -w-rch -a4 -D__STDC__=0
16#defines= -DSILENT
17defines= -DSMALL_CONFIG -DSILENT -DALL_INTERIOR_POINTERS -DUSE_GENERIC
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
32XXXOBJS= 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 XXXstubborn.obj XXXdyn_load.obj \
36 XXXtypd_mlc.obj XXXptr_chck.obj XXXgc_cpp.obj XXXmallocx.obj
37
38OBJS= $(XXXOBJS:XXX=)
39
40all: gctest.exe cord\de.exe test_cpp.exe
41
42$(OBJS) test.obj: gc_priv.h gc_hdrs.h gc.h gcconfig.h MAKEFILE
43
44gc.lib: $(OBJS)
45 -del gc.lib
46 tlib $* @&&|
47 $(XXXOBJS:XXX=+)
48|
49
50gctest.exe: tests\test.obj gc.lib
51 $(cc) @&&|
52 $(cflags) -W -e$* tests\test.obj gc.lib
53|
54
55cord\de.obj cord\de_win.obj: cord\cord.h cord\private\cord_pos.h cord\de_win.h \
56 cord\de_cmds.h
57
58cord\de.exe: cord\cordbscs.obj cord\cordxtra.obj cord\de.obj cord\de_win.obj \
59 cord\de_win.res gc.lib
60 $(cc) @&&|
61 $(cflags) -W -e$* cord\cordbscs.obj cord\cordxtra.obj \
62 cord\de.obj cord\de_win.obj gc.lib
63|
64 $(rc) cord\de_win.res cord\de.exe
65
66gc_cpp.obj: gc_cpp.h gc.h
67
68gc_cpp.cpp: gc_cpp.cc
69 copy gc_cpp.cc gc_cpp.cpp
70
71test_cpp.cpp: tests\test_cpp.cc
72 copy tests\test_cpp.cc test_cpp.cpp
73
74test_cpp.exe: test_cpp.obj gc_cpp.h gc.h gc.lib
75 $(cc) @&&|
76 $(cflags) -W -e$* test_cpp.obj gc.lib
77|
78
79scratch:
80 -del *.obj *.res *.exe *.csm cord\*.obj cord\*.res cord\*.exe cord\*.csm
81
82
Note: See TracBrowser for help on using the repository browser.