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