Skip to content

Commit

Permalink
Use archive libraries instead of object files for VMCore, BCReader,
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Reid Spencer committed Jun 1, 2006
1 parent b756c79 commit 18c8b49
Show file tree
Hide file tree
Showing 33 changed files with 61 additions and 54 deletions.
4 changes: 2 additions & 2 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ endif
# Options To Invoke Tools
#----------------------------------------------------------

CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused
CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused

ifeq ($(OS),HP-UX)
CompileCommonOpts := -D_REENTRANT -D_HPUX_SOURCE
Expand Down Expand Up @@ -628,7 +628,7 @@ ifdef ENABLE_ALPHA_JIT
endif

LLVMLIBS := $(JIT_LIBS) LLVMScalarOpts.a LLVMTransformUtils.a LLVMAnalysis.a \
LLVMBCReader LLVMTarget.a LLVMCore LLVMSupport.a LLVMbzip2 \
LLVMBCReader.a LLVMTarget.a LLVMCore.a LLVMSupport.a LLVMbzip2.a \
LLVMSystem.a $(PLATFORMLIBDL)
endif

Expand Down
2 changes: 1 addition & 1 deletion examples/ModuleMaker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
LEVEL=../..
TOOLNAME=ModuleMaker
EXAMPLE_TOOL = 1
USEDLIBS= LLVMBCWriter LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
1 change: 1 addition & 0 deletions lib/AsmParser/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

LEVEL = ../..
LIBRARYNAME := LLVMAsmParser
BUILD_ARCHIVE = 1
EXTRA_DIST := Lexer.cpp.cvs Lexer.l.cvs \
llvmAsmParser.cpp.cvs llvmAsmParser.h.cvs llvmAsmParser.y.cvs

Expand Down
1 change: 1 addition & 0 deletions lib/Bytecode/Reader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../..
LIBRARYNAME = LLVMBCReader
BUILD_ARCHIVE = 1

include $(LEVEL)/Makefile.common

1 change: 1 addition & 0 deletions lib/Bytecode/Writer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../..
LIBRARYNAME = LLVMBCWriter
BUILD_ARCHIVE = 1

include $(LEVEL)/Makefile.common
2 changes: 1 addition & 1 deletion lib/CodeGen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##

LEVEL = ../..
PARALLEL_DIRS = SelectionDAG
LIBRARYNAME = LLVMCodeGen
PARALLEL_DIRS = SelectionDAG

include $(LEVEL)/Makefile.common
2 changes: 1 addition & 1 deletion lib/CodeGen/SelectionDAG/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
##===----------------------------------------------------------------------===##
LEVEL = ../../..
PARALLEL_DIRS =
LIBRARYNAME = LLVMSelectionDAG
PARALLEL_DIRS =

include $(LEVEL)/Makefile.common
1 change: 1 addition & 0 deletions lib/Support/bzip2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../..
LIBRARYNAME = LLVMbzip2
BUILD_ARCHIVE = 1
SOURCES = blocksort.c huffman.c crctable.c randtable.c compress.c decompress.c \
bzlib.c
EXTRA_DIST = bzlib.h bzlib_private.h CHANGES LICENSE README \
Expand Down
2 changes: 1 addition & 1 deletion lib/Target/CBackend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

LEVEL = ../../..
LIBRARYNAME = LLVMCBackend
CXXFLAGS += -pedantic -Wno-long-long
include $(LEVEL)/Makefile.common

6 changes: 1 addition & 5 deletions lib/VMCore/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
LIBRARYNAME = LLVMCore
BUILD_ARCHIVE = 1

BUILT_SOURCES = $(PROJ_SRC_ROOT)/include/llvm/Intrinsics.gen

include $(LEVEL)/Makefile.config
ifeq ($(ARCH),Alpha)
BUILD_ARCHIVE = 1
endif

include $(LEVEL)/Makefile.common

