Allow only extra Source files to be listed in a local Makefile.
Needed for automatically generated .cpp files. llvm-svn: 853
This commit is contained in:
parent
322e49aa36
commit
bd9cae260d
|
@ -78,9 +78,9 @@ MakeLib = $(AR)
|
|||
|
||||
# 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))
|
||||
|
|
|
@ -78,9 +78,9 @@ MakeLib = $(AR)
|
|||
|
||||
# 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))
|
||||
|
|
Loading…
Reference in New Issue