Checkin of autoconf-style object root.
authorJohn Criswell <criswell@uiuc.edu>
Sat, 6 Sep 2003 15:20:15 +0000 (15:20 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Sat, 6 Sep 2003 15:20:15 +0000 (15:20 +0000)
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

support/tools/Burg/Makefile
utils/Burg/Makefile

index 13041b1e07291f8fe31d779a19102dd5316a9c53..060e53706c7e5881f51c1dd95ad746497e8e505e 100644 (file)
@@ -1,13 +1,15 @@
 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
index 13041b1e07291f8fe31d779a19102dd5316a9c53..060e53706c7e5881f51c1dd95ad746497e8e505e 100644 (file)
@@ -1,13 +1,15 @@
 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