diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-07-09 22:11:43 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2010-07-09 22:11:43 +0000 |
commit | 098039e4f09f5582840ddfd5c7e26ee4fab20fdc (patch) | |
tree | f8061bcabf508cea625256bcfbd4a1e7da0fd0e4 /lldb/lib | |
parent | 78ed6b7469eac991fc1c3fa5b636cb52128bcf96 (diff) | |
download | bcm5719-llvm-098039e4f09f5582840ddfd5c7e26ee4fab20fdc.tar.gz bcm5719-llvm-098039e4f09f5582840ddfd5c7e26ee4fab20fdc.zip |
Make current Makefiles work on Linux (at least, they work for me). Please
tell me if this breaks anything.
llvm-svn: 108025
Diffstat (limited to 'lldb/lib')
-rw-r--r-- | lldb/lib/Makefile | 65 |
1 files changed, 22 insertions, 43 deletions
diff --git a/lldb/lib/Makefile b/lldb/lib/Makefile index 3a5709f9ed6..5e37a24e6c1 100644 --- a/lldb/lib/Makefile +++ b/lldb/lib/Makefile @@ -23,23 +23,17 @@ USEDLIBS = lldbAPI.a \ lldbCommands.a \ lldbCore.a \ lldbExpression.a \ - lldbHostMacOSX.a \ lldbHostPosix.a \ lldbInitAndLog.a \ lldbInterpreter.a \ lldbPluginABIMacOSX_i386.a \ lldbPluginABISysV_x86_64.a \ lldbPluginDisassemblerLLVM.a \ - lldbPluginDynamicLoaderMacOSX.a \ lldbPluginObjectContainerBSDArchive.a \ - lldbPluginObjectContainerUniversalMachO.a \ lldbPluginObjectFileELF.a \ - lldbPluginObjectFileMachO.a \ - lldbPluginProcessGDBRemote.a \ lldbPluginSymbolFileDWARF.a \ lldbPluginSymbolFileSymtab.a \ lldbPluginSymbolVendorMacOSX.a \ - lldbPluginUtility.a \ lldbSymbol.a \ lldbTarget.a \ lldbUtility.a \ @@ -58,47 +52,30 @@ USEDLIBS = lldbAPI.a \ clangSema.a \ CompilerDriver.a \ EnhancedDisassembly.a \ - LLVMAnalysis.a \ - LLVMArchive.a \ - LLVMARMAsmParser.a \ - LLVMARMAsmPrinter.a \ - LLVMARMCodeGen.a \ - LLVMARMDisassembler.a \ - LLVMARMInfo.a \ - LLVMAsmParser.a \ - LLVMAsmPrinter.a \ - LLVMBitReader.a \ - LLVMBitWriter.a \ - LLVMCodeGen.a \ - LLVMCore.a \ - LLVMExecutionEngine.a \ - LLVMInstCombine.a \ - LLVMInstrumentation.a \ - LLVMipa.a \ - LLVMInterpreter.a \ - LLVMipo.a \ - LLVMJIT.a \ - LLVMLinker.a \ - LLVMMC.a \ - LLVMMCParser.a \ - LLVMScalarOpts.a \ - LLVMSelectionDAG.a \ - LLVMSupport.a \ - LLVMSystem.a \ - LLVMTarget.a \ - LLVMTransformUtils.a \ - LLVMX86AsmParser.a \ - LLVMX86AsmPrinter.a \ - LLVMX86CodeGen.a \ - LLVMX86Disassembler.a \ - LLVMX86Info.a \ clangChecker.a -include $(LEVEL)/Makefile.common +include $(LLDB_LEVEL)/../../Makefile.config + +LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter codegen \ + ipo selectiondag jit + +ifeq ($(HOST_OS),Darwin) + USEDLIBS += lldbHostMacOSX.a \ + lldbPluginDynamicLoaderMacOSX.a \ + lldbPluginObjectContainerUniversalMachO.a \ + lldbPluginObjectFileMachO.a \ + lldbPluginProcessGDBRemote.a \ + lldbPluginUtility.a +endif + +ifeq ($(HOST_OS),Linux) + USEDLIBS += lldbHostLinux.a +endif -LLVMLibsOptions += -Wl,-all_load -v +include $(LEVEL)/Makefile.common ifeq ($(HOST_OS),Darwin) + LLVMLibsOptions += -Wl,-all_load # set dylib internal version number to llvmCore submission number ifdef LLDB_SUBMIT_VERSION LLVMLibsOptions += -Wl,-current_version \ @@ -121,8 +98,10 @@ endif ifeq ($(HOST_OS), Linux) # Include everything from the .a's into the shared library. - LLVMLibsOptions := -Wl,--whole-archive $(LLDBLibsOptions) \ + ProjLibsOptions := -Wl,--whole-archive $(ProjLibsOptions) \ -Wl,--no-whole-archive # Don't allow unresolved symbols. LLVMLibsOptions += -Wl,--no-undefined + # Link in python + LD.Flags += -lpython2.6 endif |