4 EXTRASOURCES = gram.tab.c
6 include $(LEVEL)/Makefile.common
8 gram.tab.c gram.tab.h: gram.yc
9 $(VERB) $(BISON) -o gram.tab.c -d $<
14 rm -ff gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
16 $(BUILD_ROOT)/Release/lex.o $(BUILD_ROOT)/Profile/lex.o $(BUILD_ROOT)/Debug/lex.o: gram.tab.h
22 test: $(TOOLEXENAME_G) sample.gr
23 $(TOOLEXENAME_G) -I <sample.gr >sample.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample
24 $(TOOLEXENAME_G) -I sample.gr >tmp && cmp tmp sample.c
25 $(TOOLEXENAME_G) -I <sample.gr -o tmp && cmp tmp sample.c
26 $(TOOLEXENAME_G) -I sample.gr -o tmp && cmp tmp sample.c
27 $(TOOLEXENAME_G) -I -O0 <sample.gr >tmp && cmp tmp sample.c
28 $(TOOLEXENAME_G) -I -= <sample.gr >tmp && cmp tmp sample.c