From 53738841e6f2964694534f4f3adeb4cd80a88c6b Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Mon, 14 Oct 2002 16:40:04 +0000 Subject: [PATCH] Allow the Source variable to be overridden completely if needed. llvm-svn: 4172 --- llvm/Makefile.common | 4 +++- llvm/Makefile.rules | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/llvm/Makefile.common b/llvm/Makefile.common index e8cc9bad5dcd..f3f3cf159ccf 100644 --- a/llvm/Makefile.common +++ b/llvm/Makefile.common @@ -126,7 +126,7 @@ endif # Special tools used while building the LLVM tree. Burg is built as part of the # utils directory. # -BURG := $(TOOLDEBUG)/burg +BURG := $(LEVEL)/utils/Burg/burg.$(UNAME) RunBurg := $(BURG) $(BURG_OPTS) @@ -198,7 +198,9 @@ BISON = bison # source files... # The local Makefile can list other Source files via ExtraSource = ... # +ifndef Source Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l) +endif Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source))))) ObjectsO := $(addprefix $(BUILD_ROOT)/Release/,$(Objs)) diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index e8cc9bad5dcd..f3f3cf159ccf 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -126,7 +126,7 @@ endif # Special tools used while building the LLVM tree. Burg is built as part of the # utils directory. # -BURG := $(TOOLDEBUG)/burg +BURG := $(LEVEL)/utils/Burg/burg.$(UNAME) RunBurg := $(BURG) $(BURG_OPTS) @@ -198,7 +198,9 @@ BISON = bison # source files... # The local Makefile can list other Source files via ExtraSource = ... # +ifndef Source Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l) +endif Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source))))) ObjectsO := $(addprefix $(BUILD_ROOT)/Release/,$(Objs))