Add the RUNTEST autoconf onfiguration variable for Deja-gnu support. This
[oota-llvm.git] / Makefile.config.in
1 #===-- Makefile.config - Local configuration for LLVM ------*- Makefile -*--===#
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
7
8 #===------------------------------------------------------------------------===#
9 #
10 # This file is included by Makefile.common.  It defines paths and other
11 # values specific to a particular installation of LLVM.
12 #
13 #===------------------------------------------------------------------------===#
14
15 # Target operating system for which LLVM will be compiled.
16 OS=@OS@
17
18 # Target hardware architecture
19 ARCH=@ARCH@
20
21 # Target triple (cpu-vendor-os) for which we should generate code
22 TARGET_TRIPLE=@target@
23
24 # Endian-ness of the target
25 ENDIAN=@ENDIAN@
26
27 # Path to the C++ compiler to use.  This is an optional setting, which defaults
28 # to whatever your gmake defaults to.
29 CXX = @CXX@
30
31 # Path to the CC binary, which use used by testcases for native builds.
32 CC := @CC@
33
34 # Path to the Python interpreter
35 PYTHON := @PYTHON@
36
37 # Path to the Deja-Gnu runtest program
38 RUNTEST := @RUNTEST@
39
40 # Linker flags.
41 LDFLAGS+=@LDFLAGS@
42
43 # Libraries needed by tools
44 TOOLLINKOPTS=@LIBS@
45
46 # Path to the library archiver program.
47 AR_PATH = @AR@
48
49 # The pathnames of the programs we require to build
50 YACC    = @YACC@
51 BISON   = @BISON@
52 FLEX    = @LEX@
53 TAR     = @TAR@
54 INSTALL = @INSTALL@
55 DOT     = @DOT@
56 ETAGS   = @ETAGS@
57 ETAGSFLAGS = @ETAGSFLAGS@
58
59 # Paths to miscellaneous programs we assume are present
60 RPWD    = pwd
61 SED     = sed
62 RM      = rm
63 ECHO    = echo
64 MKDIR   = @abs_top_srcdir@/autoconf/mkinstalldirs
65 INSTALL_SH = $(BUILD_SRC_ROOT)/autoconf/install-sh
66 DATE    = date
67 MV      = mv
68 GZIP    = gzip
69 ZIP     = zip
70 BZIP2   = bzip2
71
72 # Determine the target for which LLVM should generate code.
73 LLVMGCCARCH := @target@/3.4-llvm
74
75 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
76 LCC1 = @LLVMCC1@
77 LCC1XX = @LLVMCC1PLUS@
78
79 # Path to directory where object files should be stored during a build.
80 # Set OBJ_ROOT to "." if you do not want to use a separate place for
81 # object files.
82 OBJ_ROOT := .
83
84 # Path to location for LLVM C/C++ front-end. You can modify this if you
85 # want to override the value set by configure.
86 LLVMGCCDIR := @LLVMGCCDIR@
87
88 # These are options that can either be enabled here, or can be enabled on the
89 # make command line (ie, make ENABLE_PROFILING=1):
90
91 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
92 # turned on, and Debug builds are turned off.
93 #ENABLE_OPTIMIZED = 1
94 @ENABLE_OPTIMIZED@
95
96 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
97 # information to allow gprof to be used to get execution frequencies.
98 #ENABLE_PROFILING = 1
99
100 # This option tells the Makefiles to produce verbose output.
101 # It essentially prints the commands that make is executing
102 #VERBOSE = 1
103
104 # Enable JIT for this platform
105 @JIT@
106
107 # Shared library extension for this platform.
108 SHLIBEXT = @SHLIBEXT@
109
110 # Executable file extension for this platform.
111 EXEEXT = @EXEEXT@
112
113 ###########################################################################
114 # Directory Configuration
115 #       This section of the Makefile determines what is where.  To be
116 #       specific, there are several locations that need to be defined:
117 #
118 #       o LLVM_SRC_ROOT  : The root directory of the LLVM source code.
119 #       o LLVM_OBJ_ROOT  : The root directory containing the built LLVM code.
120 #
121 #       o BUILD_SRC_DIR  : The directory containing the code to build.
122 #       o BUILD_SRC_ROOT : The root directory of the code to build.
123 #
124 #       o BUILD_OBJ_DIR  : The directory in which compiled code will be placed.
125 #       o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
126 #
127 ###########################################################################
128
129 # Set the object build directory.  By default, it is the current directory.
130 ifndef BUILD_OBJ_DIR
131 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
132 endif
133
134 # Set the root of the object directory.
135 ifndef BUILD_OBJ_ROOT
136 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
137 endif
138
139 # Set the source build directory.  That is almost always the current directory.
140 ifndef BUILD_SRC_DIR
141 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
142 endif
143
144 # Set the source root directory.
145 ifndef BUILD_SRC_ROOT
146 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
147 endif
148
149 # Set the LLVM object directory.
150 ifndef LLVM_OBJ_ROOT
151 ifdef LLVM_SRC_ROOT
152 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
153 else
154 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
155 endif
156 endif
157
158 # Set the LLVM source directory.
159 # It is typically the root directory of what we're compiling now.
160 ifndef LLVM_SRC_ROOT
161 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
162 endif
163
164 # Handle configured libraries
165 HAVE_BZIP2 := @HAVE_BZIP2@
166 HAVE_ZLIB  := @HAVE_ZLIB@
167
168 # Installation directories, as provided by the configure script.
169 exec_prefix = @exec_prefix@
170 prefix = @prefix@
171 program_transform_name = @program_transform_name@
172 bindir = @bindir@
173 sbindir = @sbindir@
174 libexecdir = @libexecdir@
175 datadir = @datadir@
176 sysconfdir = @sysconfdir@
177 sharedstatedir = @sharedstatedir@ 
178 localstatedir = @localstatedir@
179 libdir = @libdir@
180 bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
181 includedir = @includedir@
182 infodir = @infodir@
183 mandir = @mandir@
184 INSTALL_PROGRAM = @INSTALL_PROGRAM@
185 INSTALL_SCRIPT = @INSTALL_SCRIPT@
186 INSTALL_DATA = @INSTALL_DATA@
187 LLVM_TARBALL_NAME = @PACKAGE_NAME@-@PACKAGE_VERSION@
188