| LEVEL = ../../../../.. | |
| include $(LEVEL)/Makefile.config | |
| PROG = burg | |
| CPPFLAGS = -DDEBUG | |
| LDFLAGS = | |
| ExtraSource := y.tab.c | |
| STDIN_FILENAME = $(BUILD_SRC_DIR)/sample.gr | |
| include $(LEVEL)/Makefile.config | |
| Source := $(ExtraSource) $(wildcard $(BUILD_SRC_DIR)/*.c) | |
| include ../../Makefile.multisrc | |
| # | |
| # JTC - | |
| # This is stupid. I bet we'll yacc twice because of this, but for now it | |
| # seems to work. Ideally, these yacc rules should be in a master rule | |
| # file for the test suite, separate from the LLVM build rules. | |
| # | |
| y.tab.h:: gram.y | |
| $(YACC) -d $< | |
| y.tab.c: gram.y | |
| $(YACC) -d $< | |
| lex.c: y.tab.h | |
| src: | |
| echo Sources = $(Source) | |
| clean:: | |
| rm -f y.tab.* gram.cpp gram.h |