Makefile 739 B

12345678910111213141516171819202122232425262728293031323334
  1. # $Header$
  2. PREFLAGS=-I../../h
  3. CFLAGS=$(PREFLAGS)
  4. LDFLAGS=
  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 main.o bootlex.o
  10. $(CC) $(LDFLAGS) bootgram.o main.o bootlex.o $(LIBS) $(LEXLIB) -o cgg
  11. bootgram.c: bootgram.y
  12. @echo expect 1 shift/reduce conflict
  13. yacc -d 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 main.c bootlex.c
  20. lint $(LINTOPTS) bootgram.c main.c bootlex.c
  21. clean:
  22. rm -f *.o bootgram.c bootlex.c cgg y.tab.h
  23. bootgram.o: booth.h
  24. bootgram.o: ../../h/cg_pattern.h
  25. bootlex.o: booth.h
  26. bootlex.o: ../../h/cg_pattern.h
  27. main.o: booth.h
  28. main.o: ../../h/cg_pattern.h