package / ocaml-base-compiler.4.10.0 / Makefile.config.in
1 # @configure_input@
2
3 #**************************************************************************
4 #* *
5 #* OCaml *
6 #* *
7 #* Xavier Leroy, projet Cristal, INRIA Rocquencourt *
8 #* *
9 #* Copyright 1999 Institut National de Recherche en Informatique et *
10 #* en Automatique. *
11 #* *
12 #* All rights reserved. This file is distributed under the terms of *
13 #* the GNU Lesser General Public License version 2.1, with the *
14 #* special exception on linking described in the file LICENSE. *
15 #* *
16 #**************************************************************************
17
18 # The configuration Makefile
19
20 ## The EMPTY variable, used in other definitions
21 EMPTY=
22
23 ## Arguments passed to the configure script
24
25 CONFIGURE_ARGS=@CONFIGURE_ARGS@
26
27 ## Top build directory
28
29 TOP_BUILDDIR = @top_builddir@
30
31 ## Installation directories
32
33 prefix=@prefix@
34
35 exec_prefix=@exec_prefix@
36
37 ### Where to install the binaries
38 BINDIR=@bindir@
39
40 datarootdir=@datarootdir@
41
42 ### Where to install the standard library
43 LIBDIR=@libdir@
44
45 ### Where to install the stub code for the standard library
46 STUBLIBDIR=@libdir@/stublibs
47
48 ### Where to install the man pages
49 # Man pages for commands go in $(MANDIR)/man$(PROGRAMS_MAN_SECTION)
50 # Man pages for the library go in $(MANDIR)/man/man$(LIBRARIES_MAN_SECTION)
51 MANDIR=@mandir@
52 PROGRAMS_MAN_SECTION=@programs_man_section@
53 LIBRARIES_MAN_SECTION=@libraries_man_section@
54
55 ### Do #! scripts work on your system?
56 ### Beware: on some systems (e.g. SunOS 4), this will work only if
57 ### the string "#!$(BINDIR)/ocamlrun" is less than 32 characters long.
58 ### In doubt, set HASHBANGSCRIPTS to false.
59 SHEBANGSCRIPTS=@shebangscripts@
60 LONG_SHEBANG=@long_shebang@
61 # For compatibility
62 HASHBANGSCRIPTS:=$(SHEBANGSCRIPTS)
63
64 ### Path to the libtool script
65 LIBTOOL = $(TOP_BUILDDIR)/libtool
66
67 ### Which C compiler to use
68 TOOLPREF=@ac_tool_prefix@
69 CC=@CC@
70
71 CC_HAS_DEBUG_PREFIX_MAP=@cc_has_debug_prefix_map@
72 AS_HAS_DEBUG_PREFIX_MAP=@as_has_debug_prefix_map@
73
74 ### Additional link-time options
75 # To support dynamic loading of shared libraries (they need to look at
76 # our own symbols):
77 OC_LDFLAGS=@oc_ldflags@
78
79 ### How to invoke the C preprocessor through the C compiler
80 CPP=@CPP@
81
82 ### How to invoke ranlib
83 RANLIB=@RANLIB@
84 RANLIBCMD=@RANLIBCMD@
85
86 ### How to invoke ar
87 ARCMD=@AR@
88
89 ### Extension of object files
90 O=@OBJEXT@
91 EXT_OBJ=.@OBJEXT@
92
93 ### How to tell the C compiler to output an object file
94 OUTPUTOBJ=@outputobj@
95
96 ### Extension of static libraries
97 A=@libext@
98 EXT_LIB=.@libext@
99
100 ### Extension of assembler files
101 S=@S@
102 EXT_ASM=.@S@
103
104 ### Extension for shared libraries
105 SO=@SO@
106 EXT_DLL=.@SO@
107
108 SHAREDLIB_CFLAGS=@sharedlib_cflags@
109
110 # Compile-time option to $(CC) to add a directory to be searched
111 # at run-time for shared libraries
112 RPATH=@rpath@
113
114 ############# Configuration for the native-code compiler
115
116 ### Whether the native compiler has been enabled or not
117 NATIVE_COMPILER=@native_compiler@
118
119 ### Name of architecture for the native-code compiler
120 ### Currently supported:
121 ###
122 ### i386 Intel Pentium PCs under Linux, *BSD*, NextStep
123 ### power Macintosh under Mac OS X and Linux
124 ### arm ARM under Linux
125 ###
126 ### Set ARCH=none if your machine is not supported
127 ARCH=@arch@
128
129 # Whether the architecture has 64 bits
130 ARCH64=@arch64@
131
132 ### Name of architecture model for the native-code compiler.
133 ### Some architectures come in several slightly different flavors
134 ### that share a common code generator. This variable tailors the
135 ### behavior of the code generator to the particular flavor used.
136 ### Currently needed only if ARCH=power; leave MODEL=default for
137 ### other architectures.
138 ### If ARCH=power: set MODEL=ppc
139 ### For other architectures: leave MODEL=default
140 ###
141 MODEL=@model@
142
143 ### Name of operating system family for the native-code compiler.
144 SYSTEM=@system@
145
146 ### Command and flags to use for assembling ocamlopt-generated code
147 ASM=@AS@
148
149 ### Command and flags to use for assembling .S files (often with preprocessing)
150 ASPP=@ASPP@
151
152 ### Set to "true" to install ".byte" executables (ocamlc.byte, etc.)
153 INSTALL_BYTECODE_PROGRAMS=@install_bytecode_programs@
154
155 ############# Configuration for the contributed libraries
156
157 ### Which libraries to compile and install
158 # Currently available:
159 # unix Unix system calls
160 # str Regular expressions and high-level string processing
161 # systhreads Same as threads, requires POSIX threads
162 # dynlink Dynamic linking of bytecode
163 # bigarray Large, multidimensional numerical arrays
164 OTHERLIBRARIES=@otherlibraries@
165
166 ### Link-time options to ocamlc or ocamlopt for linking with POSIX threads
167 # Needed for the "systhreads" package
168 PTHREAD_LINK=@pthread_link@
169 PTHREAD_CAML_LINK=$(addprefix -cclib ,$(PTHREAD_LINK))
170
171 UNIX_OR_WIN32=@unix_or_win32@
172 UNIXLIB=@unixlib@
173 BFD_CPPFLAGS=@bfd_cppflags@
174 BFD_LDFLAGS=@bfd_ldflags@
175 BFD_LDLIBS=@bfd_ldlibs@
176 INSTALL_SOURCE_ARTIFACTS=@install_source_artifacts@
177
178 OC_CFLAGS=@oc_cflags@
179 OC_CPPFLAGS=@oc_cppflags@
180 OCAMLC_CFLAGS=@ocamlc_cflags@
181
182 OCAMLC_CPPFLAGS=@ocamlc_cppflags@
183 BYTECCLIBS=@bytecclibs@
184 EXE=@exeext@
185 OUTPUTEXE=@outputexe@
186 SUPPORTS_SHARED_LIBRARIES=@supports_shared_libraries@
187 MKSHAREDLIBRPATH=@mksharedlibrpath@
188 DYNLINKOPTS=@DLLIBS@
189 NATDYNLINK=@natdynlink@
190 NATDYNLINKOPTS=@natdynlinkopts@
191 SYSLIB=@syslib@
192 MKLIB=@mklib@
193 OCAMLOPT_CFLAGS=@ocamlopt_cflags@
194 OCAMLOPT_CPPFLAGS=@ocamlopt_cppflags@
195 NATIVECCLIBS=@nativecclibs@
196 SYSTHREAD_SUPPORT=@systhread_support@
197 PACKLD=@PACKLD@
198 IFLEXDIR=@iflexdir@
199 EXTRALIBS=@extralibs@
200 CCOMPTYPE=@ccomptype@
201 TOOLCHAIN=@toolchain@
202 CMXS=@cmxs@
203
204 # On Windows, MKDLL, MKEXE and MKMAINDLL must ultimately be equivalent to
205 # $(FLEXLINK_CMD) $(FLEXLINK_FLAGS) [-exe|-maindll]
206 # or OCAML_FLEXLINK overriding will not work (see utils/config.mlp)
207
208 MKEXE=@mkexe@
209 MKDLL=@mksharedlib@
210 MKMAINDLL=@mkmaindll@
211
212 MKEXEDEBUGFLAG=@mkexedebugflag@
213 RUNTIMED=@debug_runtime@
214 RUNTIMEI=@instrumented_runtime@
215 WITH_DEBUGGER=@with_debugger@
216 WITH_CAMLTEX=@with_camltex@
217 WITH_OCAMLDOC=@ocamldoc@
218 ASM_CFI_SUPPORTED=@asm_cfi_supported@
219 WITH_FRAME_POINTERS=@frame_pointers@
220 WITH_SPACETIME=@spacetime@
221 ENABLE_CALL_COUNTS=@call_counts@
222 WITH_PROFINFO=@profinfo@
223 PROFINFO_WIDTH=@profinfo_width@
224 LIBUNWIND_AVAILABLE=@libunwind_available@
225 LIBUNWIND_INCLUDE_FLAGS=@libunwind_include_flags@
226 LIBUNWIND_LINK_FLAGS=@libunwind_link_flags@
227 WITH_FPIC=@fpic@
228 TARGET=@target@
229 HOST=@host@
230 FLAMBDA=@flambda@
231 WITH_FLAMBDA_INVARIANTS=@flambda_invariants@
232 FORCE_SAFE_STRING=@force_safe_string@
233 DEFAULT_SAFE_STRING=@default_safe_string@
234 WINDOWS_UNICODE=@windows_unicode@
235 AFL_INSTRUMENT=@afl@
236 MAX_TESTSUITE_DIR_RETRIES=@max_testsuite_dir_retries@
237 FLAT_FLOAT_ARRAY=@flat_float_array@
238 FUNCTION_SECTIONS=@function_sections@
239 AWK=@AWK@
240 STDLIB_MANPAGES=@stdlib_manpages@
241
242
243 ### Native command to build ocamlrun.exe
244
245 ifeq "$(TOOLCHAIN)" "msvc"
246 MERGEMANIFESTEXE=test ! -f $(1).manifest \
247 || mt -nologo -outputresource:$(1) -manifest $(1).manifest \
248 && rm -f $(1).manifest
249 MKEXE_BOOT=$(CC) $(OC_CFLAGS) $(OUTPUTEXE)$(1) $(2) \
250 /link /subsystem:console $(OC_LDFLAGS) && ($(MERGEMANIFESTEXE))
251 else
252 MKEXE_BOOT=$(CC) $(OC_CFLAGS) $(OC_LDFLAGS) $(OUTPUTEXE)$(1) $(2)
253 endif # ifeq "$(TOOLCHAIN)" "msvc"
254
255 # The following variables were defined only in the Windows-specific makefiles.
256 # They were not defined by the configure script used on Unix systems,
257 # so we also make sure to provide them only under Windows
258 # User code should absolutely not rely on their presence because
259 # in the future their definition may be moved to a more private part of
260 # the compiler's build system
261 ifeq "$(UNIX_OR_WIN32)" "win32"
262 OTOPDIR=$(WINTOPDIR)
263 CTOPDIR=$(WINTOPDIR)
264 CYGPATH=cygpath -m
265 DIFF=/usr/bin/diff -q --strip-trailing-cr
266 FIND=/usr/bin/find
267 SORT=/usr/bin/sort
268 SET_LD_PATH=PATH="$(PATH):$(LD_PATH)"
269 FLEXLINK_CMD=flexlink
270 MKEXE_ANSI=$(FLEXLINK) -exe
271 FLEXDLL_CHAIN=@flexdll_chain@
272 # FLEXLINK_FLAGS must be safe to insert in an OCaml string
273 # (see ocamlmklibconfig.ml in tools/Makefile)
274 FLEXLINK_FLAGS=@flexlink_flags@
275 FLEXLINK=$(FLEXLINK_CMD) $(FLEXLINK_FLAGS)
276 else # ifeq "$(UNIX_OR_WIN32)" "win32"
277 # On Unix, make sure FLEXLINK is defined but empty
278 FLEXLINK =
279 endif # ifeq "$(UNIX_OR_WIN32)" "win32"
280