Compile source files in alphabetical order
authorChris Lattner <sabre@nondot.org>
Wed, 18 Jul 2001 23:43:37 +0000 (23:43 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Jul 2001 23:43:37 +0000 (23:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index 027c4b62268c261a96e45e3533e440afd2946db6..2c5f702f0d3b5c9b9cf58ea0a4e141f5c17c1758 100644 (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
index 027c4b62268c261a96e45e3533e440afd2946db6..2c5f702f0d3b5c9b9cf58ea0a4e141f5c17c1758 100644 (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