Change Sources specifier to ExtraSources
authorChris Lattner <sabre@nondot.org>
Thu, 18 Oct 2001 01:48:09 +0000 (01:48 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Oct 2001 01:48:09 +0000 (01:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@874 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules
lib/Target/SparcV9/Makefile

index d1fd8e70ea97f5afc0bb8aa31050506f6c299838..e56b668e52703386f3f620d375d266bba3cdd4f8 100644 (file)
@@ -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))
index d1fd8e70ea97f5afc0bb8aa31050506f6c299838..e56b668e52703386f3f620d375d266bba3cdd4f8 100644 (file)
@@ -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))
index 4809fb1ff1c0b580e7cf57193623e69df804b813..c73f11cff94f5b0ece20ada645e30ed9496e66c1 100644 (file)
@@ -1,7 +1,7 @@
 LEVEL = ../../..
 LIBRARYNAME = sparc
 
-Source = Sparc.burm.cpp 
+ExtraSource = Sparc.burm.cpp 
 
 include $(LEVEL)/Makefile.common