blob: 09c10c5b15f66c76a43191f20fde815483bf028f [file] [log] [blame]
LEVEL = ../../..
include $(LEVEL)/Makefile.common
PROG = burg
CPPFLAGS = -DDEBUG
LDFLAGS =
ExtraSource := y.tab.c
STDIN_FILENAME = $(PROJ_SRC_DIR)/sample.gr
include $(LLVM_OBJ_ROOT)/Makefile.config
Source := $(ExtraSource) $(wildcard $(PROJ_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