File: makefile.bs

package info (click to toggle)
texlive-bin 2007.dfsg.2-4%2Blenny3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 245,472 kB
  • ctags: 135,653
  • sloc: ansic: 971,350; cpp: 307,149; sh: 53,218; perl: 39,201; makefile: 12,611; python: 6,078; xml: 5,342; asm: 4,245; yacc: 3,108; pascal: 2,483; ruby: 2,089; ada: 1,681; lex: 1,654; objc: 1,357; awk: 1,214; tcl: 973; cs: 879; lisp: 708; sed: 536; java: 172; csh: 47
file content (60 lines) | stat: -rw-r--r-- 1,542 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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