aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.common7
-rw-r--r--Makefile.rules7
-rw-r--r--lib/Target/SparcV9/Makefile2
3 files changed, 9 insertions, 7 deletions
diff --git a/Makefile.common b/Makefile.common
index d1fd8e70ea..e56b668e52 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -17,7 +17,8 @@
#
# 3. Source - If specified, this sets the source code filenames. If this
# is not set, it defaults to be all of the .cpp, .c, .y, and .l files
-# in the current directory.
+# in the current directory. Also, if you want to build files in addition
+# to the local files, you can use the ExtraSource variable
#
# Default Rule: Make sure it's also a :: rule
@@ -78,9 +79,9 @@ MakeLib = $(AR)
# Source includes all of the cpp files, and objects are derived from the
# source files...
-# The local Makefile can list other Source files via Source = ...
+# The local Makefile can list other Source files via ExtraSource = ...
#
-Source := $(Source) $(wildcard *.cpp *.c *.y *.l)
+Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l)
Objs = $(sort $(addsuffix .o,$(basename $(Source))))
ObjectsO = $(addprefix Release/,$(Objs))
diff --git a/Makefile.rules b/Makefile.rules
index d1fd8e70ea..e56b668e52 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -17,7 +17,8 @@
#
# 3. Source - If specified, this sets the source code filenames. If this
# is not set, it defaults to be all of the .cpp, .c, .y, and .l files
-# in the current directory.
+# in the current directory. Also, if you want to build files in addition
+# to the local files, you can use the ExtraSource variable
#
# Default Rule: Make sure it's also a :: rule
@@ -78,9 +79,9 @@ MakeLib = $(AR)
# Source includes all of the cpp files, and objects are derived from the
# source files...
-# The local Makefile can list other Source files via Source = ...
+# The local Makefile can list other Source files via ExtraSource = ...
#
-Source := $(Source) $(wildcard *.cpp *.c *.y *.l)
+Source := $(ExtraSource) $(wildcard *.cpp *.c *.y *.l)
Objs = $(sort $(addsuffix .o,$(basename $(Source))))
ObjectsO = $(addprefix Release/,$(Objs))
diff --git a/lib/Target/SparcV9/Makefile b/lib/Target/SparcV9/Makefile
index 4809fb1ff1..c73f11cff9 100644
--- a/lib/Target/SparcV9/Makefile
+++ b/lib/Target/SparcV9/Makefile
@@ -1,7 +1,7 @@
LEVEL = ../../..
LIBRARYNAME = sparc
-Source = Sparc.burm.cpp
+ExtraSource = Sparc.burm.cpp
include $(LEVEL)/Makefile.common