-
Notifications
You must be signed in to change notification settings - Fork 33
/
Makefile.config.model
executable file
·211 lines (161 loc) · 5.44 KB
/
Makefile.config.model
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# -*- mode: makefile -*-
######################################################################
# HAS Flags
######################################################################
# If defined to non-empty value, generates dynamic libraries.
# Do not forget to add -fPIC to CFLAGS and CFLAGS_DEBUG
HAS_SHARED=1
# If defined to non-empty value, compiles the OCaml interface (bytecode)
HAS_OCAML = 1
# If defined to non-empty value, compiles the OCaml interface (native code)
HAS_OCAMLOPT = 1
# If defined to non-empty value, compiles the C++ interface (beta version)
# HAS_CPP = 1
# If defined to non-empty value, compiles the PPL domain
# (require included patch to PPL, see ppl/README and ppl/ppl.patch)
# HAS_PPL = 1
# If defined to non-empty value, enable domains from the PPLite library
# HAS_PPLITE = 1
# If defined to non-empty value, compiles the fppol domain
# (The fppol domain requires GLPK)
# HAS_GLPK = 1
# If defined to non-empty value, support for "long double" is enabled
# HAS_LONG_DOUBLE = 1
# If defined to non-empty value, compiles the Java interface
# HAS_JAVA = 1
# If defined to non-empty value, assumed to be the right executable,
# use FINDLIB/ocamlfind package system
# (advised)
OCAMLFIND = ocamlfind
######################################################################
# Directories
######################################################################
# Where to install and to find APRON
# ($(APRON_PREFIX)/include, $(APRON_PREFIX)/lib)
#
APRON_PREFIX = /tmp
# Where to install and to find MLGMPIDL
# ($(MLGMPIDL_PREFIX)/lib)
# Only if you do not use FINDLIB
MLGMPIDL_PREFIX = /tmp
# Where to install Java .jar files
#
JAVA_PREFIX = /tmp
# Where to find GMP ($(GMP_PREFIX)/include, ($GMP_PREFIX)/lib
#
GMP_PREFIX = /usr
# Where to find MPFR ($(MPFR_PREFIX)/include, ($MPFR_PREFIX)/lib
#
MPFR_PREFIX = /usr
# Where to find PPL ($(PPL_PREFIX)/include, $(PPL_PREFIX)/lib
#
PPL_PREFIX = /usr
# Where to find FLINT ($(FLINT_PREFIX)/include, ($FLINT_PREFIX)/lib
# (only required by PPLite)
FLINT_PREFIX = /usr
# Where to find PPLITE ($(PPLITE_PREFIX)/include, $(PPLITE_PREFIX)/lib
#
PPLITE_PREFIX = /usr
# Where to find GLPK ($(GLPK_PREFIX)/include, $(GLPK_PREFIX)/lib
#
GLPK_PREFIX = /usr
# Where to find OCAML ($(CAML_PREFIX)/bin, $(CAML_PREFIX)/lib/ocaml, ...)
#
CAML_PREFIX = `ocamlfind printconf stdlib`
# Where to find CAMLIDL
#
CAMLIDL_PREFIX = `ocamlfind query camlidl`
######################################################################
# Java binaries and directories
######################################################################
# Java launcher
JAVA = java
# Java compiler
JAVAC = javac -Xlint:unchecked
# Java header compiler
JAVAH = javah
# Java documentation generator
JAVADOC = javadoc
# Java archive tool
JAR = jar
# preprocessing directives to find JNI headers
JNIINC = -I/java/include
######################################################################
# Tools and Flags
######################################################################
# C compiler
#CC = gcc
# NOTE: for MACINTOSH (under MacOS 10.6), add in CFLAGS and their variants:
#
# -undefined supress -flat_namespace
#
# C compilation flags
CFLAGS = \
-Wcast-qual -Wswitch -Werror-implicit-function-declaration \
-Wall -Wextra -Wundef -Wbad-function-cast -Wcast-align -Wstrict-prototypes \
-Wno-unused -Wno-unused-parameter -Wno-unused-function \
-std=c99 -U__STRICT_ANSI__ \
-fPIC -O3 -DNDEBUG
# C compilation flags in debug (or profile) mode
CFLAGS_DEBUG = \
-Wcast-qual -Wswitch -Werror-implicit-function-declaration \
-Wall -Wextra -Wundef -Wbad-function-cast -Wcast-align -Wstrict-prototypes \
-Wno-unused -Wno-unused-parameter -Wno-unused-function \
-std=c99 -U__STRICT_ANSI__ \
-fPIC -g -O0 -UNDEBUG
# C compilation flags in profiling mode
CFLAGS_PROF = \
-Wcast-qual -Wswitch -Werror-implicit-function-declaration \
-Wall -Wextra -Wundef -Wbad-function-cast -Wcast-align -Wstrict-prototypes \
-Wno-unused -Wno-unused-parameter -Wno-unused-function \
-std=c99 \
-fPIC -O3 -DNDEBUG -g -pg
# Examples of CFLAGS
# CFLAGS = -Wswitch -Werror-implicit-function-declaration -Wall -std=c99 \
# -O3 -DNDEBUG \
# -march=pentium-m -mtune=pentium-m -pipe -mmmx -msse -msse2 \
# -mfpmath=sse -ftracer -funit-at-a-time -funroll-loops -fmove-all-movables
# C++ compiler
#CXX = g++
# C++ compilation flags
CXXFLAGS = \
-Wcast-qual -Wswitch \
-Wall -Wextra -Wundef -Wcast-align \
-Wno-unused -Wno-unused-parameter -Wno-unused-function \
-fPIC -O3 -DNDEBUG
# C++ compilation flags in debug (or profile) mode
CXXFLAGS_DEBUG = \
-Wcast-qual -Wswitch \
-Wall -Wextra -Wundef -Wcast-align \
-Wno-unused -Wno-unused-parameter -Wno-unused-function \
-fPIC -g -O0 -UNDEBUG
# The PPLite wrapper requires using the C++11 language standard
# (note: building PPLite from sources requires the C++17 language standard)
PPLITE_CXXFLAGS = -std=c++11 $CXXFLAGS
PPLITE_CXXFLAGS_DEBUG = -std=c++11 $CXXFLAGS_DEBUG
AR = ar
RANLIB = ranlib
SED = sed
PERL = perl
INSTALL = install
INSTALLSTRIP = install --strip
INSTALLd = install -d
OCAMLC = ocamlc.opt
OCAMLOPT = ocamlopt.opt
# ocamlc compilation flags
OCAMLFLAGS = -g
# ocamlopt compilation flags
OCAMLOPTFLAGS = -inline 20
OCAMLDEP = ocamldep
OCAMLLEX = ocamllex
OCAMLYACC = ocamlyacc
OCAMLDOC = ocamldoc
OCAMLMKTOP = ocamlmktop
OCAMLMKLIB = ocamlmklib
CAMLIDL = camlidl
LATEX=latex
PDFLATEX=pdflatex
DVIPDF=dvipdf
MAKEINDEX=makeindex
TEXI2ANY=texi2any
OCAMLPACK = $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))/ocamlpack