llvm.org GIT mirror llvm / 6cb21d4
Change Library Names Not To Conflict With Others When Installed git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17286 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 14 years ago
51 changed file(s) with 101 addition(s) and 92 deletion(s). Raw diff Collapse all Expand all
77 ##===----------------------------------------------------------------------===##
88 LEVEL=../..
99 TOOLNAME=ModuleMaker
10 USEDLIBS= bcwriter vmcore support.a LLVMsystem.a
10 USEDLIBS= LLVMBCWriter LLVMCore LLVMSupport.a LLVMSystem.a
1111
1212 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88
99 LEVEL = ../..
10 LIBRARYNAME = analysis
10 LIBRARYNAME = LLVMAnalysis
1111 PARALLEL_DIRS = IPA DataStructure
1212 BUILD_ARCHIVE = 1
1313
88
99 LEVEL = ../..
1010
11 LIBRARYNAME = asmparser
11 LIBRARYNAME = LLVMAsmParser
1212
1313 include $(LEVEL)/Makefile.common
1414
88
99 LEVEL = ../..
1010 PARALLEL_DIRS = SelectionDAG
11 LIBRARYNAME = codegen
11 LIBRARYNAME = LLVMCodeGen
1212
1313 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
99 PARALLEL_DIRS =
10 LIBRARYNAME = selectiondag
10 LIBRARYNAME = LLVMSelectionDAG
1111
1212 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88
99 LEVEL = ../..
10 LIBRARYNAME = debugger
10 LIBRARYNAME = LLVMDebugger
1111
1212 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
9 LIBRARYNAME = executionengine
9 LIBRARYNAME = LLVMExecutionEngine
1010 PARALLEL_DIRS = Interpreter JIT
1111
1212 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
9 LIBRARYNAME = support
9 LIBRARYNAME = LLVMSupport
1010 BUILD_ARCHIVE = 1
1111
1212 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
9 LIBRARYNAME = LLVMsystem
9 LIBRARYNAME = LLVMSystem
1010 BUILD_ARCHIVE = 1
1111
1212 EXTRA_DIST = AIX Cygwin Darwin FreeBSD Interix Linux SunOS Unix Win32
1919 #include "Unix.h"
2020 #include
2121 #include
22 #include
2322
2423 namespace llvm {
2524 using namespace sys;
1919 #include "Unix.h"
2020 #include
2121 #include
22 #include
2322
2423 namespace llvm {
2524 using namespace sys;
77 ##===----------------------------------------------------------------------===##
88
99 LEVEL = ../../..
10 LIBRARYNAME = cwriter
10 LIBRARYNAME = LLVMCBackend
1111 include $(LEVEL)/Makefile.common
1212
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 PARALLEL_DIRS = CBackend X86 SparcV9 PowerPC Skeleton
10 LIBRARYNAME = target
10 LIBRARYNAME = LLVMTarget
1111 BUILD_ARCHIVE = 1
1212
1313 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
9 LIBRARYNAME = powerpc
9 LIBRARYNAME = LLVMPowerPC
1010 TARGET = PowerPC
1111
1212 # Make sure that tblgen is run, first thing.
77 ##===----------------------------------------------------------------------===##
88
99 LEVEL = ../../..
10 LIBRARYNAME = skeleton
10 LIBRARYNAME = LLVMSkeleton
1111
1212 TARGET = Skeleton
1313 # Make sure that tblgen is run, first thing.
88
99 LEVEL = ../../../..
1010 DIRS =
11 LIBRARYNAME = sparcv9sched
11 LIBRARYNAME = LLVMSparcV9InstrSched
1212
1313 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88
99 LEVEL = ../../../..
10 LIBRARYNAME = sparcv9livevar
10 LIBRARYNAME = LLVMSparcV9LiveVar
1111
1212 include $(LEVEL)/Makefile.common
1313
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
9 LIBRARYNAME = sparcv9
9 LIBRARYNAME = LLVMSparcV9
1010 PARALLEL_DIRS = InstrSched LiveVar ModuloScheduling RegAlloc
1111
1212 BUILT_SOURCES = \
88
99 LEVEL = ../../../..
1010 DIRS =
11 LIBRARYNAME = sparcv9modulosched
11 LIBRARYNAME = LLVMSparcV9ModuloSched
1212
1313 include $(LEVEL)/Makefile.common
88
99 LEVEL = ../../../..
1010 DIRS =
11 LIBRARYNAME = sparcv9regalloc
11 LIBRARYNAME = LLVMSparcV9RegAlloc
1212 BUILD_ARCHIVE = 1
1313
1414 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
9 LIBRARYNAME = x86
9 LIBRARYNAME = LLVMX86
1010 TARGET = X86
1111 # Make sure that tblgen is run, first thing.
1212 BUILT_SOURCES = X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
77 ##===----------------------------------------------------------------------===##
88
99 LEVEL = ../../..
10 LIBRARYNAME = hello
10 LIBRARYNAME = LLVMHello
1111 SHARED_LIBRARY = 1
1212
1313 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
9 LIBRARYNAME = ipo
9 LIBRARYNAME = LLVMipo
1010 BUILD_ARCHIVE = 1
1111
1212 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
9 LIBRARYNAME = instrument
9 LIBRARYNAME = LLVMInstrumentation
1010 PARALLEL_DIRS = ProfilePaths
1111 BUILD_ARCHIVE = 1
1212
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../../..
9 LIBRARYNAME = profpaths
9 LIBRARYNAME = LLVMProfilePaths
1010
1111 include $(LEVEL)/Makefile.common
1212
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 PARALLEL_DIRS = Utils Instrumentation Scalar IPO
10 LIBRARYNAME = transforms
10 LIBRARYNAME = LLVMTransforms
1111 BUILD_ARCHIVE = 1
1212
1313 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
9 LIBRARYNAME = scalaropts
9 LIBRARYNAME = LLVMScalarOpts
1010 BUILD_ARCHIVE = 1
1111
1212 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
9 LIBRARYNAME = transformutils
9 LIBRARYNAME = LLVMTransformUtils
1010 BUILD_ARCHIVE = 1
1111
1212 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
9 LIBRARYNAME = vmcore
9 LIBRARYNAME = LLVMCore
1010
1111 include $(LEVEL)/Makefile.common
1212
2323 all :: $(SAMPLES)
2424
2525 ifdef OPTIMIZE
26 %.bc : %.st
26 % : %.st
2727 @$(ECHO) "Compiling and Optimizing $< to $*.bc"
2828 $(VERB)$(STKRC_EXEC) -e -o - $< | opt -stats -q -f -o $*.bc \
2929 -aa-eval -adce -branch-combine -cee -constmerge -constprop -dce -die -ds-aa \
77 #
88 # Give the name of a library. This will build a dynamic version.
99 #
10 TOOLNAME=stkrc
11 LLVMLIBS= asmparser bcwriter transforms ipo.a ipa.a \
12 scalaropts analysis.a target.a transformutils \
13 vmcore support.a LLVMsystem.a
10 TOOLNAME = stkrc
11 LLVMLIBS = LLVMAsmParser LLVMBCWriter LLVMTransforms LLVMipo.a LLVMipa.a \
12 LLVMScalarOpts LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils \
13 LLVMCore LLVMSupport.a LLVMSystem.a
14
1415 USEDLIBS=stkr_compiler
1516
1617
1717 include $(LEVEL)/Makefile.config
1818
1919 # Generic JIT libraries
20 JITLIBS = lli-jit codegen executionengine
20 JITLIBS = LLVMJIT LLVMCodeGen LLVMExecutionEngine
2121 ARCHLIBS =
2222
2323 # You can enable the X86 JIT on a non-X86 host by setting the flag
2929
3030 # What the X86 JIT requires
3131 ifdef ENABLE_X86_JIT
32 JITLIBS += x86 selectiondag
32 JITLIBS += LLVMX86 LLVMSelectionDAG
3333 # X86 doesn't require any ARCHLIBS
3434 endif
3535
4242
4343 # What the Sparc JIT requires
4444 ifdef ENABLE_SPARCV9_JIT
45 JITLIBS += sparcv9
46 ARCHLIBS += sparcv9sched sparcv9livevar instrument.a profpaths \
47 bcwriter transforms.a ipo.a ipa.a datastructure.a \
48 sparcv9regalloc
45 JITLIBS += LLVMSparcV9
46 ARCHLIBS += LLVMSparcV9sched LLVMSparcV9livevar LLVMInstrumentation.a \
47 LLVMProfilePaths LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMipa.a \
48 LLVMDataStructure.a LLVMSparcV9regalloc
4949 endif
5050
5151 # You can enable the PowerPC JIT on a non-PowerPC host by setting the flag
5757
5858 # What the PowerPC JIT requires
5959 ifdef ENABLE_PPC_JIT
60 JITLIBS += powerpc
60 JITLIBS += LLVMPowerPC
6161 endif
6262
63 USEDLIBS += lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \
64 transformutils.a bcreader vmcore support target.a LLVMsystem.a
63 USEDLIBS += LLVMInterpreter $(JITLIBS) $(ARCHLIBS) LLVMScalarOpts \
64 LLVMAnalysis.a LLVMTransformUtils.a LLVMBCReader LLVMCore \
65 LLVMSupport.a LLVMTarget.a LLVMSystem.a
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = analyze
10 USEDLIBS = asmparser bcreader analysis ipa datastructure scalaropts.a \
11 transforms.a target.a scalaropts.a transformutils.a vmcore support \
12 LLVMsystem.a
10 USEDLIBS = LLVMAsmParser LLVMBCReader LLVMAnalysis LLVMipa LLVMDataStructure \
11 LLVMScalarOpts.a LLVMTransforms.a LLVMTarget.a LLVMScalarOpts.a \
12 LLVMTransformUtils.a LLVMCore LLVMSupport.a LLVMSystem.a
1313
1414 TOOLLINKOPTS = $(PLATFORMLIBDL)
1515
99
1010 TOOLNAME = bugpoint
1111
12 OPTLIBS = transforms instrument profpaths
13 ANALIBS = datastructure ipa target.a
12 OPTLIBS = LLVMTransforms LLVMInstrumentation LLVMProfilePaths
13 ANALIBS = LLVMDataStructure LLVMipa LLVMTarget.a
1414
15 USEDLIBS = ipo scalaropts analysis $(OPTLIBS) $(ANALIBS) transformutils \
16 asmparser bcreader bcwriter vmcore support LLVMsystem.a
15 USEDLIBS = LLVMipo LLVMScalarOpts LLVMAnalysis $(OPTLIBS) $(ANALIBS) \
16 LLVMTransformUtils LLVMAsmParser LLVMBCReader LLVMBCWriter LLVMCore \
17 LLVMSupport.a LLVMSystem.a
1718
1819 TOOLLINKOPTS = $(PLATFORMLIBDL)
1920
88 LEVEL = ../..
99
1010 TOOLNAME = extract
11 USEDLIBS = bcreader bcwriter transforms.a ipo.a target.a analysis.a \
12 transformutils.a ipa.a vmcore support.a LLVMsystem.a
11 USEDLIBS = LLVMBCReader LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMTarget.a \
12 LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a LLVMCore LLVMSupport.a \
13 LLVMSystem.a
1314
1415 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = gccas
11 USEDLIBS = asmparser bcwriter transforms ipo.a ipa.a scalaropts analysis.a \
12 target.a transformutils vmcore support.a LLVMsystem.a
11 USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMTransforms LLVMipo.a LLVMipa.a \
12 LLVMScalarOpts LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils \
13 LLVMCore LLVMSupport.a LLVMSystem.a
1314
1415 include $(LEVEL)/Makefile.common
99 LEVEL = ../..
1010
1111 TOOLNAME = gccld
12 USEDLIBS = ipo.a transforms.a scalaropts.a analysis.a ipa.a transformutils.a \
13 target.a bcreader bcwriter vmcore support.a LLVMsystem.a
12 USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a LLVMipa.a \
13 LLVMTransformUtils.a LLVMTarget.a LLVMBCReader LLVMBCWriter LLVMCore \
14 LLVMSupport.a LLVMSystem.a
1415
1516 include $(LEVEL)/Makefile.common
99 LEVEL = ../..
1010 TOOLNAME = llc
1111 USEDLIBS = \
12 cwriter \
13 powerpc \
14 sparcv9 \
15 x86 \
16 skeleton \
17 selectiondag \
18 sparcv9regalloc \
19 sparcv9sched \
20 codegen \
21 target.a \
22 sparcv9livevar \
23 ipa.a \
24 transforms.a \
25 scalaropts.a \
26 analysis.a \
27 transformutils.a \
28 bcreader \
29 bcwriter \
30 vmcore \
31 support.a \
32 LLVMsystem.a
12 LLVMCBackend \
13 LLVMPowerPC \
14 LLVMSparcV9 \
15 LLVMX86 \
16 LLVMSkeleton \
17 LLVMSelectionDAG \
18 LLVMSparcV9RegAlloc \
19 LLVMSparcV9InstrSched \
20 LLVMCodeGen \
21 LLVMTarget.a \
22 LLVMSparcV9LiveVar \
23 LLVMipa.a \
24 LLVMTransforms.a \
25 LLVMScalarOpts.a \
26 LLVMAnalysis.a \
27 LLVMTransformUtils.a \
28 LLVMBCReader \
29 LLVMBCWriter \
30 LLVMCore \
31 LLVMSupport.a \
32 LLVMSystem.a
33
3334 TOOLLINKOPTS = $(PLATFORMLIBDL)
3435
3536 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
9 LIBRARYNAME = execve
9 LIBRARYNAME = LLVMexecve
1010 SHARED_LIBRARY = 1
1111 include $(LEVEL)/Makefile.common
1212
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-ar
11 USEDLIBS = bcreader vmcore support.a LLVMsystem.a
11 USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
1212
1313 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = llvm-as
10 USEDLIBS = asmparser bcwriter vmcore support.a LLVMsystem.a
10 USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore LLVMSupport.a LLVMSystem.a
1111
1212 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-bcanalyzer
11 USEDLIBS = bcreader vmcore support.a LLVMsystem.a
11 USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
1212 include $(LEVEL)/Makefile.common
88
99 LEVEL = ../..
1010 TOOLNAME = llvm-db
11 USEDLIBS = debugger
11 USEDLIBS = LLVMDebugger
1212
1313 # Enable JIT support
1414 include ../Makefile.JIT
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-dis
11 USEDLIBS = bcreader vmcore support.a LLVMsystem.a
11 USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
1212 include $(LEVEL)/Makefile.common
8585 std::set DefinedSymbols;
8686 UndefinedSymbols.clear(); // Start out empty
8787
88 // Add in all the external functions
8889 for (Module::iterator I = M->begin(), E = M->end(); I != E; ++I)
8990 if (I->hasName()) {
9091 if (I->isExternal())
9293 else if (!I->hasInternalLinkage())
9394 DefinedSymbols.insert(I->getName());
9495 }
96
97 // Add in all the external globals
9598 for (Module::giterator I = M->gbegin(), E = M->gend(); I != E; ++I)
9699 if (I->hasName()) {
97100 if (I->isExternal())
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-link
11 USEDLIBS = bcreader bcwriter vmcore support.a LLVMsystem.a
11 USEDLIBS = LLVMBCReader LLVMBCWriter LLVMCore LLVMSupport.a LLVMSystem.a
1212
1313 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-nm
11 USEDLIBS = bcreader vmcore support.a LLVMsystem.a
11 USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
1212 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-prof
11 USEDLIBS = analysis.a bcreader vmcore support.a LLVMsystem.a
11 USEDLIBS = LLVMAnalysis.a LLVMBCReader LLVMCore LLVMSupport.a LLVMSystem.a
1212 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99 TOOLNAME = opt
1010
11 USEDLIBS = bcreader bcwriter \
12 instrument profpaths scalaropts \
13 ipo ipa datastructure transforms target.a analysis \
14 transformutils vmcore support LLVMsystem.a
11 USEDLIBS = LLVMBCReader LLVMBCWriter LLVMInstrumentation LLVMProfilePaths \
12 LLVMScalarOpts LLVMipo LLVMipa LLVMDataStructure LLVMTransforms \
13 LLVMTarget.a LLVMAnalysis LLVMTransformUtils LLVMCore LLVMSupport.a \
14 LLVMSystem.a
15
1516 TOOLLINKOPTS = $(PLATFORMLIBDL)
1617
1718 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = tblgen
10 USEDLIBS = support.a LLVMsystem.a
10 USEDLIBS = LLVMSupport.a LLVMSystem.a
1111
1212 include $(LEVEL)/Makefile.common
1313
88
99 LEVEL = ../..
1010 TOOLNAME = fpcmp
11 USEDLIBS = support.a
11 USEDLIBS = LLVMSupport.a
1212
1313 include $(LEVEL)/Makefile.common
1414