GENFILE:=$(PROJ_SRC_ROOT)/include/llvm/Intrinsics.gen
Expand Down
6 changes: 3 additions & 3 deletions projects/Stacker/tools/stkrc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ LEVEL=../..
# Give the name of a library. This will build a dynamic version.
#
TOOLNAME = stkrc
LLVMLIBS = LLVMAsmParser LLVMBCWriter LLVMipo.a \
LLVMScalarOpts.a LLVMTransforms.a LLVMTransformUtils.a LLVMipa.a LLVMAnalysis.a LLVMTarget.a \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
LLVMLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMipo.a LLVMScalarOpts.a \
LLVMTransforms.a LLVMTransformUtils.a LLVMipa.a LLVMAnalysis.a \
LLVMTarget.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
CONFIG_FILES = st
EXTRA_DIST = st
USEDLIBS=stkr_compiler
Expand Down
2 changes: 2 additions & 0 deletions runtime/GC/SemiSpace/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/../gc_exported_symbols.lst

include $(LEVEL)/Makefile.common

CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
4 changes: 3 additions & 1 deletion runtime/GCCLibraries/libc/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##===- runtime/GCCLibraries/libc/Makefile ------------------------------*- Makefile -*-===##
##===- runtime/GCCLibraries/libc/Makefile ------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
Expand All @@ -15,3 +15,5 @@ BYTECODE_DESTINATION = $(CFERuntimeLibDir)

include $(LEVEL)/Makefile.common

CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
2 changes: 2 additions & 0 deletions runtime/libtrace/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ BYTECODE_DESTINATION = $(CFERuntimeLibDir)

include $(LEVEL)/Makefile.common

CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
4 changes: 2 additions & 2 deletions tools/analyze/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = analyze
USEDLIBS = LLVMAsmParser LLVMBCReader LLVMAnalysis.a LLVMipa.a \
USEDLIBS = LLVMAsmParser.a LLVMBCReader.a LLVMAnalysis.a LLVMipa.a \
LLVMDataStructure \
LLVMScalarOpts.a LLVMTransforms.a LLVMTarget.a LLVMScalarOpts.a \
LLVMTransformUtils.a LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
LLVMTransformUtils.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
4 changes: 2 additions & 2 deletions tools/bugpoint/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ANALIBS = LLVMDataStructure LLVMipa.a LLVMTarget.a

USEDLIBS = LLVMipo.a LLVMScalarOpts.a $(OPTLIBS) $(ANALIBS) LLVMAnalysis.a \
LLVMTransformUtils.a \
LLVMAsmParser LLVMLinker.a LLVMBCReader LLVMBCWriter \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
LLVMAsmParser.a LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
4 changes: 2 additions & 2 deletions tools/gccas/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
LEVEL = ../..

TOOLNAME = gccas
USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMipa.a \
USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a LLVMipa.a \
LLVMScalarOpts.a LLVMAnalysis.a LLVMTarget.a LLVMTransformUtils.a \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
4 changes: 2 additions & 2 deletions tools/gccld/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LEVEL = ../..
TOOLNAME = gccld
USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
LLVMArchive.a LLVMBCReader LLVMBCWriter \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
10 changes: 5 additions & 5 deletions tools/llc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ endif
USEDLIBS += \
LLVMSelectionDAG \
LLVMCodeGen \
LLVMTarget.a \
LLVMTarget \
LLVMipa.a \
LLVMTransforms.a \
LLVMScalarOpts.a \
LLVMTransformUtils.a \
LLVMAnalysis.a \
LLVMBCReader \
LLVMBCWriter \
LLVMCore \
LLVMBCReader.a \
LLVMBCWriter.a \
LLVMCore.a \
LLVMSupport.a \
LLVMbzip2 \
LLVMbzip2.a \
LLVMSystem.a

include $(LLVM_SRC_ROOT)/Makefile.rules
Expand Down
4 changes: 2 additions & 2 deletions tools/llvm-ar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
LEVEL = ../..

TOOLNAME = llvm-ar
USEDLIBS = LLVMArchive.a LLVMBCReader \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMArchive.a LLVMBCReader.a \
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common

Expand Down
4 changes: 2 additions & 2 deletions tools/llvm-as/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm-as
USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore \
LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMCore.a \
LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
2 changes: 1 addition & 1 deletion tools/llvm-bcanalyzer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
LEVEL = ../..

