Needed for automatically generated .cpp files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@853
91177308-0d34-0410-b5e6-
96231b3b80d8
# Source includes all of the cpp files, and objects are derived from the
# source files...
-ifndef Source
-Source = $(wildcard *.cpp *.c *.y *.l)
-endif
+# The local Makefile can list other Source files via Source = ...
+#
+Source := $(Source) $(wildcard *.cpp *.c *.y *.l)
Objs = $(sort $(addsuffix .o,$(basename $(Source))))
ObjectsO = $(addprefix Release/,$(Objs))
# Source includes all of the cpp files, and objects are derived from the
# source files...
-ifndef Source
-Source = $(wildcard *.cpp *.c *.y *.l)
-endif
+# The local Makefile can list other Source files via Source = ...
+#
+Source := $(Source) $(wildcard *.cpp *.c *.y *.l)
Objs = $(sort $(addsuffix .o,$(basename $(Source))))
ObjectsO = $(addprefix Release/,$(Objs))