Compile source files in alphabetical order

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-07-18 23:43:37 +00:00
parent 083735d582
commit febb11f9af
2 changed files with 4 additions and 2 deletions

View File

@ -87,7 +87,7 @@ ifndef Source
Source = $(wildcard *.cpp *.c *.y *.l)
endif
Objs = $(addsuffix .o,$(basename $(Source)))
Objs = $(sort $(addsuffix .o,$(basename $(Source))))
ObjectsO = $(addprefix Release/,$(Objs))
ObjectsG = $(addprefix Debug/,$(Objs))
@ -117,6 +117,7 @@ LIBNAME_AO := Release/lib$(LIBRARYNAME).a
LIBNAME_AG := Debug/lib$(LIBRARYNAME).a
all:: $(LIBNAME_AG)
###all:: $(LIBNAME_G)
# TODO: Enable optimized builds
$(LIBNAME_O): $(ObjectsO) $(LibSubDirs) Release/.dir Depend/.dir

View File

@ -87,7 +87,7 @@ ifndef Source
Source = $(wildcard *.cpp *.c *.y *.l)
endif
Objs = $(addsuffix .o,$(basename $(Source)))
Objs = $(sort $(addsuffix .o,$(basename $(Source))))
ObjectsO = $(addprefix Release/,$(Objs))
ObjectsG = $(addprefix Debug/,$(Objs))
@ -117,6 +117,7 @@ LIBNAME_AO := Release/lib$(LIBRARYNAME).a
LIBNAME_AG := Debug/lib$(LIBRARYNAME).a
all:: $(LIBNAME_AG)
###all:: $(LIBNAME_G)
# TODO: Enable optimized builds
$(LIBNAME_O): $(ObjectsO) $(LibSubDirs) Release/.dir Depend/.dir