Add polly tests to configure file.
[llvm-testsuite.git] / Makefile.config.in
blobaa9f3de88b031d2f82c813dc6e99de6fa3153941
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
15 # object trees.
16 ifeq ($(LLVM_SRC_ROOT),no)
17 HAS_LLVM := 0
18 else
19 ifeq ($(LLVM_OBJ_ROOT),no)
20 HAS_LLVM := 0
21 else
22 HAS_LLVM := 1
23 endif
24 endif
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.
36 ifeq ($(HAS_LLVM),1)
37 include $(LLVM_OBJ_ROOT)/Makefile.config
38 else
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)))
46 CP := cp
47 DATE := date
48 DOT := dot
49 ECHO := echo
50 INSTALL := install
51 LIBS :=
52 MKDIR := mkdir
53 MV := mv
54 PWD := pwd
55 RM := rm
56 SED := sed
57 TCLSH := tclsh
59 # Configure parameters.
60 TARGET_OS := @TARGET_OS@
61 ARCH := @ARCH@
62 ENDIAN := @ENDIAN@
64 endif
66 # Ignore the LIBS set by $(LLVM_OBJ_ROOT)/Makefile.config
67 LIBS :=
69 # Set SourceDir for backwards compatibility.
70 ifndef SourceDir
71 SourceDir=$(PROJ_SRC_DIR)
72 endif
74 ifdef TARGET_ARCH
75 ARCH := $(TARGET_ARCH)
76 endif
78 ifdef TARGET_CC
79 CC := $(TARGET_CC)
80 endif
82 ifdef TARGET_CXX
83 CXX := $(TARGET_CXX)
84 endif
86 ifdef TARGET_LLVMGCC
87 LLVMGCC := $(TARGET_LLVMGCC)
88 LLVMCC := $(TARGET_LLVMGCC)
89 LLVMCC_OPTION := llvm-gcc
90 endif
92 ifdef TARGET_LLVMGXX
93 LLVMGXX := $(TARGET_LLVMGXX)
94 LLVMCXX := $(TARGET_LLVMGXX)
95 LLVMCC_OPTION := llvm-gcc
96 endif
98 ifdef TARGET_LLVMGCCARCH
99 LLVMGCCARCH := $(TARGET_LLVMGCCARCH)
100 endif
102 ifeq ($(ARCH),THUMB)
103 TEST_TARGET_FLAGS += -mthumb
104 endif
107 # Provide variables specific to llvm-test
110 # SPEC benchmarks:
111 #     If these are set then run the SPEC benchmarks.
112 #     You must provide the SPEC benchmarks on your own.
113 @USE_SPEC2006@
114 @USE_SPEC2000@
115 @USE_SPEC95@
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
123 @USE_F2C@
124 F2C_DIR := @F2C_DIR@
125 F2C     := @F2C@
126 F2C_INC := @F2C_INC@
127 F2C_LIB := @F2C_LIB@
129 # F95: Enable LLVM to run Fortran benchmarks without a Fortran front-end
130 @USE_F95@
131 F95_DIR := @F95_DIR@
132 F95     := @F95@
133 F95_INC := @F95_INC@
134 F95_LIB := @F95_LIB@
136 # Path to the Povray source code.
137 @USE_POVRAY@
138 POVRAY_ROOT := @POVRAY_ROOT@
140 # Path to the Namd source code
141 @USE_NAMD@
142 NAMD_ROOT := @NAMD_ROOT@
144 # Path to the Sweep3d source code
145 @USE_SWEEP3D@
146 SWEEP3D_ROOT := @SWEEP3D_ROOT@
148 # Path to the fpgrowth source code
149 @USE_FPGROWTH@
150 FPGROWTH_ROOT := @FPGROWTH_ROOT@
152 # Path to the ALP source code
153 @USE_ALP@
154 ALP_ROOT := @ALP_ROOT@
156 # Path to the NURBS source code
157 @USE_NURBS@
158 NURBS_ROOT := @NURBS_ROOT@
160 # Path to the HMMER source code
161 @USE_HMMER@
162 HMMER_ROOT := @HMMER_ROOT@
164 # Path to the Skidmarks source code
165 @USE_SKIDMARKS10@
166 SKIDMARKS10_ROOT := @SKIDMARKS10_ROOT@
168 # Disable LLC diffs for testing.
169 @DISABLE_LLC_DIFFS@
171 # Define HAVE_RE_COMP to 1 if re_comp is found, don't define it otherwise
172 @HAVE_RE_COMP@
174 # Get the shared library (dll) extension
175 SHLIBEXT = @SHLIBEXT@