1 PROJECT_NAME = @PACKAGE_NAME@
2 PROJ_VERSION = @PACKAGE_VERSION@
4 # Set this variable to the top of the LLVM source tree.
6 LLVM_SRC_ROOT = @LLVM_SRC@
9 # Set this variable to the top level directory where LLVM was built
10 # (this is *not* the same as OBJ_ROOT as defined in LLVM's Makefile.config).
12 LLVM_OBJ_ROOT = @LLVM_OBJ@
14 # Set this variable based on whether or not we have access to LLVM source and
16 ifeq ($(LLVM_SRC_ROOT),no)
19 ifeq ($(LLVM_OBJ_ROOT),no)
26 # Set the directory root of this project's source files
27 PROJ_SRC_ROOT := $(subst //,/,@abs_top_srcdir@)
29 # Set the root directory of this project's object files
30 PROJ_OBJ_ROOT := $(subst //,/,@abs_top_builddir@)
32 # Set the root directory of this project's install prefix
33 PROJ_INSTALL_ROOT := @prefix@
35 # Include LLVM's configuration Makefile, if available.
37 include $(LLVM_OBJ_ROOT)/Makefile.config
40 # Otherwise, define specific things we know we need.
41 realpath = $(shell cd $(1); $(PWD))
42 PROJ_OBJ_DIR := $(call realpath, .)
43 PROJ_OBJ_ROOT := $(call realpath, $(PROJ_OBJ_DIR)/$(LEVEL))
44 PROJ_SRC_DIR := $(call realpath, $(PROJ_SRC_ROOT)/$(patsubst $(PROJ_OBJ_ROOT)%,%,$(PROJ_OBJ_DIR)))
59 # Configure parameters.
60 TARGET_OS := @TARGET_OS@
66 # Ignore the LIBS set by $(LLVM_OBJ_ROOT)/Makefile.config
69 # Set SourceDir for backwards compatibility.
71 SourceDir=$(PROJ_SRC_DIR)
75 ARCH := $(TARGET_ARCH)
87 LLVMGCC := $(TARGET_LLVMGCC)
88 LLVMCC := $(TARGET_LLVMGCC)
89 LLVMCC_OPTION := llvm-gcc
93 LLVMGXX := $(TARGET_LLVMGXX)
94 LLVMCXX := $(TARGET_LLVMGXX)
95 LLVMCC_OPTION := llvm-gcc
98 ifdef TARGET_LLVMGCCARCH
99 LLVMGCCARCH := $(TARGET_LLVMGCCARCH)
103 TEST_TARGET_FLAGS += -mthumb
107 # Provide variables specific to llvm-test
111 # If these are set then run the SPEC benchmarks.
112 # You must provide the SPEC benchmarks on your own.
117 # Path to the SPEC benchmarks.
118 SPEC2006_ROOT := @SPEC2006_ROOT@
119 SPEC2000_ROOT := @SPEC2000_ROOT@
120 SPEC95_ROOT := @SPEC95_ROOT@
122 # F2C: Enable LLVM to run Fortran benchmarks without a Fortran front-end
129 # F95: Enable LLVM to run Fortran benchmarks without a Fortran front-end
136 # Path to the Povray source code.
138 POVRAY_ROOT := @POVRAY_ROOT@
140 # Path to the Namd source code
142 NAMD_ROOT := @NAMD_ROOT@
144 # Path to the Sweep3d source code
146 SWEEP3D_ROOT := @SWEEP3D_ROOT@
148 # Path to the fpgrowth source code
150 FPGROWTH_ROOT := @FPGROWTH_ROOT@
152 # Path to the ALP source code
154 ALP_ROOT := @ALP_ROOT@
156 # Path to the NURBS source code
158 NURBS_ROOT := @NURBS_ROOT@
160 # Path to the HMMER source code
162 HMMER_ROOT := @HMMER_ROOT@
164 # Path to the Skidmarks source code
166 SKIDMARKS10_ROOT := @SKIDMARKS10_ROOT@
168 # Disable LLC diffs for testing.
171 # Define HAVE_RE_COMP to 1 if re_comp is found, don't define it otherwise
174 # Get the shared library (dll) extension
175 SHLIBEXT = @SHLIBEXT@