Allow the Source variable to be overridden completely if needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vikram S. Adve 2002-10-14 16:40:04 +00:00
parent edf3a727b7
commit ad9ea7e694
2 changed files with 6 additions and 2 deletions

View File

@ -126,7 +126,7 @@ endif
# Special tools used while building the LLVM tree. Burg is built as part of the # Special tools used while building the LLVM tree. Burg is built as part of the
# utils directory. # utils directory.
# #
BURG := $(TOOLDEBUG)/burg BURG := $(LEVEL)/utils/Burg/burg.$(UNAME)
RunBurg := $(BURG) $(BURG_OPTS) RunBurg := $(BURG) $(BURG_OPTS)
@ -198,7 +198,9 @@ BISON = bison
# source files... # source files...
# The local Makefile can list other Source files via ExtraSource = ... # The local Makefile can list other Source files via ExtraSource = ...
# #
ifndef Source
Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l) Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l)
endif
Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source))))) Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source)))))
ObjectsO := $(addprefix $(BUILD_ROOT)/Release/,$(Objs)) ObjectsO := $(addprefix $(BUILD_ROOT)/Release/,$(Objs))

View File

@ -126,7 +126,7 @@ endif
# Special tools used while building the LLVM tree. Burg is built as part of the # Special tools used while building the LLVM tree. Burg is built as part of the
# utils directory. # utils directory.
# #
BURG := $(TOOLDEBUG)/burg BURG := $(LEVEL)/utils/Burg/burg.$(UNAME)
RunBurg := $(BURG) $(BURG_OPTS) RunBurg := $(BURG) $(BURG_OPTS)
@ -198,7 +198,9 @@ BISON = bison
# source files... # source files...
# The local Makefile can list other Source files via ExtraSource = ... # The local Makefile can list other Source files via ExtraSource = ...
# #
ifndef Source
Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l) Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l)
endif
Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source))))) Objs := $(sort $(patsubst Debug/%.o, %.o, $(addsuffix .o,$(basename $(Source)))))
ObjectsO := $(addprefix $(BUILD_ROOT)/Release/,$(Objs)) ObjectsO := $(addprefix $(BUILD_ROOT)/Release/,$(Objs))