From 410d1b5dea31e457c5c5b88e019874789c251aee Mon Sep 17 00:00:00 2001 From: John Criswell Date: Tue, 9 Sep 2003 20:57:03 +0000 Subject: 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 --- support/tools/Burg/Makefile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'support') diff --git a/support/tools/Burg/Makefile b/support/tools/Burg/Makefile index 060e53706c..f653d60291 100644 --- a/support/tools/Burg/Makefile +++ b/support/tools/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 -- cgit v1.2.3-18-g5258