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:
Vikram S. Adve 2001-10-17 12:33:55 +00:00
parent 322e49aa36
commit bd9cae260d
2 changed files with 6 additions and 6 deletions

View File

@ -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))

View File

@ -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))