| 1 |
# Makefile for CTANGLE and CWEAVE, pc/big versions, using |
| 2 |
# Borland C++ 3.1 and Borland Make. |
| 3 |
# |
| 4 |
# (This file contributed by Barry Schwartz, [email protected], |
| 5 |
# 24 Jul 94.) |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
CC = bcc |
| 10 |
|
| 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- |
| 16 |
|
| 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 |
| 21 |
|
| 22 |
LCFLAGS = -mc -Ff=5000 -d -w-pro $(DEBUG) |
| 23 |
CFLAGS = $(LCFLAGS) $(OPT) |
| 24 |
COMPILE = $(CC) $(CFLAGS) |
| 25 |
|
| 26 |
LINK = $(CC) $(LCFLAGS) -e |
| 27 |
|
| 28 |
|
| 29 |
|
| 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 |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
all default: ctangle.exe cweave.exe |
| 41 |
|
| 42 |
|
| 43 |
ctangle.exe: ctangle.obj common.obj |
| 44 |
$(LINK)$* $** |
| 45 |
|
| 46 |
cweave.exe: cweave.obj common.obj |
| 47 |
$(LINK)$* $** |
| 48 |
|
| 49 |
|
| 50 |
common.obj: common.w comm-bs.ch |
| 51 |
$(CTANGLE) common.w comm-bs.ch |
| 52 |
$(COMPILE) -c common.c |
| 53 |
|
| 54 |
ctangle.obj: ctangle.w common.h ctang-bs.ch |
| 55 |
$(CTANGLE) ctangle.w ctang-bs.ch |
| 56 |
$(COMPILE) -c ctangle.c |
| 57 |
|
| 58 |
cweave.obj: cweave.w common.h cweav-bs.ch |
| 59 |
$(CTANGLE) cweave.w cweav-bs.ch |
| 60 |
$(COMPILE) -c cweave.c |