aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-06-30 21:59:07 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-06-30 21:59:07 +0000
commit7a73b80b9052136c8cd2234eb3433a07df7cf38e (patch)
treef7be65b4a1f3c25d8f5dfc42f6ea73f7bbfec00d
parenteb093fbf6fd2878c842f2f215362597475ef1817 (diff)
Merged in autoconf branch. This provides configuration via the autoconf
system. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7014 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Makefile.common411
-rw-r--r--Makefile.config79
-rw-r--r--Makefile.config.in159
-rw-r--r--Makefile.rules411
-rw-r--r--aclocal.m43865
-rwxr-xr-xconfig.guess1317
-rwxr-xr-xconfig.sub1411
-rwxr-xr-xconfigure12628
-rw-r--r--configure.ac236
-rw-r--r--docs/GettingStarted.html197
-rw-r--r--include/Config/alloca.h46
-rw-r--r--include/Config/assert.h23
-rw-r--r--include/Config/config.h.in210
-rw-r--r--include/Config/dlfcn.h27
-rw-r--r--include/Config/errno.h18
-rw-r--r--include/Config/fcntl.h18
-rw-r--r--include/Config/limits.h18
-rw-r--r--include/Config/link.h18
-rw-r--r--include/Config/malloc.h20
-rw-r--r--include/Config/memory.h18
-rw-r--r--include/Config/stdint.h18
-rw-r--r--include/Config/stdio.h22
-rw-r--r--include/Config/stdlib.h18
-rw-r--r--include/Config/string.h18
-rw-r--r--include/Config/strings.h18
-rw-r--r--include/Config/sys/mman.h24
-rw-r--r--include/Config/sys/resource.h33
-rw-r--r--include/Config/sys/stat.h19
-rw-r--r--include/Config/sys/time.h18
-rw-r--r--include/Config/sys/types.h19
-rw-r--r--include/Config/sys/wait.h19
-rw-r--r--include/Config/time.h28
-rw-r--r--include/Config/unistd.h18
-rw-r--r--include/Support/Alloca.h18
-rw-r--r--include/Support/Annotation.h2
-rw-r--r--include/Support/BitSetVector.h1
-rw-r--r--include/Support/Casting.h2
-rw-r--r--include/Support/CommandLine.h1
-rw-r--r--include/Support/DataTypes.h58
-rw-r--r--include/Support/SCCIterator.h1
-rw-r--r--include/Support/Signals.h5
-rw-r--r--include/Support/Timer.h1
-rw-r--r--include/Support/Tree.h1
-rw-r--r--include/Support/hash_map22
-rw-r--r--include/Support/hash_set22
-rw-r--r--include/Support/ilist1
-rw-r--r--include/Support/iterator5
-rw-r--r--include/Support/slist17
-rw-r--r--include/llvm/ADT/BitSetVector.h1
-rw-r--r--include/llvm/ADT/SCCIterator.h1
-rw-r--r--include/llvm/ADT/Tree.h1
-rw-r--r--include/llvm/ADT/ilist1
-rw-r--r--include/llvm/AbstractTypeUser.h11
-rw-r--r--include/llvm/Analysis/DependenceGraph.h1
-rw-r--r--include/llvm/Analysis/Dominators.h1
-rw-r--r--include/llvm/CodeGen/InstrSelection.h1
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h1
-rw-r--r--include/llvm/CodeGen/SSARegMap.h1
-rw-r--r--include/llvm/Config/alloca.h46
-rw-r--r--include/llvm/Config/config.h.in210
-rw-r--r--include/llvm/Config/dlfcn.h27
-rw-r--r--include/llvm/Config/fcntl.h18
-rw-r--r--include/llvm/Config/limits.h18
-rw-r--r--include/llvm/Config/malloc.h20
-rw-r--r--include/llvm/Config/memory.h18
-rw-r--r--include/llvm/Config/stdint.h18
-rw-r--r--include/llvm/Config/sys/mman.h24
-rw-r--r--include/llvm/Config/sys/resource.h33
-rw-r--r--include/llvm/Config/sys/stat.h19
-rw-r--r--include/llvm/Config/sys/time.h18
-rw-r--r--include/llvm/Config/sys/types.h19
-rw-r--r--include/llvm/Config/sys/wait.h19
-rw-r--r--include/llvm/Config/time.h28
-rw-r--r--include/llvm/Config/unistd.h18
-rw-r--r--include/llvm/GlobalVariable.h1
-rw-r--r--include/llvm/Instruction.h1
-rw-r--r--include/llvm/Pass.h1
-rw-r--r--include/llvm/Support/Annotation.h2
-rw-r--r--include/llvm/Support/Casting.h2
-rw-r--r--include/llvm/Support/CommandLine.h1
-rw-r--r--include/llvm/Support/Timer.h1
-rw-r--r--include/llvm/System/Signals.h5
-rw-r--r--include/llvm/Target/TargetCacheInfo.h1
-rw-r--r--include/llvm/Target/TargetInstrInfo.h1
-rw-r--r--include/llvm/Target/TargetRegInfo.h1
-rw-r--r--install-sh251
-rw-r--r--lib/Archive/ArchiveReader.cpp6
-rw-r--r--lib/AsmParser/Lexer.l2
-rw-r--r--lib/AsmParser/Makefile6
-rw-r--r--lib/Bytecode/Archive/ArchiveReader.cpp6
-rw-r--r--lib/Bytecode/Reader/ArchiveReader.cpp6
-rw-r--r--lib/Bytecode/Reader/Reader.cpp10
-rw-r--r--lib/Bytecode/Writer/Writer.cpp2
-rw-r--r--lib/CodeGen/InstrSelection/InstrForest.cpp1
-rw-r--r--lib/CodeGen/MachineFunction.cpp2
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp2
-rw-r--r--lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp6
-rw-r--r--lib/ExecutionEngine/JIT/Intercept.cpp2
-rw-r--r--lib/ExecutionEngine/JIT/JITEmitter.cpp3
-rw-r--r--lib/ExecutionEngine/Makefile2
-rw-r--r--lib/Makefile4
-rw-r--r--lib/Support/PluginLoader.cpp4
-rw-r--r--lib/Support/Signals.cpp2
-rw-r--r--lib/Support/SystemUtils.cpp12
-rw-r--r--lib/Support/Timer.cpp21
-rw-r--r--lib/Target/SparcV9/InstrSelection/InstrForest.cpp1
-rw-r--r--lib/Target/SparcV9/Makefile23
-rw-r--r--lib/Target/SparcV9/SparcV9InstrInfo.cpp2
-rw-r--r--lib/Target/SparcV9/SparcV9Internals.h2
-rw-r--r--lib/Target/X86/X86CodeEmitter.cpp2
-rw-r--r--lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp2
-rw-r--r--lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp2
-rw-r--r--lib/VMCore/Pass.cpp8
-rw-r--r--ltmain.sh4993
-rwxr-xr-xmkinstalldirs101
-rw-r--r--support/lib/Support/PluginLoader.cpp4
-rw-r--r--support/lib/Support/Signals.cpp2
-rw-r--r--support/lib/Support/SystemUtils.cpp12
-rw-r--r--support/lib/Support/Timer.cpp21
-rw-r--r--support/tools/Burg/Makefile2
-rw-r--r--support/tools/TableGen/Makefile7
-rw-r--r--tools/bugpoint/SystemUtils.cpp12
-rw-r--r--tools/lli/Makefile2
-rw-r--r--utils/Burg/Makefile2
-rw-r--r--utils/TableGen/Makefile7
125 files changed, 27225 insertions, 481 deletions
diff --git a/Makefile.common b/Makefile.common
index 88cdd97c00..e8a0697e60 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -30,14 +30,24 @@
# are in, if they are not in the current directory. This should include a
# trailing / character.
#
-# 6. PROJ_COMPILE - If set to 1, then this makefile can also be used to
-# compile other projects using llvm. Note if this option is set then the
-# following *must* hold
-# PROJLEVEL should be set to the top of the source directory for the
-# project files
-# LEVEL should be set to the top of LLVM source tree
-# LLVM_LIB_DIR should be set to the top of the LLVM build tree
+# 6. LLVM_SRC_ROOT - If specified, points to the top of the LLVM source tree.
#
+# 7. LLVM_OBJ_ROOT - If specified, points to the top directory where LLVM
+# object files are placed.
+#
+# 8. BUILD_SRC_DIR - The directory which contains the current set of Makefiles
+# and usually the source code too (unless SourceDir is set).
+#
+# 9. BUILD_SRC_ROOT - The root directory of the source code being compiled.
+#
+# 10. BUILD_OBJ_DIR - The directory where object code should be placed.
+#
+# 11. BUILD_OBJ_ROOT - The root directory for where object code should be
+# placed.
+#
+# For building,
+# LLVM, LLVM_SRC_ROOT = BUILD_SRC_ROOT, and
+# LLVM_OBJ_ROOT = BUILD_OBJ_ROOT.
#===-----------------------------------------------------------------------====
#
@@ -76,14 +86,20 @@ BUILD_SRC_ROOT = $(shell cd $(BUILD_SRC_DIR)/$(LEVEL); pwd)
endif
#
+# Determine the path of the source tree relative from $HOME (the mythical
+# home directory).
+#
+HOME_OBJ_ROOT := $(OBJ_ROOT)/$(patsubst $(HOME)%,%,$(BUILD_SRC_ROOT))
+
+#
# Set the object build directory. Its location depends upon the source path
# and where object files should go.
#
ifndef BUILD_OBJ_DIR
ifeq ($(OBJ_ROOT),.)
-BUILD_OBJ_DIR = $(shell pwd)
+BUILD_OBJ_DIR = $(BUILD_SRC_DIR)
else
-BUILD_OBJ_DIR := $(OBJ_ROOT)$(patsubst $(shell dirname $(BUILD_SRC_ROOT))%,%,$(shell cd $(BUILD_SRC_DIR); pwd))
+BUILD_OBJ_DIR := $(HOME_OBJ_ROOT)$(patsubst $(BUILD_SRC_ROOT)%,%,$(BUILD_SRC_DIR))
endif
endif
@@ -92,9 +108,9 @@ endif
#
ifndef BUILD_OBJ_ROOT
ifeq ($(OBJ_ROOT),.)
-BUILD_OBJ_ROOT = $(shell cd $(LEVEL); pwd)
+BUILD_OBJ_ROOT = $(BUILD_SRC_ROOT)
else
-BUILD_OBJ_ROOT := $(OBJ_ROOT)$(patsubst $(shell dirname $(BUILD_SRC_ROOT))%,%,$(shell cd $(BUILD_SRC_ROOT); pwd))
+BUILD_OBJ_ROOT := $(HOME_OBJ_ROOT)
endif
endif
@@ -113,16 +129,15 @@ ifndef LLVM_OBJ_ROOT
LLVM_OBJ_ROOT = $(BUILD_OBJ_ROOT)
endif
-# Figure out how to do platform specific stuff on this platform. This is really
-# gross and should be autoconfiscated (automake actually), but should hopefully
-# work on Linux and solaris (SunOS).
-#
-UNAME := $(shell uname)
-include $(LLVM_SRC_ROOT)/Makefile.$(UNAME)
+###########################################################################
+# Default Targets:
+# The following targets are the standard top level targets for
+# building.
+###########################################################################
ifdef SHARED_LIBRARY
# if SHARED_LIBRARY is specified, the default is to build the dynamic lib
-dynamic ::
+all:: dynamic
endif
# Default Rule: Make sure it's also a :: rule
@@ -134,6 +149,22 @@ install ::
# Default rule for test. It ensures everything has a test rule
test::
+# Print out the directories used for building
+prdirs::
+ echo "Home Offset : " $(HOME_OBJ_ROOT);
+ echo "Build Source Root: " $(BUILD_SRC_ROOT);
+ echo "Build Source Dir : " $(BUILD_SRC_DIR);
+ echo "Build Object Root: " $(BUILD_OBJ_ROOT);
+ echo "Build Object Dir : " $(BUILD_OBJ_DIR);
+ echo "LLVM Source Root: " $(LLVM_SRC_ROOT);
+ echo "LLVM Object Root: " $(LLVM_OBJ_ROOT);
+
+###########################################################################
+# Miscellaneous paths and commands:
+# This section defines various configuration macros, such as where
+# to find burg, tblgen, and libtool.
+###########################################################################
+
#--------------------------------------------------------------------
# Variables derived from configuration options...
#--------------------------------------------------------------------
@@ -157,8 +188,21 @@ else
endif
endif
+#
+# Enable this for profiling support with 'gprof'