diff options
author | John Criswell <criswell@uiuc.edu> | 2003-09-09 20:57:03 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-09-09 20:57:03 +0000 |
commit | 410d1b5dea31e457c5c5b88e019874789c251aee (patch) | |
tree | 5cf37d7f35474a191ff9da815e9b8a5e30fed605 /utils/Burg | |
parent | d9cd14440d6e44001d1280e75236b6a9d2247419 (diff) | |
download | external_llvm-410d1b5dea31e457c5c5b88e019874789c251aee.zip external_llvm-410d1b5dea31e457c5c5b88e019874789c251aee.tar.gz external_llvm-410d1b5dea31e457c5c5b88e019874789c251aee.tar.bz2 |
Updated to find source files using VPATH. This makes writing build rules
much cleaner and easier.
Labeled .td as a suffix for tblgen files in Makefile.rules.
Modified build rules so that source files generated during the build are placed
in the build directory and not the source directory (and not in a Debug
directory). This makes the system cleaner and allows us to have a read-only
source tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/Burg')
-rw-r--r-- | utils/Burg/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/utils/Burg/Makefile b/utils/Burg/Makefile index 060e537..f653d60 100644 --- a/utils/Burg/Makefile +++ b/utils/Burg/Makefile @@ -1,20 +1,18 @@ LEVEL = ../.. TOOLNAME = burg -ExtraSource = $(SourceDir)/gram.tab.c +ExtraSource = gram.tab.c include $(LEVEL)/Makefile.common -VPATH=$(SourceDir) +gram.tab.c gram.tab.h:: gram.yc + $(VERB) $(BISON) -o gram.tab.c -d $< -$(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 +$(SourceDir)/lex.c: gram.tab.h clean:: rm -ff gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp -$(BUILD_OBJ_DIR)/Release/lex.o $(BUILD_OBJ_DIR)/Profile/lex.o $(BUILD_OBJ_DIR)/Debug/lex.o: gram.tab.h +#$(BUILD_OBJ_DIR)/Release/lex.o $(BUILD_OBJ_DIR)/Profile/lex.o $(BUILD_OBJ_DIR)/Debug/lex.o: gram.tab.h doc.dvi: doc.tex latex doc; latex doc |