Updated Makefile for new autoconf-style object root.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8385
91177308-0d34-0410-b5e6-
96231b3b80d8
LEVEL = ../..
TOOLNAME = burg
-ExtraSource = gram.tab.c
+ExtraSource = $(SourceDir)/gram.tab.c
include $(LEVEL)/Makefile.common
-gram.tab.c gram.tab.h:: gram.yc
- $(VERB) $(BISON) -o gram.tab.c -d $<
+VPATH=$(SourceDir)
-lex.c: gram.tab.h
+$(SourceDir)/gram.tab.c $(SourceDir)/gram.tab.h:: gram.yc
+ $(VERB) $(BISON) -o $(SourceDir)/gram.tab.c -d $<
+
+$(SourceDir)/lex.c: $(SourceDir)/gram.tab.h
clean::
rm -ff gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
LEVEL = ../..
TOOLNAME = burg
-ExtraSource = gram.tab.c
+ExtraSource = $(SourceDir)/gram.tab.c
include $(LEVEL)/Makefile.common
-gram.tab.c gram.tab.h:: gram.yc
- $(VERB) $(BISON) -o gram.tab.c -d $<
+VPATH=$(SourceDir)
-lex.c: gram.tab.h
+$(SourceDir)/gram.tab.c $(SourceDir)/gram.tab.h:: gram.yc
+ $(VERB) $(BISON) -o $(SourceDir)/gram.tab.c -d $<
+
+$(SourceDir)/lex.c: $(SourceDir)/gram.tab.h
clean::
rm -ff gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp