home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume19
/
wacco
/
part01
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-05-19
|
2KB
|
62 lines
# Copyright (c) 1991 by Parag Patel. All Rights Reserved.
# $Header: Makefile,v 1.27 91/05/17 16:29:50 hmgr Exp $
CXX = CC
.SUFFIXES: .C
.C.o:
$(CXX) $(CFLAGS) -c $<
# system-dependent options - use any appropriate -D<sys> macros
# -DBSD for a BSD derivative (Sun)
# -Dpid_t=long if your headers don't define a pid_t type
# -DFREE_TAKES_CHAR if you have a free(char*) instead of free(void*) (Sun)
CFLAGS = -g
LIBS = libwacco.a
SRCS = README Makefile wacco.1 wacco.doc wacco.doc.iw wacco.doc.ps wacco.w \
defs.h toks.h boolean.h bitset.h darray.h table.h \
bitset.C tgram.w tgram.good tgram.bad \
main.C sym.C parse.C scan.C build.C check.C read.C gen.C \
io.C version.C
OBJS = main.o sym.o parse.o scan.o build.o check.o read.o gen.o bitset.o
wacco : $(OBJS) libwacco.a
$(CXX) $(CFLAGS) -o wacco $(OBJS) $(LIBS)
libwacco.a : io.o version.o
ar ru libwacco.a $(?)
-[ -x /usr/bin/ranlib ] && ranlib libwacco.a
tst: parser.o scanner.o
$(CXX) $(CFLAGS) -o tst parser.o scanner.o $(LIBS) $(LFLAGS) -ll
-./tst <tgram.bad
./tst <tgram.good
parser.C scanner.l: tgram.w wacco
./wacco tgram.w
tar: $(SRCS)
tar -cvf - $(SRCS) | compress >wacco.tar.Z
shar: $(SRCS)
shar -ac -nwacco -l50 -owacco-shar $(SRCS)
clean:
rm -f wacco *.o libwacco.a wacco.tar.Z* wacch.shar* tst parser.C scanner.l
files:
@echo $(SRCS)
main.o : main.C toks.h defs.h boolean.h darray.h table.h bitset.h
sym.o : sym.C defs.h boolean.h darray.h table.h bitset.h
parse.o : parse.C toks.h defs.h boolean.h darray.h table.h bitset.h
scan.o : scan.C toks.h defs.h boolean.h darray.h table.h bitset.h
build.o : build.C defs.h boolean.h darray.h table.h bitset.h
check.o : check.C defs.h boolean.h darray.h table.h bitset.h
read.o : read.C toks.h defs.h boolean.h darray.h table.h bitset.h
gen.o : gen.C toks.h defs.h boolean.h darray.h table.h bitset.h
io.o : io.C toks.h defs.h boolean.h darray.h table.h bitset.h
version.o : version.C
bitset.o : bitset.C bitset.h boolean.h