beta-0.89.2
[luatex.git] / source / texk / web2c / cwebdir / makefile.bs
blob5e970128049ded13b63493d9557e15d3886138b2
1 # Makefile for CTANGLE and CWEAVE, pc/big versions, using
2 # Borland C++ 3.1 and Borland Make.
4 # (This file contributed by Barry Schwartz, trashman@crud.mn.org,
5 #  24 Jul 94.)
9 CC = bcc
11 # Redundant Load Suppression (-Z) is turned off, because it seems to
12 # break the code.  Likewise for Copy Propagation (-Op).  (These
13 # optimizations don't seem to cause any problems in common.w, but
14 # better safe than sorry--compile everything with them turned off.)
15 OPT = -O2-p -Z-
17 # Compile with symbols.  That way you'll be able to use the debugger if
18 # you run into trouble.  You can always use tdstrip later, to remove the
19 # symbols.
20 DEBUG = -v
22 LCFLAGS = -mc -Ff=5000 -d -w-pro $(DEBUG)
23 CFLAGS = $(LCFLAGS) $(OPT)
24 COMPILE = $(CC) $(CFLAGS)
26 LINK = $(CC) $(LCFLAGS) -e
30 # Where to find an "old" version of ctangle, for bootstrapping.  The first
31 # time you make ctangle, you may have to edit the distributed ctangle.c
32 # and/or common.c by hand to reduce the size of one or more arrays.
33 # This will give you a functional ctangle.exe, which you can use to bootstrap
34 # the "real" ctangle.exe.
35 CTANGLE = ctangle
40 all default: ctangle.exe cweave.exe
43 ctangle.exe: ctangle.obj common.obj
44         $(LINK)$* $**
46 cweave.exe: cweave.obj common.obj
47         $(LINK)$* $**
50 common.obj: common.w comm-bs.ch
51         $(CTANGLE) common.w comm-bs.ch
52         $(COMPILE) -c common.c
54 ctangle.obj: ctangle.w common.h ctang-bs.ch
55         $(CTANGLE) ctangle.w ctang-bs.ch
56         $(COMPILE) -c ctangle.c
58 cweave.obj: cweave.w common.h cweav-bs.ch
59         $(CTANGLE) cweave.w cweav-bs.ch
60         $(COMPILE) -c cweave.c