home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-11-22 | 1.8 KB | 64 lines |
- # This file is part of CWEB.
- # It is distributed WITHOUT ANY WARRANTY, express or implied.
- # Version 3.0 --- June 1993
-
- # Copyright (C) 1987,1990,1993 Silvio Levy and Donald E. Knuth
-
- # Permission is granted to make and distribute verbatim copies of this
- # document provided that the copyright notice and this permission notice
- # are preserved on all copies.
-
- # Permission is granted to copy and distribute modified versions of this
- # document under the conditions for verbatim copying, provided that the
- # entire resulting derived work is given a different name and distributed
- # under the terms of a permission notice identical to this one.
-
- #
- # Read the README file, then edit this file to reflect local conditions
- #
-
- # directory for TeX inputs (cwebmac.tex goes here)
- MACROSDIR= TeXInputs:
-
- # directory for CWEB inputs in @i files
- CWEBINPUTS= TeXInputs:
-
- # Set DESTPREF to null if you want to call the executables "tangle" and "weave"
- # (probably NOT a good idea; we recommend leaving DESTPREF=c)
- DESTPREF=c
-
- # Set CCHANGES to comm-foo.ch if you need changes to common.w
- CCHANGES=
-
- # We keep debugging info around, for fun, but most users don't need it
- #CFLAGS = -g
- CFLAGS = -O
- LINKFLAGS =
- #LINKFLAGS = -s # for smaller (stripped) executables on many UNIX systems
-
- # What C compiler are you using?
- CC = gcc
-
- ########## You shouldn't have to change anything after this point #######
-
- CTANGLE = ctangle
- ALMOSTALL = common.c common.h ctangle.c cwebman.tex cwebmac.tex
- ALL = $(ALMOSTALL) cweave.w
-
- all: ctangle cweave
-
- common.c: common.w $(CCHANGES)
- $(CTANGLE) common $(CCHANGES)
-
- common.o: common.c
- $(CC) $(CFLAGS) -DCWEBINPUTS=\"$(CWEBINPUTS)\" -c common.c
-
- ctangle: ctangle.o common.o
- $(CC) $(LINKFLAGS) -o ctangle ctangle.o common.o
-
- cweave: cweave.o common.o
- $(CC) $(LINKFLAGS) -o cweave cweave.o common.o
-
- usermanual: cwebman.tex cwebmac.tex
- tex cwebman.tex
-