2002-09-17 23:03:30 +00:00
|
|
|
# $Id$
|
2002-09-20 13:56:32 +00:00
|
|
|
LEVEL = ../..
|
2002-09-22 02:40:40 +00:00
|
|
|
TOOLNAME = burg
|
|
|
|
EXTRASOURCES = gram.tab.c
|
2002-09-20 13:56:32 +00:00
|
|
|
|
2002-09-22 02:40:40 +00:00
|
|
|
include $(LEVEL)/Makefile.common
|
2002-09-17 23:03:30 +00:00
|
|
|
|
2002-09-22 02:40:40 +00:00
|
|
|
gram.tab.c gram.tab.h: gram.yc
|
|
|
|
$(VERB) $(BISON) -d $<
|
|
|
|
$(VERB) mv -f gram.tab.cc gram.tab.c
|
|
|
|
$(VERB) mv -f gram.tab.hc gram.tab.h
|
2002-09-17 23:03:30 +00:00
|
|
|
|
2002-09-22 02:40:40 +00:00
|
|
|
clean::
|
|
|
|
rm -ff y.tab.h y.tab.c core *.aux *.log *.dvi sample sample.c tmp
|
2002-09-17 23:03:30 +00:00
|
|
|
|
|
|
|
$(FE_OBJS): b.h
|
|
|
|
$(BU_OBJS): b.h
|
|
|
|
$(FE_OBJS): fe.h
|
|
|
|
|
2002-09-22 02:40:40 +00:00
|
|
|
$(BUILD_ROOT)/Release/lex.o $(BUILD_ROOT)/Profile/lex.o $(BUILD_ROOT)/Debug/lex.o: gram.tab.h
|
2002-09-17 23:03:30 +00:00
|
|
|
|
|
|
|
doc.dvi: doc.tex
|
|
|
|
latex doc; latex doc
|
|
|
|
|
2002-09-20 16:14:47 +00:00
|
|
|
|
2002-09-22 02:40:40 +00:00
|
|
|
test: $(TOOLEXENAME_G) sample.gr
|
|
|
|
$(TOOLEXENAME_G) -I <sample.gr >sample.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample
|
|
|
|
$(TOOLEXENAME_G) -I sample.gr >tmp && cmp tmp sample.c
|
|
|
|
$(TOOLEXENAME_G) -I <sample.gr -o tmp && cmp tmp sample.c
|
|
|
|
$(TOOLEXENAME_G) -I sample.gr -o tmp && cmp tmp sample.c
|
|
|
|
$(TOOLEXENAME_G) -I -O0 <sample.gr >tmp && cmp tmp sample.c
|
|
|
|
$(TOOLEXENAME_G) -I -= <sample.gr >tmp && cmp tmp sample.c
|