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 $<
12 rm -ff gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
14 $(BUILD_ROOT)/Release/lex.o $(BUILD_ROOT)/Profile/lex.o $(BUILD_ROOT)/Debug/lex.o: gram.tab.h
20 test: $(TOOLEXENAME_G) sample.gr
21 $(TOOLEXENAME_G) -I <sample.gr >sample.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample
22 $(TOOLEXENAME_G) -I sample.gr >tmp && cmp tmp sample.c
23 $(TOOLEXENAME_G) -I <sample.gr -o tmp && cmp tmp sample.c
24 $(TOOLEXENAME_G) -I sample.gr -o tmp && cmp tmp sample.c
25 $(TOOLEXENAME_G) -I -O0 <sample.gr >tmp && cmp tmp sample.c
26 $(TOOLEXENAME_G) -I -= <sample.gr >tmp && cmp tmp sample.c