Misha Brukman | 6d5ab86 | 2004-04-24 00:10:56 +0000 | [diff] [blame] | 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 | #===------------------------------------------------------------------------===# |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9 | # |
| 10 | # This file is included by Makefile.common. It defines paths and other |
| 11 | # values specific to a particular installation of LLVM. |
Brian Gaeke | f1dd200 | 2004-01-16 21:31:34 +0000 | [diff] [blame] | 12 | # |
Misha Brukman | 6d5ab86 | 2004-04-24 00:10:56 +0000 | [diff] [blame] | 13 | #===------------------------------------------------------------------------===# |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14 | |
Reid Spencer | e120021 | 2004-11-29 04:53:50 +0000 | [diff] [blame] | 15 | # Define LLVM speific info and directories |
| 16 | PACKAGE_NAME := @PACKAGE_NAME@ |
| 17 | PACKAGE_VERSION := @PACKAGE_VERSION@ |
| 18 | LLVM_PREFIX := @LLVM_PREFIX@ |
| 19 | LLVM_BINDIR := @LLVM_BINDIR@ |
| 20 | LLVM_LIBDIR := @LLVM_LIBDIR@ |
| 21 | LLVM_DATADIR := @LLVM_DATADIR@ |
| 22 | LLVM_DOCSDIR := @LLVM_DOCSDIR@ |
| 23 | LLVM_ETCDIR := @LLVM_ETCDIR@ |
| 24 | LLVM_INCLUDEDIR := @LLVM_INCLUDEDIR@ |
| 25 | LLVM_INFODIR := @LLVM_INFODIR@ |
| 26 | LLVM_MANDIR := @LLVM_MANDIR@ |
| 27 | LLVM_CONFIGTIME := @LLVM_CONFIGTIME@ |
| 28 | LLVM_TARBALL_NAME := @PACKAGE_NAME@-@PACKAGE_VERSION@ |
| 29 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 30 | # Determine if we're on a unix type operating system |
| 31 | LLVM_ON_UNIX:=@LLVM_ON_UNIX@ |
| 32 | LLVM_ON_WIN32:=@LLVM_ON_WIN32@ |
| 33 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34 | # Target operating system for which LLVM will be compiled. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 35 | OS=@OS@ |
| 36 | |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 37 | # Target hardware architecture |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 38 | ARCH=@ARCH@ |
| 39 | |
Reid Spencer | 1822403 | 2004-11-07 19:12:53 +0000 | [diff] [blame] | 40 | # Target triple (cpu-vendor-os) for which we should generate code |
| 41 | TARGET_TRIPLE=@target@ |
| 42 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 43 | # Endian-ness of the target |
| 44 | ENDIAN=@ENDIAN@ |
| 45 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 46 | # Path to the C++ compiler to use. This is an optional setting, which defaults |
| 47 | # to whatever your gmake defaults to. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 48 | CXX = @CXX@ |
| 49 | |
Misha Brukman | b5a2e40 | 2004-06-17 15:39:58 +0000 | [diff] [blame] | 50 | # Path to the CC binary, which use used by testcases for native builds. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 51 | CC := @CC@ |
| 52 | |
Brian Gaeke | f1dd200 | 2004-01-16 21:31:34 +0000 | [diff] [blame] | 53 | # Linker flags. |
John Criswell | b812e76 | 2003-07-01 15:02:59 +0000 | [diff] [blame] | 54 | LDFLAGS+=@LDFLAGS@ |
John Criswell | 49bf862 | 2003-06-30 22:33:53 +0000 | [diff] [blame] | 55 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 56 | # Libraries needed by tools |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 57 | TOOLLINKOPTS=@LIBS@ |
| 58 | |
Brian Gaeke | f1dd200 | 2004-01-16 21:31:34 +0000 | [diff] [blame] | 59 | # Path to the library archiver program. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 60 | AR_PATH = @AR@ |
| 61 | |
Reid Spencer | 151f8ba | 2004-10-25 08:27:37 +0000 | [diff] [blame] | 62 | # The pathnames of the programs we require to build |
Reid Spencer | e120021 | 2004-11-29 04:53:50 +0000 | [diff] [blame] | 63 | BISON := @BISON@ |
Reid Spencer | 8a2d471 | 2004-12-16 17:48:14 +0000 | [diff] [blame] | 64 | CMP := @CMP@ |
| 65 | CP := @CP@ |
Reid Spencer | e120021 | 2004-11-29 04:53:50 +0000 | [diff] [blame] | 66 | DATE := @DATE@ |
| 67 | FIND := @FIND@ |
| 68 | FLEX := @LEX@ |
| 69 | GREP := @GREP@ |
| 70 | INSTALL := @INSTALL@ |
| 71 | INSTALL_SH := $(BUILD_SRC_ROOT)/autoconf/install-sh |
| 72 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 73 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
| 74 | INSTALL_DATA = @INSTALL_DATA@ |
| 75 | MKDIR := @abs_top_srcdir@/autoconf/mkinstalldirs |
| 76 | MV := @MV@ |
| 77 | PAX := @PAX@ |
| 78 | RANLIB := @RANLIB@ |
| 79 | RM := @RM@ |
| 80 | SED := @SED@ |
| 81 | TAR := @TAR@ |
| 82 | YACC := @YACC@ |
| 83 | |
| 84 | # Paths to miscellaneous programs we hope are present but might not be |
| 85 | BZIP2 := @BZIP2@ |
| 86 | DOT := @DOT@ |
| 87 | DOXYGEN := @DOXYGEN@ |
| 88 | ETAGS := @ETAGS@ |
| 89 | ETAGSFLAGS := @ETAGSFLAGS@ |
| 90 | GROFF := @GROFF@ |
| 91 | GZIP := @GZIP@ |
| 92 | POD2HTML := @POD2HTML@ |
| 93 | POD2MAN := @POD2MAN@ |
Reid Spencer | e120021 | 2004-11-29 04:53:50 +0000 | [diff] [blame] | 94 | RUNTEST := @RUNTEST@ |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 95 | TCLSH := @TCLSH@ |
Reid Spencer | e120021 | 2004-11-29 04:53:50 +0000 | [diff] [blame] | 96 | ZIP := @ZIP@ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 97 | |
Reid Spencer | 151f8ba | 2004-10-25 08:27:37 +0000 | [diff] [blame] | 98 | # Paths to miscellaneous programs we assume are present |
Reid Spencer | e120021 | 2004-11-29 04:53:50 +0000 | [diff] [blame] | 99 | RPWD := pwd |
| 100 | ECHO := echo |
Reid Spencer | 7908035 | 2004-12-22 05:57:09 +0000 | [diff] [blame] | 101 | |
| 102 | # Path to location for LLVM C/C++ front-end. You can modify this if you |
| 103 | # want to override the value set by configure. |
| 104 | LLVMGCCDIR := @LLVMGCCDIR@ |
| 105 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 106 | # Determine the target for which LLVM should generate code. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 107 | LLVMGCCARCH := @target@/3.4-llvm |
| 108 | |
Brian Gaeke | f1dd200 | 2004-01-16 21:31:34 +0000 | [diff] [blame] | 109 | # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries: |
Reid Spencer | 7908035 | 2004-12-22 05:57:09 +0000 | [diff] [blame] | 110 | LLVMGCC := @LLVMGCC@ |
| 111 | LLVMGXX := @LLVMGXX@ |
| 112 | LLVMCC1 := @LLVMCC1@ |
| 113 | LLVMCC1PLUS := @LLVMCC1PLUS@ |
Brian Gaeke | f1dd200 | 2004-01-16 21:31:34 +0000 | [diff] [blame] | 114 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 115 | # Path to directory where object files should be stored during a build. |
| 116 | # Set OBJ_ROOT to "." if you do not want to use a separate place for |
| 117 | # object files. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 118 | OBJ_ROOT := . |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 119 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 120 | # These are options that can either be enabled here, or can be enabled on the |
Brian Gaeke | f1dd200 | 2004-01-16 21:31:34 +0000 | [diff] [blame] | 121 | # make command line (ie, make ENABLE_PROFILING=1): |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 122 | |
| 123 | # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are |
| 124 | # turned on, and Debug builds are turned off. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 125 | #ENABLE_OPTIMIZED = 1 |
| 126 | @ENABLE_OPTIMIZED@ |
| 127 | |
| 128 | # When ENABLE_PROFILING is enabled, the llvm source base is built with profile |
| 129 | # information to allow gprof to be used to get execution frequencies. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 130 | #ENABLE_PROFILING = 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 131 | |
Reid Spencer | e120021 | 2004-11-29 04:53:50 +0000 | [diff] [blame] | 132 | # When ENABLE_DOXYGEN is enabled, the doxygen documentation will be built |
| 133 | ENABLE_DOXYGEN = @ENABLE_DOXYGEN@ |
| 134 | |
Misha Brukman | e967650 | 2003-07-02 21:20:04 +0000 | [diff] [blame] | 135 | # This option tells the Makefiles to produce verbose output. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 136 | # It essentially prints the commands that make is executing |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 137 | #VERBOSE = 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 138 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 139 | # Enable JIT for this platform |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 140 | @JIT@ |
| 141 | |
Brian Gaeke | 88aeace | 2004-01-21 19:39:07 +0000 | [diff] [blame] | 142 | # Shared library extension for this platform. |
| 143 | SHLIBEXT = @SHLIBEXT@ |
| 144 | |
John Criswell | e6d468f | 2004-06-01 19:04:38 +0000 | [diff] [blame] | 145 | # Executable file extension for this platform. |
| 146 | EXEEXT = @EXEEXT@ |
| 147 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 148 | ########################################################################### |
| 149 | # Directory Configuration |
| 150 | # This section of the Makefile determines what is where. To be |
| 151 | # specific, there are several locations that need to be defined: |
| 152 | # |
| 153 | # o LLVM_SRC_ROOT : The root directory of the LLVM source code. |
| 154 | # o LLVM_OBJ_ROOT : The root directory containing the built LLVM code. |
| 155 | # |
| 156 | # o BUILD_SRC_DIR : The directory containing the code to build. |
| 157 | # o BUILD_SRC_ROOT : The root directory of the code to build. |
| 158 | # |
| 159 | # o BUILD_OBJ_DIR : The directory in which compiled code will be placed. |
| 160 | # o BUILD_OBJ_ROOT : The root directory in which compiled code is placed. |
| 161 | # |
| 162 | ########################################################################### |
| 163 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 164 | # Set the object build directory. By default, it is the current directory. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 165 | ifndef BUILD_OBJ_DIR |
| 166 | BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD))) |
| 167 | endif |
| 168 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 169 | # Set the root of the object directory. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 170 | ifndef BUILD_OBJ_ROOT |
| 171 | BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD))) |
| 172 | endif |
| 173 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 174 | # Set the source build directory. That is almost always the current directory. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 175 | ifndef BUILD_SRC_DIR |
| 176 | BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR))) |
| 177 | endif |
| 178 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 179 | # Set the source root directory. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 180 | ifndef BUILD_SRC_ROOT |
| 181 | BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@) |
| 182 | endif |
| 183 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 184 | # Set the LLVM object directory. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 185 | ifndef LLVM_OBJ_ROOT |
| 186 | ifdef LLVM_SRC_ROOT |
| 187 | LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD)) |
| 188 | else |
| 189 | LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT) |
| 190 | endif |
| 191 | endif |
| 192 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 193 | # Set the LLVM source directory. |
| 194 | # It is typically the root directory of what we're compiling now. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 195 | ifndef LLVM_SRC_ROOT |
| 196 | LLVM_SRC_ROOT := $(BUILD_SRC_ROOT) |
| 197 | endif |
| 198 | |
Brian Gaeke | 5339ada | 2003-12-10 00:25:32 +0000 | [diff] [blame] | 199 | # Installation directories, as provided by the configure script. |
Reid Spencer | e120021 | 2004-11-29 04:53:50 +0000 | [diff] [blame] | 200 | abs_top_srcdir = @abs_top_srcdir@ |
| 201 | abs_top_builddir = @abs_top_builddir@ |
Brian Gaeke | 5339ada | 2003-12-10 00:25:32 +0000 | [diff] [blame] | 202 | exec_prefix = @exec_prefix@ |
| 203 | prefix = @prefix@ |
| 204 | program_transform_name = @program_transform_name@ |
| 205 | bindir = @bindir@ |
| 206 | sbindir = @sbindir@ |
| 207 | libexecdir = @libexecdir@ |
| 208 | datadir = @datadir@ |
| 209 | sysconfdir = @sysconfdir@ |
| 210 | sharedstatedir = @sharedstatedir@ |
| 211 | localstatedir = @localstatedir@ |
| 212 | libdir = @libdir@ |
| 213 | includedir = @includedir@ |
| 214 | infodir = @infodir@ |
| 215 | mandir = @mandir@ |