X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Makefile.rules;h=27043518f3028d2ae83e4e5cba7c69414288146e;hb=950dba04e0ac7a0ae4d47b43b60f620e053ce26b;hp=ec631b2db0d04021dee3bde5a6f5081b5d608b79;hpb=d5574f62d3932ba4adbdfb7e292c3e1e8116a06f;p=oota-llvm.git diff --git a/Makefile.rules b/Makefile.rules index ec631b2db0d..27043518f30 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -79,19 +79,27 @@ LLVMBuildTool := $(PROJ_SRC_ROOT)/utils/llvm-build/llvm-build # The files we are going to generate using llvm-build. LLVMBuildMakeFrag := $(PROJ_OBJ_ROOT)/Makefile.llvmbuild LLVMConfigLibraryDependenciesInc := \ - $(PROJ_OBJ_ROOT)/tools/llvm-config/LibraryDependencies.inc + $(PROJ_OBJ_ROOT)/tools/llvm-config-2/LibraryDependencies.inc # The rule to create the LLVMBuild Makefile fragment as well as the llvm-config # library table. # # Note that this target gets its real dependencies generated for us by # llvm-build. -$(LLVMBuildMakeFrag): +# +# We include a dependency on this Makefile to ensure that changes to the +# generation command get picked up. +$(LLVMBuildMakeFrag): $(PROJ_SRC_ROOT)/Makefile.rules $(Echo) Constructing LLVMBuild project information. $(Verb) $(LLVMBuildTool) \ + --native-target "$(ARCH)" \ + --enable-targets "$(TARGETS_TO_BUILD)" \ --write-library-table $(LLVMConfigLibraryDependenciesInc) \ --write-make-fragment $(LLVMBuildMakeFrag) +# For completeness, let Make know how the extra files are generated. +$(LLVMConfigLibraryDependenciesInc): $(LLVMBuildMakeFrag) + # Include the generated Makefile fragment. # # We currently only include the dependencies for the fragment itself if we are @@ -293,6 +301,9 @@ else endif endif +#CXX.Flags += -stdlib=libc++ +#LD.Flags += -stdlib=libc++ + ifeq ($(ENABLE_PROFILING),1) BuildMode := $(BuildMode)+Profile CXX.Flags := $(filter-out -fomit-frame-pointer,$(CXX.Flags)) -pg -g @@ -505,7 +516,7 @@ ifndef LLVM_TBLGEN LLVM_TBLGEN := $(LLVMToolDir)/llvm-tblgen$(EXEEXT) endif endif -LLVM_CONFIG := $(LLVMToolDir)/llvm-config +LLVM_CONFIG := $(LLVMToolDir)/llvm-config-2 ifndef LLVMLD LLVMLD := $(LLVMToolDir)/llvm-ld$(EXEEXT) endif @@ -1874,7 +1885,6 @@ clean-local:: ifneq ($(strip $(ObjRootDir)),) -$(Verb) $(RM) -rf $(ObjRootDir) endif - -$(Verb) $(RM) -f core core.[0-9][0-9]* *.o *.d *~ *.flc ifneq ($(strip $(SHLIBEXT)),) # Extra paranoia - make real sure SHLIBEXT is set -$(Verb) $(RM) -f *$(SHLIBEXT) endif