From 6244d184776b7aa7254c878cf3eb2bacf5571517 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 18 Jul 2001 23:43:37 +0000 Subject: [PATCH] Compile source files in alphabetical order llvm-svn: 202 --- llvm/Makefile.common | 3 ++- llvm/Makefile.rules | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm/Makefile.common b/llvm/Makefile.common index 027c4b62268c..2c5f702f0d3b 100644 --- a/llvm/Makefile.common +++ b/llvm/Makefile.common @@ -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 diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index 027c4b62268c..2c5f702f0d3b 100644 --- a/llvm/Makefile.rules +++ b/llvm/Makefile.rules @@ -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