ack/util/cgg/Makefile

31 lines
573 B
Makefile
Raw Normal View History

1984-05-18 19:57:22 +00:00
# $Header$
1984-05-18 19:51:06 +00:00
PREFLAGS=-I../../h
CFLAGS=$(PREFLAGS)
LDFLAGS=-i
LINTOPTS=-hbxac $(PREFLAGS)
LIBS=../../lib/em_data.a
# LEXLIB is system dependent, try -ll or -lln first
LEXLIB=-lln
cgg: bootgram.o
1988-07-08 11:37:17 +00:00
$(CC) $(LDFLAGS) bootgram.o $(LIBS) $(LEXLIB) -o cgg
1984-05-18 19:51:06 +00:00
bootgram.c: bootgram.y
@echo expect 1 shift/reduce conflict
yacc bootgram.y
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
lint: bootgram.c
lint $(LINTOPTS) bootgram.c
clean:
rm -f bootgram.o bootgram.c bootlex.c cgg
bootgram.o: bootlex.c
bootgram.o: ../../h/cg_pattern.h