home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1B
/
DATAFILE_PDCD1B.iso
/
_languages
/
languages
/
cweb
/
Makefile
< prev
next >
Wrap
Makefile
|
1994-02-18
|
1KB
|
52 lines
# We run cweave with the `+d' flag, and ctangle with only default settings
CWFLAGS = +d
CTFLAGS =
# We keep debugging info around to enable the `+d' option of cweave
CFLAGS = -DSTAT -DDEBUG -I$.clib
LFLAGS =
LIBS= $.clib.o.stubs GCC:o.gcc
# Set CCHANGES to common-foo.ch if you need changes to common.w in another
# file than common.ch
CCHANGES=
# Set TCHANGES to ctangle-foo.ch if you need changes to ctangle.w in another
# file than ctangle.ch
TCHANGES=
# Set WCHANGES to cweave-foo.ch if you need changes to cweave.w in another
# file than cweave.ch
WCHANGES=
all: ctangle cweave
common.o: common.c common.h
cc $(CFLAGS) -c common.c
common.c: w.common $(CCHANGES) common.inc ch.common
ctangle common $(CCHANGES)
common.h: w.common $(CCHANGES)
ctangle common $(CCHANGES)
ctangle: ctangle.o common.o
link $(LFLAGS) -o ctangle ctangle.o common.o $.clib.o.stubs
ctangle.c: w.ctangle $(TCHANGES) common.inc common.h ch.ctangle
ctangle ctangle $(TCHANGES)
cweave: cweave.o common.o
link $(LFLAGS) -o cweave cweave.o common.o $.clib.o.stubs GCC:o.gcc
cweave.o: cweave.c common.h
gcc -nostdinc -nostdlib $(CFLAGS) -c cweave.c
ctangle.o: ctangle.c common.h
cc $(CFLAGS) -c ctangle.c
cweave.c: w.cweave $(WCHANGES) common.inc common.h w.parser w.rules
ctangle cweave $(WCHANGES)