llvm.org GIT mirror llvm / 18c8b49
Use archive libraries instead of object files for VMCore, BCReader, BCWriter, and bzip2 libraries. Adjust the various makefiles to accommodate these changes. This was done to speed up link times. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28610 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
33 changed file(s) with 61 addition(s) and 54 deletion(s). Raw diff Collapse all Expand all
356356 # Options To Invoke Tools
357357 #----------------------------------------------------------
358358
359 CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused
359 CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused
360360
361361 ifeq ($(OS),HP-UX)
362362 CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
627627 endif
628628
629629 LLVMLIBS := $(JIT_LIBS) LLVMScalarOpts.a LLVMTransformUtils.a LLVMAnalysis.a \
630 LLVMBCReader LLVMTarget.a LLVMCore LLVMSupport.a LLVMbzip2 \
630 LLVMBCReader.a LLVMTarget.a LLVMCore.a LLVMSupport.a LLVMbzip2.a \
631631 LLVMSystem.a $(PLATFORMLIBDL)
632632 endif
633633
88 LEVEL=../..
99 TOOLNAME=ModuleMaker
1010 EXAMPLE_TOOL = 1
11 USEDLIBS= LLVMBCWriter LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1212
1313 include $(LEVEL)/Makefile.common
88
99 LEVEL = ../..
1010 LIBRARYNAME := LLVMAsmParser
11 BUILD_ARCHIVE = 1
1112 EXTRA_DIST := Lexer.cpp.cvs Lexer.l.cvs \
1213 llvmAsmParser.cpp.cvs llvmAsmParser.h.cvs llvmAsmParser.y.cvs
1314
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
99 LIBRARYNAME = LLVMBCReader
10 BUILD_ARCHIVE = 1
1011
1112 include $(LEVEL)/Makefile.common
1213
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
99 LIBRARYNAME = LLVMBCWriter
10 BUILD_ARCHIVE = 1
1011
1112 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88
99 LEVEL = ../..
10 LIBRARYNAME = LLVMCodeGen
1011 PARALLEL_DIRS = SelectionDAG
11 LIBRARYNAME = LLVMCodeGen
1212
1313 include $(LEVEL)/Makefile.common
66 #
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
9 LIBRARYNAME = LLVMSelectionDAG
910 PARALLEL_DIRS =
10 LIBRARYNAME = LLVMSelectionDAG
1111
1212 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../../..
99 LIBRARYNAME = LLVMbzip2
10 BUILD_ARCHIVE = 1
1011 SOURCES = blocksort.c huffman.c crctable.c randtable.c compress.c decompress.c \
1112 bzlib.c
1213 EXTRA_DIST = bzlib.h bzlib_private.h CHANGES LICENSE README \
88
99 LEVEL = ../../..
1010 LIBRARYNAME = LLVMCBackend
11 CXXFLAGS += -pedantic -Wno-long-long
1112 include $(LEVEL)/Makefile.common
12
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 LIBRARYNAME = LLVMCore
10 BUILD_ARCHIVE = 1
1011
1112 BUILT_SOURCES = $(PROJ_SRC_ROOT)/include/llvm/Intrinsics.gen
12
13 include $(LEVEL)/Makefile.config
14 ifeq ($(ARCH),Alpha)
15 BUILD_ARCHIVE = 1
16 endif
1713
1814 include $(LEVEL)/Makefile.common
1915
88 # Give the name of a library. This will build a dynamic version.
99 #
1010 TOOLNAME = stkrc
11 LLVMLIBS = LLVMAsmParser LLVMBCWriter LLVMipo.a \
12 LLVMScalarOpts.a LLVMTransforms.a LLVMTransformUtils.a LLVMipa.a LLVMAnalysis.a LLVMTarget.a \
13 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 LLVMLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMipo.a LLVMScalarOpts.a \
12 LLVMTransforms.a LLVMTransformUtils.a LLVMipa.a LLVMAnalysis.a \
13 LLVMTarget.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1414 CONFIG_FILES = st
1515 EXTRA_DIST = st
1616 USEDLIBS=stkr_compiler
1414
1515 include $(LEVEL)/Makefile.common
1616
17 CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
18 CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
None ##===- runtime/GCCLibraries/libc/Makefile ------------------------------*- Makefile -*-===##
0 ##===- runtime/GCCLibraries/libc/Makefile ------------------*- Makefile -*-===##
11 #
22 # The LLVM Compiler Infrastructure
33 #
1414
1515 include $(LEVEL)/Makefile.common
1616
17 CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
18 CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
1313
1414 include $(LEVEL)/Makefile.common
1515
16 CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
17 CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = analyze
10 USEDLIBS = LLVMAsmParser LLVMBCReader LLVMAnalysis.a LLVMipa.a \
10 USEDLIBS = LLVMAsmParser.a LLVMBCReader.a LLVMAnalysis.a LLVMipa.a \
1111 LLVMDataStructure \
1212 LLVMScalarOpts.a LLVMTransforms.a LLVMTarget.a LLVMScalarOpts.a \
13 LLVMTransformUtils.a LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
13 LLVMTransformUtils.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1414
1515 include $(LEVEL)/Makefile.common
1414
1515 USEDLIBS = LLVMipo.a LLVMScalarOpts.a $(OPTLIBS) $(ANALIBS) LLVMAnalysis.a \
1616 LLVMTransformUtils.a \
17 LLVMAsmParser LLVMLinker.a LLVMBCReader LLVMBCWriter \
18 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
17 LLVMAsmParser.a LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
18 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1919
2020 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = gccas
11 USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMipa.a \
11 USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a LLVMipa.a \
1212 LLVMScalarOpts.a LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils.a \
13 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
13 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1414
1515 include $(LEVEL)/Makefile.common
1111 TOOLNAME = gccld
1212 USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
1313 LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
14 LLVMArchive.a LLVMBCReader LLVMBCWriter \
15 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
14 LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
15 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1616
1717 include $(LEVEL)/Makefile.common
5555 USEDLIBS += \
5656 LLVMSelectionDAG \
5757 LLVMCodeGen \
58 LLVMTarget.a \
58 LLVMTarget \
5959 LLVMipa.a \
6060 LLVMTransforms.a \
6161 LLVMScalarOpts.a \
6262 LLVMTransformUtils.a \
6363 LLVMAnalysis.a \
64 LLVMBCReader \
65 LLVMBCWriter \
66 LLVMCore \
64 LLVMBCReader.a \
65 LLVMBCWriter.a \
66 LLVMCore.a \
6767 LLVMSupport.a \
68 LLVMbzip2 \
68 LLVMbzip2.a \
6969 LLVMSystem.a
7070
7171 include $(LLVM_SRC_ROOT)/Makefile.rules
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-ar
11 USEDLIBS = LLVMArchive.a LLVMBCReader \
12 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 USEDLIBS = LLVMArchive.a LLVMBCReader.a \
12 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1313
1414 include $(LEVEL)/Makefile.common
1515
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = llvm-as
10 USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore \
11 LLVMSupport.a LLVMbzip2 LLVMSystem.a
10 USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMCore.a \
11 LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1212
1313 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-bcanalyzer
11 USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1212 include $(LEVEL)/Makefile.common
88
99 LEVEL = ../..
1010 TOOLNAME = llvm-db
11 USEDLIBS = LLVMDebugger LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 USEDLIBS = LLVMDebugger LLVMBCReader.a LLVMCore.a LLVMSupport.a \
12 LLVMbzip2.a LLVMSystem.a
1213
1314 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-dis
11 USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1212 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-extract
11 USEDLIBS = LLVMBCReader LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMTarget.a \
12 LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
13 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a \
12 LLVMTarget.a LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
13 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1414
1515 include $(LEVEL)/Makefile.common
1111 TOOLNAME = llvm-ld
1212 USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
1313 LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
14 LLVMArchive.a LLVMBCReader LLVMBCWriter \
15 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
14 LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
15 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1616
1717 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-link
11 USEDLIBS = LLVMLinker.a LLVMBCReader LLVMBCWriter \
12 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 USEDLIBS = LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
12 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1313
1414 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-nm
11 USEDLIBS = LLVMArchive.a LLVMBCReader \
12 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 USEDLIBS = LLVMArchive.a LLVMBCReader.a \
12 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1313 include $(LEVEL)/Makefile.common
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-prof
11 USEDLIBS = LLVMAnalysis.a LLVMBCReader \
12 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 USEDLIBS = LLVMAnalysis.a LLVMBCReader.a \
12 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1313
1414 include $(LEVEL)/Makefile.common
88
99 LEVEL = ../..
1010 TOOLNAME = llvm-ranlib
11 USEDLIBS = LLVMArchive.a LLVMBCReader \
12 LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
11 USEDLIBS = LLVMArchive.a LLVMBCReader.a \
12 LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1313
1414 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = llvm2cpp
10 USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore \
11 LLVMSupport.a LLVMbzip2 LLVMSystem.a
10 USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMCore.a \
11 LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1212
1313 include $(LEVEL)/Makefile.common
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = llvmc
10 USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
10 USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
1111 CONFIG_FILES = c cpp ll
1212 EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
1313
88 LEVEL = ../..
99 TOOLNAME = opt
1010
11 USEDLIBS = LLVMBCReader LLVMBCWriter LLVMInstrumentation.a \
11 USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMInstrumentation.a \
1212 LLVMScalarOpts.a LLVMipo.a LLVMipa.a LLVMDataStructure LLVMTransforms.a \
13 LLVMTarget.a LLVMTransformUtils.a LLVMAnalysis.a LLVMCore LLVMSupport.a \
14 LLVMbzip2 LLVMSystem.a
13 LLVMTarget.a LLVMTransformUtils.a LLVMAnalysis.a LLVMCore.a LLVMSupport.a \
14 LLVMbzip2.a LLVMSystem.a
1515
1616 include $(LEVEL)/Makefile.common