summaryrefslogtreecommitdiff
path: root/web/c_cpp/cweb/makefile.bs
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/c_cpp/cweb/makefile.bs
Initial commit
Diffstat (limited to 'web/c_cpp/cweb/makefile.bs')
-rw-r--r--web/c_cpp/cweb/makefile.bs60
1 files changed, 60 insertions, 0 deletions
diff --git a/web/c_cpp/cweb/makefile.bs b/web/c_cpp/cweb/makefile.bs
new file mode 100644
index 0000000000..5e97012804
--- /dev/null
+++ b/web/c_cpp/cweb/makefile.bs
@@ -0,0 +1,60 @@
+# Makefile for CTANGLE and CWEAVE, pc/big versions, using
+# Borland C++ 3.1 and Borland Make.
+#
+# (This file contributed by Barry Schwartz, trashman@crud.mn.org,
+# 24 Jul 94.)
+
+
+
+CC = bcc
+
+# Redundant Load Suppression (-Z) is turned off, because it seems to
+# break the code. Likewise for Copy Propagation (-Op). (These
+# optimizations don't seem to cause any problems in common.w, but
+# better safe than sorry--compile everything with them turned off.)
+OPT = -O2-p -Z-
+
+# Compile with symbols. That way you'll be able to use the debugger if
+# you run into trouble. You can always use tdstrip later, to remove the
+# symbols.
+DEBUG = -v
+
+LCFLAGS = -mc -Ff=5000 -d -w-pro $(DEBUG)
+CFLAGS = $(LCFLAGS) $(OPT)
+COMPILE = $(CC) $(CFLAGS)
+
+LINK = $(CC) $(LCFLAGS) -e
+
+
+
+# Where to find an "old" version of ctangle, for bootstrapping. The first
+# time you make ctangle, you may have to edit the distributed ctangle.c
+# and/or common.c by hand to reduce the size of one or more arrays.
+# This will give you a functional ctangle.exe, which you can use to bootstrap
+# the "real" ctangle.exe.
+CTANGLE = ctangle
+
+
+
+
+all default: ctangle.exe cweave.exe
+
+
+ctangle.exe: ctangle.obj common.obj
+ $(LINK)$* $**
+
+cweave.exe: cweave.obj common.obj
+ $(LINK)$* $**
+
+
+common.obj: common.w comm-bs.ch
+ $(CTANGLE) common.w comm-bs.ch
+ $(COMPILE) -c common.c
+
+ctangle.obj: ctangle.w common.h ctang-bs.ch
+ $(CTANGLE) ctangle.w ctang-bs.ch
+ $(COMPILE) -c ctangle.c
+
+cweave.obj: cweave.w common.h cweav-bs.ch
+ $(CTANGLE) cweave.w cweav-bs.ch
+ $(COMPILE) -c cweave.c