summaryrefslogtreecommitdiff
path: root/utils/Burg
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-09-06 15:20:15 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-09-06 15:20:15 +0000
commit40574dd289ae24721e54b25a891a4d5b11258828 (patch)
tree4796af224be5a7448540add1929ddf197221fd13 /utils/Burg
parentc764fbc7887b8a842245b443ca0210b8bb1af5b5 (diff)
downloadllvm-40574dd289ae24721e54b25a891a4d5b11258828.tar.gz
llvm-40574dd289ae24721e54b25a891a4d5b11258828.tar.bz2
llvm-40574dd289ae24721e54b25a891a4d5b11258828.tar.xz
Checkin of autoconf-style object root.
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
Diffstat (limited to 'utils/Burg')
-rw-r--r--utils/Burg/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/Burg/Makefile b/utils/Burg/Makefile
index 13041b1e07..060e53706c 100644
--- a/utils/Burg/Makefile
+++ b/utils/Burg/Makefile
@@ -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