Allow the Source variable to be overridden completely if needed.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 14 Oct 2002 16:40:04 +0000 (16:40 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 14 Oct 2002 16:40:04 +0000 (16:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4172 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index e8cc9bad5dcd708554d06740de2246758ea49cfd..f3f3cf159ccf9f91a76f443758519734c4c3eaa6 100644 (file)
@@ -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))
index e8cc9bad5dcd708554d06740de2246758ea49cfd..f3f3cf159ccf9f91a76f443758519734c4c3eaa6 100644 (file)
@@ -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))