Remove variables and tests that were specific to the now defunct
[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 # Endian-ness of the target
22 ENDIAN=@ENDIAN@
23
24 # Path to the C++ compiler to use.  This is an optional setting, which defaults
25 # to whatever your gmake defaults to.
26 CXX = @CXX@
27
28 # Path to the CC binary, which use used by testcases for native builds.
29 CC := @CC@
30
31 # Path to the Python interpreter
32 PYTHON := @PYTHON@
33
34 # Linker flags.
35 LDFLAGS+=@LDFLAGS@
36
37 # Libraries needed by tools
38 TOOLLINKOPTS=@LIBS@
39
40 # Path to the library archiver program.
41 AR_PATH = @AR@
42
43 # The pathnames of the Flex and Bison programs, respectively.
44 YACC     = @YACC@
45 BISON    = @BISON@
46 FLEX     = @LEX@
47
48 # Paths to miscellaneous programs.
49 RPWD    = pwd
50 SED     = sed
51 RM      = rm
52 ECHO    = echo
53 MKDIR   = @abs_top_srcdir@/autoconf/mkinstalldirs
54 DATE    = date
55 MV      = mv
56 INSTALL = @INSTALL@
57 DOT     = @DOT@
58 ETAGS   = @ETAGS@
59 ETAGSFLAGS = @ETAGSFLAGS@
60
61 # Determine the target for which LLVM should generate code.
62 LLVMGCCARCH := @target@/3.4-llvm
63
64 # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries:
65 LCC1 = @LLVMCC1@
66 LCC1XX = @LLVMCC1PLUS@
67
68 # Path to directory where object files should be stored during a build.
69 # Set OBJ_ROOT to "." if you do not want to use a separate place for
70 # object files.
71 OBJ_ROOT := .
72
73 # Path to location for LLVM C/C++ front-end. You can modify this if you
74 # want to override the value set by configure.
75 LLVMGCCDIR := @LLVMGCCDIR@
76
77 # Path to the PAPI code.  This is used by the reoptimizer only.
78 #PAPIDIR := /home/vadve/shared/papi-2.3.4.1
79 PAPIDIR := @PAPIDIR@
80
81 # These are options that can either be enabled here, or can be enabled on the
82 # make command line (ie, make ENABLE_PROFILING=1):
83
84 # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are
85 # turned on, and Debug builds are turned off.
86 #ENABLE_OPTIMIZED = 1
87 @ENABLE_OPTIMIZED@
88
89 # When ENABLE_PROFILING is enabled, the llvm source base is built with profile
90 # information to allow gprof to be used to get execution frequencies.
91 #ENABLE_PROFILING = 1
92
93 # This option tells the Makefiles to produce verbose output.
94 # It essentially prints the commands that make is executing
95 #VERBOSE = 1
96
97 # Enable JIT for this platform
98 @JIT@
99
100 # Shared library extension for this platform.
101 SHLIBEXT = @SHLIBEXT@
102
103 # Executable file extension for this platform.
104 EXEEXT = @EXEEXT@
105
106 ###########################################################################
107 # Directory Configuration
108 #       This section of the Makefile determines what is where.  To be
109 #       specific, there are several locations that need to be defined:
110 #
111 #       o LLVM_SRC_ROOT  : The root directory of the LLVM source code.
112 #       o LLVM_OBJ_ROOT  : The root directory containing the built LLVM code.
113 #
114 #       o BUILD_SRC_DIR  : The directory containing the code to build.
115 #       o BUILD_SRC_ROOT : The root directory of the code to build.
116 #
117 #       o BUILD_OBJ_DIR  : The directory in which compiled code will be placed.
118 #       o BUILD_OBJ_ROOT : The root directory in which compiled code is placed.
119 #
120 ###########################################################################
121
122 # Set the object build directory.  By default, it is the current directory.
123 ifndef BUILD_OBJ_DIR
124 BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD)))
125 endif
126
127 # Set the root of the object directory.
128 ifndef BUILD_OBJ_ROOT
129 BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD)))
130 endif
131
132 # Set the source build directory.  That is almost always the current directory.
133 ifndef BUILD_SRC_DIR
134 BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR)))
135 endif
136
137 # Set the source root directory.
138 ifndef BUILD_SRC_ROOT
139 BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
140 endif
141
142 # Set the LLVM object directory.
143 ifndef LLVM_OBJ_ROOT
144 ifdef LLVM_SRC_ROOT
145 LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD))
146 else
147 LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT)
148 endif
149 endif
150
151 # Set the LLVM source directory.
152 # It is typically the root directory of what we're compiling now.
153 ifndef LLVM_SRC_ROOT
154 LLVM_SRC_ROOT := $(BUILD_SRC_ROOT)
155 endif
156
157 # Set SourceDir for backwards compatbility.
158 ifndef SourceDir
159 SourceDir=$(BUILD_SRC_DIR)
160 endif
161
162 # Installation directories, as provided by the configure script.
163 exec_prefix = @exec_prefix@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 bindir = @bindir@
167 sbindir = @sbindir@
168 libexecdir = @libexecdir@
169 datadir = @datadir@
170 sysconfdir = @sysconfdir@
171 sharedstatedir = @sharedstatedir@ 
172 localstatedir = @localstatedir@
173 libdir = @libdir@
174 bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs
175 includedir = @includedir@
176 infodir = @infodir@
177 mandir = @mandir@
178 INSTALL_PROGRAM = @INSTALL_PROGRAM@
179 INSTALL_SCRIPT = @INSTALL_SCRIPT@
180 INSTALL_DATA = @INSTALL_DATA@
181