1984-05-18 19:57:22 +00:00
|
|
|
# $Header$
|
|
|
|
|
1984-05-18 19:51:06 +00:00
|
|
|
PREFLAGS=-I../../h
|
|
|
|
CFLAGS=$(PREFLAGS)
|
1991-02-19 16:51:50 +00:00
|
|
|
LDFLAGS=
|
1984-05-18 19:51:06 +00:00
|
|
|
LINTOPTS=-hbxac $(PREFLAGS)
|
|
|
|
LIBS=../../lib/em_data.a
|
|
|
|
# LEXLIB is system dependent, try -ll or -lln first
|
1988-07-14 09:15:21 +00:00
|
|
|
LEXLIB = -lln
|
1984-05-18 19:51:06 +00:00
|
|
|
|
1988-07-08 13:57:07 +00:00
|
|
|
cgg: bootgram.o main.o bootlex.o
|
|
|
|
$(CC) $(LDFLAGS) bootgram.o main.o bootlex.o $(LIBS) $(LEXLIB) -o cgg
|
1984-05-18 19:51:06 +00:00
|
|
|
|
1984-06-21 11:13:28 +00:00
|
|
|
bootgram.c: bootgram.y
|
|
|
|
@echo expect 1 shift/reduce conflict
|
1988-07-08 13:57:07 +00:00
|
|
|
yacc -d bootgram.y
|
1984-06-21 11:13:28 +00:00
|
|
|
mv y.tab.c bootgram.c
|
|
|
|
|
1984-05-18 19:51:06 +00:00
|
|
|
install: cgg
|
|
|
|
cp cgg ../../lib/cgg
|
|
|
|
|
|
|
|
cmp: cgg
|
|
|
|
cmp cgg ../../lib/cgg
|
|
|
|
|
1988-07-08 13:57:07 +00:00
|
|
|
lint: bootgram.c main.c bootlex.c
|
|
|
|
lint $(LINTOPTS) bootgram.c main.c bootlex.c
|
1984-05-18 19:51:06 +00:00
|
|
|
clean:
|
1988-07-08 13:57:07 +00:00
|
|
|
rm -f *.o bootgram.c bootlex.c cgg y.tab.h
|
|
|
|
bootgram.o: booth.h
|
1984-05-18 19:51:06 +00:00
|
|
|
bootgram.o: ../../h/cg_pattern.h
|
1988-07-08 13:57:07 +00:00
|
|
|
bootlex.o: booth.h
|
|
|
|
bootlex.o: ../../h/cg_pattern.h
|
|
|
|
main.o: booth.h
|
|
|
|
main.o: ../../h/cg_pattern.h
|