TOOLNAME = llvm-bcanalyzer
USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
include $(LEVEL)/Makefile.common
3 changes: 2 additions & 1 deletion tools/llvm-db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

LEVEL = ../..
TOOLNAME = llvm-db
USEDLIBS = LLVMDebugger LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMDebugger LLVMBCReader.a LLVMCore.a LLVMSupport.a \
LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
2 changes: 1 addition & 1 deletion tools/llvm-dis/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
LEVEL = ../..

TOOLNAME = llvm-dis
USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
include $(LEVEL)/Makefile.common
6 changes: 3 additions & 3 deletions tools/llvm-extract/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
LEVEL = ../..

TOOLNAME = llvm-extract
USEDLIBS = LLVMBCReader LLVMBCWriter LLVMTransforms.a LLVMipo.a LLVMTarget.a \
LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMTransforms.a LLVMipo.a \
LLVMTarget.a LLVMAnalysis.a LLVMTransformUtils.a LLVMipa.a \
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
4 changes: 2 additions & 2 deletions tools/llvm-ld/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LEVEL = ../..
TOOLNAME = llvm-ld
USEDLIBS = LLVMipo.a LLVMTransforms.a LLVMScalarOpts.a LLVMAnalysis.a \
LLVMipa.a LLVMTransformUtils.a LLVMTarget.a LLVMLinker.a \
LLVMArchive.a LLVMBCReader LLVMBCWriter \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
LLVMArchive.a LLVMBCReader.a LLVMBCWriter.a \
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
4 changes: 2 additions & 2 deletions tools/llvm-link/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
LEVEL = ../..

TOOLNAME = llvm-link
USEDLIBS = LLVMLinker.a LLVMBCReader LLVMBCWriter \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMLinker.a LLVMBCReader.a LLVMBCWriter.a \
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
4 changes: 2 additions & 2 deletions tools/llvm-nm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
LEVEL = ../..

TOOLNAME = llvm-nm
USEDLIBS = LLVMArchive.a LLVMBCReader \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMArchive.a LLVMBCReader.a \
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
include $(LEVEL)/Makefile.common
4 changes: 2 additions & 2 deletions tools/llvm-prof/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
LEVEL = ../..

TOOLNAME = llvm-prof
USEDLIBS = LLVMAnalysis.a LLVMBCReader \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMAnalysis.a LLVMBCReader.a \
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
4 changes: 2 additions & 2 deletions tools/llvm-ranlib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

LEVEL = ../..
TOOLNAME = llvm-ranlib
USEDLIBS = LLVMArchive.a LLVMBCReader \
LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMArchive.a LLVMBCReader.a \
LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
4 changes: 2 additions & 2 deletions tools/llvm2cpp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvm2cpp
USEDLIBS = LLVMAsmParser LLVMBCWriter LLVMCore \
LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMAsmParser.a LLVMBCWriter.a LLVMCore.a \
LLVMSupport.a LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common
2 changes: 1 addition & 1 deletion tools/llvmc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
TOOLNAME = llvmc
USEDLIBS = LLVMBCReader LLVMCore LLVMSupport.a LLVMbzip2 LLVMSystem.a
USEDLIBS = LLVMBCReader.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
CONFIG_FILES = c cpp ll
EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs

Expand Down
6 changes: 3 additions & 3 deletions tools/opt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
LEVEL = ../..
TOOLNAME = opt

USEDLIBS = LLVMBCReader LLVMBCWriter LLVMInstrumentation.a \
USEDLIBS = LLVMBCReader.a LLVMBCWriter.a LLVMInstrumentation.a \
LLVMScalarOpts.a LLVMipo.a LLVMipa.a LLVMDataStructure LLVMTransforms.a \
LLVMTarget.a LLVMTransformUtils.a LLVMAnalysis.a LLVMCore LLVMSupport.a \
LLVMbzip2 LLVMSystem.a
LLVMTarget.a LLVMTransformUtils.a LLVMAnalysis.a LLVMCore.a LLVMSupport.a \
LLVMbzip2.a LLVMSystem.a

include $(LEVEL)/Makefile.common

0 comments on commit 18c8b49

Please sign in to comment.