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 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15 | # Target operating system for which LLVM will be compiled. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16 | OS=@OS@ |
| 17 | |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 18 | # Target hardware architecture |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 19 | ARCH=@ARCH@ |
| 20 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 21 | # Endian-ness of the target |
| 22 | ENDIAN=@ENDIAN@ |
| 23 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 24 | # Path to the C++ compiler to use. This is an optional setting, which defaults |
| 25 | # to whatever your gmake defaults to. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26 | CXX = @CXX@ |
| 27 | |
Misha Brukman | b5a2e40 | 2004-06-17 15:39:58 +0000 | [diff] [blame] | 28 | # 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] | 29 | CC := @CC@ |
| 30 | |
John Criswell | 9b87287 | 2004-08-02 22:24:39 +0000 | [diff] [blame] | 31 | # Path to the Python interpreter |
| 32 | PYTHON := @PYTHON@ |
| 33 | |
Brian Gaeke | f1dd200 | 2004-01-16 21:31:34 +0000 | [diff] [blame] | 34 | # Linker flags. |
John Criswell | b812e76 | 2003-07-01 15:02:59 +0000 | [diff] [blame] | 35 | LDFLAGS+=@LDFLAGS@ |
John Criswell | 49bf862 | 2003-06-30 22:33:53 +0000 | [diff] [blame] | 36 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 37 | # Libraries needed by tools |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 38 | TOOLLINKOPTS=@LIBS@ |
| 39 | |
Brian Gaeke | f1dd200 | 2004-01-16 21:31:34 +0000 | [diff] [blame] | 40 | # Path to the library archiver program. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 41 | AR_PATH = @AR@ |
| 42 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 43 | # The pathnames of the Flex and Bison programs, respectively. |
John Criswell | b8b80c4 | 2004-01-12 16:14:54 +0000 | [diff] [blame] | 44 | YACC = @YACC@ |
| 45 | BISON = @BISON@ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 46 | FLEX = @LEX@ |
| 47 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 48 | # Paths to miscellaneous programs. |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 49 | RPWD = pwd |
| 50 | SED = sed |
| 51 | RM = rm |
| 52 | ECHO = echo |
John Criswell | 0057e32 | 2003-07-22 19:17:35 +0000 | [diff] [blame] | 53 | MKDIR = @abs_top_srcdir@/autoconf/mkinstalldirs |
Brian Gaeke | 26be9c5 | 2004-01-13 06:43:16 +0000 | [diff] [blame] | 54 | DATE = date |
| 55 | MV = mv |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 56 | INSTALL = @INSTALL@ |
| 57 | DOT = @DOT@ |
| 58 | ETAGS = @ETAGS@ |
Brian Gaeke | e0cec5d | 2004-01-22 21:55:01 +0000 | [diff] [blame] | 59 | ETAGSFLAGS = @ETAGSFLAGS@ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 60 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 61 | # Determine the target for which LLVM should generate code. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 62 | LLVMGCCARCH := @target@/3.4-llvm |
| 63 | |
Brian Gaeke | f1dd200 | 2004-01-16 21:31:34 +0000 | [diff] [blame] | 64 | # Full pathnames of LLVM C/C++ front-end 'cc1' and 'cc1plus' binaries: |
| 65 | LCC1 = @LLVMCC1@ |
| 66 | LCC1XX = @LLVMCC1PLUS@ |
| 67 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 71 | OBJ_ROOT := . |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 72 | |
Brian Gaeke | b798b1e | 2004-03-10 17:37:50 +0000 | [diff] [blame] | 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. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 75 | LLVMGCCDIR := @LLVMGCCDIR@ |
| 76 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 77 | # 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] | 78 | # make command line (ie, make ENABLE_PROFILING=1): |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 79 | |
| 80 | # When ENABLE_OPTIMIZED is enabled, Release builds of all of the LLVM code are |
| 81 | # turned on, and Debug builds are turned off. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 82 | #ENABLE_OPTIMIZED = 1 |
| 83 | @ENABLE_OPTIMIZED@ |
| 84 | |
| 85 | # When ENABLE_PROFILING is enabled, the llvm source base is built with profile |
| 86 | # information to allow gprof to be used to get execution frequencies. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 87 | #ENABLE_PROFILING = 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 88 | |
Misha Brukman | e967650 | 2003-07-02 21:20:04 +0000 | [diff] [blame] | 89 | # This option tells the Makefiles to produce verbose output. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 90 | # It essentially prints the commands that make is executing |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 91 | #VERBOSE = 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 92 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 93 | # Enable JIT for this platform |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 94 | @JIT@ |
| 95 | |
Brian Gaeke | 88aeace | 2004-01-21 19:39:07 +0000 | [diff] [blame] | 96 | # Shared library extension for this platform. |
| 97 | SHLIBEXT = @SHLIBEXT@ |
| 98 | |
John Criswell | e6d468f | 2004-06-01 19:04:38 +0000 | [diff] [blame] | 99 | # Executable file extension for this platform. |
| 100 | EXEEXT = @EXEEXT@ |
| 101 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 102 | ########################################################################### |
| 103 | # Directory Configuration |
| 104 | # This section of the Makefile determines what is where. To be |
| 105 | # specific, there are several locations that need to be defined: |
| 106 | # |
| 107 | # o LLVM_SRC_ROOT : The root directory of the LLVM source code. |
| 108 | # o LLVM_OBJ_ROOT : The root directory containing the built LLVM code. |
| 109 | # |
| 110 | # o BUILD_SRC_DIR : The directory containing the code to build. |
| 111 | # o BUILD_SRC_ROOT : The root directory of the code to build. |
| 112 | # |
| 113 | # o BUILD_OBJ_DIR : The directory in which compiled code will be placed. |
| 114 | # o BUILD_OBJ_ROOT : The root directory in which compiled code is placed. |
| 115 | # |
| 116 | ########################################################################### |
| 117 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 118 | # Set the object build directory. By default, it is the current directory. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 119 | ifndef BUILD_OBJ_DIR |
| 120 | BUILD_OBJ_DIR := $(subst //,/,$(shell $(RPWD))) |
| 121 | endif |
| 122 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 123 | # Set the root of the object directory. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 124 | ifndef BUILD_OBJ_ROOT |
| 125 | BUILD_OBJ_ROOT := $(subst //,/,$(shell cd $(BUILD_OBJ_DIR)/$(LEVEL); $(RPWD))) |
| 126 | endif |
| 127 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 128 | # Set the source build directory. That is almost always the current directory. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 129 | ifndef BUILD_SRC_DIR |
| 130 | BUILD_SRC_DIR := $(subst //,/,@abs_top_srcdir@/$(patsubst $(BUILD_OBJ_ROOT)%,%,$(BUILD_OBJ_DIR))) |
| 131 | endif |
| 132 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 133 | # Set the source root directory. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 134 | ifndef BUILD_SRC_ROOT |
| 135 | BUILD_SRC_ROOT := $(subst //,/,@abs_top_srcdir@) |
| 136 | endif |
| 137 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 138 | # Set the LLVM object directory. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 139 | ifndef LLVM_OBJ_ROOT |
| 140 | ifdef LLVM_SRC_ROOT |
| 141 | LLVM_OBJ_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(RPWD)) |
| 142 | else |
| 143 | LLVM_OBJ_ROOT := $(BUILD_OBJ_ROOT) |
| 144 | endif |
| 145 | endif |
| 146 | |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 147 | # Set the LLVM source directory. |
| 148 | # It is typically the root directory of what we're compiling now. |
John Criswell | 7f33695 | 2003-09-06 14:44:17 +0000 | [diff] [blame] | 149 | ifndef LLVM_SRC_ROOT |
| 150 | LLVM_SRC_ROOT := $(BUILD_SRC_ROOT) |
| 151 | endif |
| 152 | |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 153 | # Set SourceDir for backwards compatbility. |
John Criswell | 613758d | 2003-09-11 18:03:50 +0000 | [diff] [blame] | 154 | ifndef SourceDir |
| 155 | SourceDir=$(BUILD_SRC_DIR) |
| 156 | endif |
| 157 | |
Reid Spencer | 37130d2 | 2004-10-04 07:05:07 +0000 | [diff] [blame] | 158 | # Handle configured libraries |
| 159 | HAVE_BZIP2 := @HAVE_BZIP2@ |
Reid Spencer | 94926f0 | 2004-10-04 17:49:19 +0000 | [diff] [blame] | 160 | HAVE_ZLIB := @HAVE_ZLIB@ |
Reid Spencer | 37130d2 | 2004-10-04 07:05:07 +0000 | [diff] [blame] | 161 | |
Brian Gaeke | 5339ada | 2003-12-10 00:25:32 +0000 | [diff] [blame] | 162 | # Installation directories, as provided by the configure script. |
Brian Gaeke | 5339ada | 2003-12-10 00:25:32 +0000 | [diff] [blame] | 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@ |
Brian Gaeke | 8abff79 | 2004-01-22 22:53:48 +0000 | [diff] [blame] | 174 | bytecode_libdir = $(LLVMGCCDIR)/bytecode-libs |
Brian Gaeke | 5339ada | 2003-12-10 00:25:32 +0000 | [diff] [blame] | 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 | |