Makefile 573 B

123456789101112131415161718192021222324252627282930
  1. # $Header$
  2. PREFLAGS=-I../../h
  3. CFLAGS=$(PREFLAGS)
  4. LDFLAGS=-i
  5. LINTOPTS=-hbxac $(PREFLAGS)
  6. LIBS=../../lib/em_data.a
  7. # LEXLIB is system dependent, try -ll or -lln first
  8. LEXLIB=-lln
  9. cgg: bootgram.o
  10. $(CC) $(LDFLAGS) bootgram.o $(LIBS) $(LEXLIB) -o cgg
  11. bootgram.c: bootgram.y
  12. @echo expect 1 shift/reduce conflict
  13. yacc bootgram.y
  14. mv y.tab.c bootgram.c
  15. install: cgg
  16. cp cgg ../../lib/cgg
  17. cmp: cgg
  18. cmp cgg ../../lib/cgg
  19. lint: bootgram.c
  20. lint $(LINTOPTS) bootgram.c
  21. clean:
  22. rm -f bootgram.o bootgram.c bootlex.c cgg
  23. bootgram.o: bootlex.c
  24. bootgram.o: ../../h/cg_pattern.h