Makefile.in 64.1 KB
Newer Older
Andrei Paskevich's avatar
Andrei Paskevich committed
1 2 3
####################################################################
#                                                                  #
#  The Why3 Verification Platform   /   The Why3 Development Team  #
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
4
#  Copyright 2010-2014   --   INRIA - CNRS - Paris-Sud University  #
Andrei Paskevich's avatar
Andrei Paskevich committed
5 6 7 8 9 10
#                                                                  #
#  This software is distributed under the terms of the GNU Lesser  #
#  General Public License version 2.1, with the special exception  #
#  on linking described in file LICENSE.                           #
#                                                                  #
####################################################################
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
11

12 13 14 15 16 17
VERBOSEMAKE ?= @enable_verbose_make@

ifeq ($(VERBOSEMAKE),yes)
  QUIET =
else
  QUIET = yes
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
18 19
endif

20
# install the binaries
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
21
DESTDIR =
22

23
prefix	    = @prefix@
24 25 26 27 28
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@

BINDIR  = $(DESTDIR)@bindir@
LIBDIR  = $(DESTDIR)@libdir@
29
DATADIR = $(DESTDIR)@datarootdir@
30
MANDIR  = $(DESTDIR)@mandir@
31
TOOLDIR = $(LIBDIR)/why3/commands
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
32

Andrei Paskevich's avatar
Andrei Paskevich committed
33
# OS specific stuff
34
EXE   = @EXE@
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
35 36

# other variables
37
CC        = @CC@
38 39 40 41 42 43 44
OCAMLC    = @OCAMLC@
OCAMLOPT  = @OCAMLOPT@
OCAMLDEP  = @OCAMLDEP@
OCAMLLEX  = @OCAMLLEX@
OCAMLYACC = @OCAMLYACC@
OCAMLDOC  = @OCAMLDOC@
OCAMLLIB  = @OCAMLLIB@
45
OCAMLINSTALLLIB  = $(DESTDIR)@OCAMLINSTALLLIB@
46 47
OCAMLBEST = @OCAMLBEST@
OCAMLVERSION = @OCAMLVERSION@
48 49
COQC      = @COQC@
COQDEP    = @COQDEP@
50
CAMLP5O   = @CAMLP5O@
MARCHE Claude's avatar
MARCHE Claude committed
51
FRAMAC_LIBDIR = $(DESTDIR)@FRAMAC_LIBDIR@
52

53
DEPFLAGS  = -slash -I lib/why3
54
ifeq (@OCAMLBEST@,opt)
Andrei Paskevich's avatar
Andrei Paskevich committed
55
DEPFLAGS += -native
56 57
endif

58
RUBBER = @RUBBER@
59
HEVEA = @HEVEA@
60
HACHA = @HACHA@
61
EMACS = @EMACS@
62

63
#PSVIEWER  = @PSVIEWER@
Andrei Paskevich's avatar
Andrei Paskevich committed
64
#PDFVIEWER = @PDFVIEWER@
65

66
INCLUDES = @ZIPINCLUDE@
67 68
OFLAGS = -w Aer-41-44-45 -dtypes -g -I lib/why3 $(INCLUDES)
BFLAGS = -w Aer-41-44-45 -dtypes -g -I lib/why3 $(INCLUDES)
69 70 71

OLINKFLAGS = -linkall $(EXTCMXA)
BLINKFLAGS = -linkall $(EXTCMA)
72

73
ifeq (@enable_profiling@,yes)
74 75 76
OFLAGS += -g -p
endif

77 78
# external libraries common to all binaries

79
EXTOBJS =
80
EXTLIBS = str unix nums dynlink @ZIPLIB@
81 82 83

EXTCMA	= $(addsuffix .cma,$(EXTLIBS)) $(addsuffix .cmo,$(EXTOBJS))
EXTCMXA = $(addsuffix .cmxa,$(EXTLIBS)) $(addsuffix .cmx,$(EXTOBJS))
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
84

85 86
TARGET_EMACS = share/emacs/why3.elc

Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
87 88 89
###############
# main target
###############
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
90

91 92 93 94
all: @OCAMLBEST@
plugins: plugins.@OCAMLBEST@
opt: plugins.opt
byte: plugins.byte
Francois Bobot's avatar
Francois Bobot committed
95

96 97 98 99 100
ifeq (@enable_local@,yes)
all: install_local
endif

.PHONY: byte opt clean depend all install install_local install_no_local
101
.PHONY: plugins plugins.byte plugins.opt
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
102

103 104 105
##############
# Why3 library
##############
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
106

107
LIBGENERATED = src/util/config.ml \
108
	       src/util/rc.ml src/util/lexlib.ml src/parser/lexer.ml \
109 110
	       src/parser/parser.mli src/parser/parser.ml \
	       src/driver/driver_parser.mli src/driver/driver_parser.ml \
111 112
	       src/driver/driver_lexer.ml \
               src/session/compress.ml src/session/xml.ml \
113
	       src/session/strategy_parser.ml \
114
	       lib/ocaml/why3__BigInt_compat.ml
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
115

116 117
LIB_UTIL = config bigInt util opt lists strings \
	   extmap extset exthtbl weakhtbl \
118
	   hashcons stdlib exn_printer pp debug loc lexlib print_tree \
119
	   cmdline warning sysutil rc plugin bigInt number pqueue
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
120

121 122
LIB_CORE = ident ty term pattern decl theory \
	   task pretty dterm env trans printer
123

124
LIB_DRIVER = call_provers driver_ast driver_parser driver_lexer driver \
125
	     whyconf autodetection
126

127 128
LIB_MLW	= ity

129 130
LIB_PARSER = ptree glob parser typing lexer

131
LIB_TRANSFORM = simplify_formula inlining split_goal induction \
132
		eliminate_definition eliminate_algebraic \
133
		eliminate_inductive eliminate_let eliminate_if \
134 135 136 137
		libencoding discriminate encoding encoding_select \
		encoding_guards_full encoding_tags_full \
		encoding_guards encoding_tags encoding_twin \
		encoding_sort simplify_array filter_trigger \
138
		introduction abstraction close_epsilon lift_epsilon \
139
		eliminate_epsilon \
MARCHE Claude's avatar
MARCHE Claude committed
140
		eval_match instantiate_predicate smoke_detector \
141
		reduction_engine compute
142

143
LIB_PRINTER = alt_ergo why3printer smtv1 smtv2 coq pvs isabelle \
144
	      simplify gappa cvc3 yices mathematica
145

146
LIB_WHYML = mlw_ty mlw_expr mlw_decl mlw_pretty mlw_wp mlw_module \
147
	    mlw_dexpr mlw_typing mlw_driver mlw_ocaml \
148
	    mlw_main mlw_interp
149 150

LIBMODULES =  $(addprefix src/util/, $(LIB_UTIL)) \
151 152
	      $(addprefix src/core/, $(LIB_CORE)) \
	      $(addprefix src/driver/, $(LIB_DRIVER)) \
153
	      $(addprefix src/mlw/, $(LIB_MLW)) \
154
	      $(addprefix src/parser/, $(LIB_PARSER)) \
155
	      $(addprefix src/transform/, $(LIB_TRANSFORM)) \
François Bobot's avatar
François Bobot committed
156
	      $(addprefix src/printer/, $(LIB_PRINTER)) \
157
	      $(addprefix src/whyml/, $(LIB_WHYML))
158

159 160
LIB_SESSION = compress xml termcode session session_tools strategy \
              strategy_parser session_scheduler
161

162 163
LIBSESSIONMODULES = $(addprefix src/session/, $(LIB_SESSION))

164
LIBDIRS = util core driver mlw parser transform printer whyml
165
LIBINCLUDES = $(addprefix -I src/, $(LIBDIRS))
MARCHE Claude's avatar
MARCHE Claude committed
166

167
LIBSESSIONDIRS = session
168 169
LIBSESSIONINCLUDES = $(addprefix -I src/, $(LIBSESSIONDIRS))

Andrei Paskevich's avatar
Andrei Paskevich committed
170
LIBDEP = $(addsuffix .dep, $(LIBMODULES))
171 172
LIBCMO = $(addsuffix .cmo, $(LIBMODULES))
LIBCMX = $(addsuffix .cmx, $(LIBMODULES))
173

174 175 176 177
LIBSESSIONDEP = $(addsuffix .dep, $(LIBSESSIONMODULES))
LIBSESSIONCMO = $(addsuffix .cmo, $(LIBSESSIONMODULES))
LIBSESSIONCMX = $(addsuffix .cmx, $(LIBSESSIONMODULES))

Andrei Paskevich's avatar
Andrei Paskevich committed
178
$(LIBDEP): DEPFLAGS += $(LIBINCLUDES)
179
$(LIBCMO) $(LIBCMX): INCLUDES += $(LIBINCLUDES)
180
$(LIBCMX): OFLAGS += -for-pack Why3
181

182 183 184 185
$(LIBSESSIONDEP): DEPFLAGS += $(LIBSESSIONINCLUDES)
$(LIBSESSIONCMO) $(LIBSESSIONCMX): INCLUDES += $(LIBSESSIONINCLUDES)
$(LIBSESSIONCMX): OFLAGS += -for-pack Why3session

186
$(LIBDEP): $(LIBGENERATED)
187
$(LIBSESSIONDEP): $(LIBGENERATED)
188

189 190 191 192
# Zarith

ifeq (@enable_zarith@,yes)

193
lib/ocaml/why3__BigInt_compat.ml: config.status lib/ocaml/why3__BigInt_zarith.ml
194
	cp lib/ocaml/why3__BigInt_zarith.ml $@
195 196 197

else

198
lib/ocaml/why3__BigInt_compat.ml: config.status lib/ocaml/why3__BigInt_num.ml
199
	cp lib/ocaml/why3__BigInt_num.ml $@
200 201 202

endif

203
clean::
204
	rm -f lib/ocaml/why3__BigInt_compat.ml
205

206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
# Ocamlzip

ifeq (@enable_zip@,yes)

src/session/compress.ml: config.status src/session/compress_z.ml
	cp src/session/compress_z.ml $@

else

src/session/compress.ml: config.status src/session/compress_none.ml
	cp src/session/compress_none.ml $@

endif

clean::
	rm -f src/session/compress.ml

223
# build targets
224

225 226
byte: lib/why3/why3.cma
opt:  lib/why3/why3.cmxa
227

228
lib/why3/why3.cma: lib/why3/why3.cmo
Andrei Paskevich's avatar
Andrei Paskevich committed
229 230
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) -a $(BFLAGS) -o $@ $^
231

232
lib/why3/why3.cmxa: lib/why3/why3.cmx
Andrei Paskevich's avatar
Andrei Paskevich committed
233 234
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) -a $(OFLAGS) -o $@ $^
235

236
lib/why3/why3.cmo: $(LIBCMO)
Andrei Paskevich's avatar
Andrei Paskevich committed
237 238
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -pack -o $@ $^
239

240
lib/why3/why3.cmx: $(LIBCMX)
Andrei Paskevich's avatar
Andrei Paskevich committed
241 242
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -pack -o $@ $^
243

244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
byte: lib/why3/why3session.cma
opt:  lib/why3/why3session.cmxa

lib/why3/why3session.cma: lib/why3/why3session.cmo
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) -a $(BFLAGS) -o $@ $^

lib/why3/why3session.cmxa: lib/why3/why3session.cmx
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) -a $(OFLAGS) -o $@ $^

lib/why3/why3session.cmo: $(LIBSESSIONCMO)
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -pack -o $@ $^

lib/why3/why3session.cmx: $(LIBSESSIONCMX)
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -pack -o $@ $^

Andrei Paskevich's avatar
Andrei Paskevich committed
263
# clean and depend
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
264

Andrei Paskevich's avatar
Andrei Paskevich committed
265
ifneq "$(MAKECMDGOALS)" "clean"
266
include $(LIBDEP) $(LIBSESSIONDEP)
Andrei Paskevich's avatar
Andrei Paskevich committed
267
endif
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
268

269
depend: $(LIBDEP) $(LIBSESSIONDEP)
270

Andrei Paskevich's avatar
Andrei Paskevich committed
271
LIBSDIRS = src $(addprefix src/, $(LIBDIRS))
272 273
LIBCLEAN = $(addsuffix /*.cm[iox], $(LIBSDIRS)) \
	   $(addsuffix /*.annot, $(LIBSDIRS)) \
274 275
	   $(addsuffix /*.output, $(LIBSDIRS)) \
	   $(addsuffix /*.automaton, $(LIBSDIRS)) \
Andrei Paskevich's avatar
Andrei Paskevich committed
276
	   $(addsuffix /*.dep, $(LIBSDIRS)) \
277 278 279 280 281
	   $(addsuffix /*.o, $(LIBSDIRS)) \
	   $(addsuffix /*~, $(LIBSDIRS))

clean::
	rm -f $(LIBCLEAN) $(LIBGENERATED)
282
	rm -f lib/why3/why3.cm* lib/why3/why3.[ao]
283

284 285 286
###############
# installation
###############
287

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
288 289
clean_old_install::
	rm -rf $(LIBDIR)/why3
MARCHE Claude's avatar
MARCHE Claude committed
290
	rm -rf $(DATADIR)/why3
291
	rm -rf $(OCAMLINSTALLLIB)/why3
MARCHE Claude's avatar
MARCHE Claude committed
292

293

294
ifeq ($(EMACS),no)
295
install_no_local:: clean_old_install
296 297 298
else
install_no_local:: clean_old_install $(TARGET_EMACS)
endif
299
	mkdir -p $(BINDIR)
Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
300
	mkdir -p $(LIBDIR)/why3
301
	mkdir -p $(TOOLDIR)
302
	mkdir -p $(DATADIR)/why3
303
	mkdir -p $(DATADIR)/why3/images
304 305
	mkdir -p $(DATADIR)/why3/images/boomy
	mkdir -p $(DATADIR)/why3/images/fatcow
306
	mkdir -p $(DATADIR)/why3/vim
307
	mkdir -p $(DATADIR)/why3/lang
MARCHE Claude's avatar
MARCHE Claude committed
308
	mkdir -p $(DATADIR)/why3/theories
309
	mkdir -p $(DATADIR)/why3/modules/mach
MARCHE Claude's avatar
MARCHE Claude committed
310
	mkdir -p $(DATADIR)/why3/drivers
311
	mkdir -p $(DATADIR)/emacs/site-lisp/
MARCHE Claude's avatar
MARCHE Claude committed
312
	cp -f theories/*.why $(DATADIR)/why3/theories
313
	cp -f modules/*.mlw $(DATADIR)/why3/modules
314
	cp -f modules/mach/*.mlw $(DATADIR)/why3/modules/mach
Andrei Paskevich's avatar
Andrei Paskevich committed
315
	cp -f drivers/*.drv drivers/*.gen $(DATADIR)/why3/drivers
316
	cp -f share/provers-detection-data.conf $(DATADIR)/why3/
317
	cp -f share/images/icons.rc $(DATADIR)/why3/images
318
	cp -f share/images/*.png $(DATADIR)/why3/images
319 320
	cp -f share/images/boomy/*.png $(DATADIR)/why3/images/boomy
	cp -f share/images/fatcow/*.png $(DATADIR)/why3/images/fatcow
321
	cp -f share/why3session.dtd $(DATADIR)/why3
322
	cp -rf share/javascript $(DATADIR)/why3/javascript
323 324
	cp -f share/vim/why3.vim $(DATADIR)/why3/vim/why3.vim
	cp -f share/lang/why3.lang $(DATADIR)/why3/lang/why3.lang
325

MARCHE Claude's avatar
MARCHE Claude committed
326
install_no_local_lib::
327
	mkdir -p $(OCAMLINSTALLLIB)/why3
Andrei Paskevich's avatar
Andrei Paskevich committed
328
	cp -f lib/why3/why3.cm* lib/why3/why3.[ao] \
329
		lib/why3/why3session.cm* lib/why3/why3session.[ao] \
330
		lib/why3/META $(OCAMLINSTALLLIB)/why3
MARCHE Claude's avatar
MARCHE Claude committed
331

332 333
ifeq (@enable_local@,yes)
install install-lib:
334 335
	@echo "Why3 is configured in local installation mode."
	@echo "To install Why3, run ./configure --disable-local ; make ; make install"
336
else
MARCHE Claude's avatar
MARCHE Claude committed
337
install: clean_old_install install_no_local
MARCHE Claude's avatar
MARCHE Claude committed
338
install-lib: install_no_local_lib
339 340
endif

MARCHE Claude's avatar
MARCHE Claude committed
341 342
install-all: install install-lib

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
343 344 345 346 347 348
##################
# Uninstallation
##################

uninstall: clean_old_install

349 350 351 352 353 354 355
##################
# Why3 emacs mode
##################

%.elc: %.el
	$(EMACS) --batch --no-init-file -f batch-byte-compile $<

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
356 357 358 359 360 361 362 363 364 365 366 367 368
clean_old_install::
	rm -f $(DATADIR)/emacs/site-lisp/why3.el
ifneq ($(EMACS),no)
	rm -f $(DATADIR)/emacs/site-lisp/why3.elc
endif

install_no_local::
	cp -f share/emacs/why3.el $(DATADIR)/emacs/site-lisp/why3.el
ifneq ($(EMACS),no)
	cp -f share/emacs/why3.elc $(DATADIR)/emacs/site-lisp/why3.elc
endif


369
##################
370
# Why3 plugins
371 372
##################

Andrei Paskevich's avatar
Andrei Paskevich committed
373
PLUGGENERATED = plugins/tptp/tptp_lexer.ml \
374 375
		plugins/tptp/tptp_parser.ml plugins/tptp/tptp_parser.mli \
		plugins/parser/dimacs.ml \
376

377
PLUG_PARSER = genequlin dimacs
378
PLUG_PRINTER =
379
PLUG_TRANSFORM =
380
PLUG_TPTP = tptp_ast tptp_parser tptp_typing tptp_lexer tptp_printer
381

382
PLUGINS = genequlin dimacs tptp
383

Andrei Paskevich's avatar
Andrei Paskevich committed
384
TPTPMODULES = $(addprefix plugins/tptp/, $(PLUG_TPTP))
Andrei Paskevich's avatar
Andrei Paskevich committed
385

Andrei Paskevich's avatar
Andrei Paskevich committed
386 387
TPTPCMO = $(addsuffix .cmo, $(TPTPMODULES))
TPTPCMX = $(addsuffix .cmx, $(TPTPMODULES))
388

389 390 391 392 393 394 395 396 397 398
ifeq (@enable_hypothesis_selection@,yes)
PLUG_TRANSFORM += hypothesis_selection
PLUGINS += hypothesis_selection

lib/plugins/hypothesis_selection.cmxs: INCLUDES += -I @OCAMLGRAPHLIB@
lib/plugins/hypothesis_selection.cmo:  INCLUDES += -I @OCAMLGRAPHLIB@
lib/plugins/hypothesis_selection.cmxs: OFLAGS += graph.cmxa
lib/plugins/hypothesis_selection.cmo:  BFLAGS += graph.cmo
endif

399 400
PLUGMODULES = $(addprefix plugins/parser/, $(PLUG_PARSER)) \
	      $(addprefix plugins/printer/, $(PLUG_PRINTER)) \
Andrei Paskevich's avatar
Andrei Paskevich committed
401
	      $(addprefix plugins/transform/, $(PLUG_TRANSFORM)) \
Andrei Paskevich's avatar
Andrei Paskevich committed
402
	      $(TPTPMODULES)
403

Andrei Paskevich's avatar
Andrei Paskevich committed
404
PLUGDEP = $(addsuffix .dep, $(PLUGMODULES))
405 406 407
PLUGCMO = $(addsuffix .cmo, $(PLUGMODULES))
PLUGCMX = $(addsuffix .cmx, $(PLUGMODULES))

Andrei Paskevich's avatar
Andrei Paskevich committed
408
PLUGDIRS = parser printer transform tptp
409 410
PLUGINCLUDES = $(addprefix -I plugins/, $(PLUGDIRS))

Andrei Paskevich's avatar
Andrei Paskevich committed
411
$(PLUGDEP): DEPFLAGS += $(PLUGINCLUDES)
412 413
$(PLUGCMO) $(PLUGCMX): INCLUDES += $(PLUGINCLUDES)

414 415
$(PLUGDEP): $(PLUGGENERATED)

416 417 418 419 420
LIBPLUGCMO =  $(addsuffix .cmo,  $(addprefix lib/plugins/, $(PLUGINS)))
LIBPLUGCMXS = $(addsuffix .cmxs, $(addprefix lib/plugins/, $(PLUGINS)))

plugins.byte: $(LIBPLUGCMO)
plugins.opt : $(LIBPLUGCMXS)
421 422

lib/plugins/%.cmxs: plugins/parser/%.cmx
Andrei Paskevich's avatar
Andrei Paskevich committed
423
	$(if $(QUIET),@echo 'Linking  $@' &&) \
424 425 426 427 428 429 430
	    $(OCAMLOPT) $(OFLAGS) -shared -o $@ $<

lib/plugins/%.cmo: plugins/parser/%.cmo
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -pack -o $@ $<

lib/plugins/%.cmxs: plugins/printer/%.cmx
Andrei Paskevich's avatar
Andrei Paskevich committed
431
	$(if $(QUIET),@echo 'Linking  $@' &&) \
432 433 434 435 436 437 438
	    $(OCAMLOPT) $(OFLAGS) -shared -o $@ $<

lib/plugins/%.cmo: plugins/printer/%.cmo
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -pack -o $@ $<

lib/plugins/%.cmxs: plugins/transform/%.cmx
Andrei Paskevich's avatar
Andrei Paskevich committed
439
	$(if $(QUIET),@echo 'Linking  $@' &&) \
440 441 442 443 444 445
	    $(OCAMLOPT) $(OFLAGS) -shared -o $@ $<

lib/plugins/%.cmo: plugins/transform/%.cmo
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -pack -o $@ $<

Andrei Paskevich's avatar
Andrei Paskevich committed
446
lib/plugins/tptp.cmxs: $(TPTPCMX)
Andrei Paskevich's avatar
Andrei Paskevich committed
447
	$(if $(QUIET),@echo 'Linking  $@' &&) \
Andrei Paskevich's avatar
Andrei Paskevich committed
448
	    $(OCAMLOPT) $(OFLAGS) -shared -o $@ $^
449

Andrei Paskevich's avatar
Andrei Paskevich committed
450
lib/plugins/tptp.cmo: $(TPTPCMO)
Andrei Paskevich's avatar
Andrei Paskevich committed
451
	$(if $(QUIET),@echo 'Linking  $@' &&) \
Andrei Paskevich's avatar
Andrei Paskevich committed
452
	    $(OCAMLC) $(BFLAGS) -pack -o $@ $^
453 454 455 456 457 458

PLUGSDIRS = plugins $(addprefix plugins/, $(PLUGDIRS))
PLUGCLEAN = $(addsuffix /*.cm[iox], $(PLUGSDIRS)) \
	    $(addsuffix /*.annot, $(PLUGSDIRS)) \
	    $(addsuffix /*.output, $(PLUGSDIRS)) \
	    $(addsuffix /*.automaton, $(PLUGSDIRS)) \
Andrei Paskevich's avatar
Andrei Paskevich committed
459
	    $(addsuffix /*.dep, $(PLUGSDIRS)) \
460 461 462
	    $(addsuffix /*.o, $(PLUGSDIRS)) \
	    $(addsuffix /*~, $(PLUGSDIRS))

Andrei Paskevich's avatar
Andrei Paskevich committed
463 464 465 466 467 468
# depend and clean targets

ifneq "$(MAKECMDGOALS)" "clean"
include $(PLUGDEP)
endif

469
depend: $(PLUGDEP)
Andrei Paskevich's avatar
Andrei Paskevich committed
470

471 472 473 474 475 476
clean::
	rm -f $(PLUGCLEAN) $(PLUGGENERATED)
	rm -f lib/plugins/*

install_no_local::
	mkdir -p $(LIBDIR)/why3/plugins
477
	cp -f $(foreach f,$(LIBPLUGCMO) $(LIBPLUGCMXS),$(wildcard $(f))) $(LIBDIR)/why3/plugins
478

479 480 481
#################################
# Old Why3 command, to be removed
#################################
482

483 484
src/tools/why3contraption.cmo: lib/why3/why3.cma
src/tools/why3contraption.cmx: lib/why3/why3.cmxa
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
485

486 487
byte: bin/why3contraption.byte
opt:  bin/why3contraption.opt
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
488

489 490 491 492 493 494 495 496
bin/why3contraption.opt: lib/why3/why3.cmxa src/tools/why3contraption.cmx
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^

bin/why3contraption.byte: lib/why3/why3.cma src/tools/why3contraption.cmo
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) $^

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
497
clean_old_install::
498
	rm -f $(BINDIR)/why3contraption$(EXE)
Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
499

500
install_no_local::
501
	cp -f bin/why3contraption.@OCAMLBEST@ $(BINDIR)/why3contraption$(EXE)
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
502

Guillaume Melquiond's avatar
Guillaume Melquiond committed
503
install_local:: bin/why3 bin/why3contraption
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
504

505
ifneq "$(MAKECMDGOALS)" "clean"
506
include src/tools/why3contraption.dep
507 508
endif

509
depend: src/tools/why3contraption.dep
510

Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
511
clean::
512 513 514 515 516 517 518
	rm -f src/tools/why3contraption.cm[iox] src/tools/why3contraption.annot src/tools/why3contraption.o src/tools/why3contraption.dep
	rm -f bin/why3contraption.byte bin/why3contraption.opt bin/why3contraption

###############
# Why3 commands
###############

519
TOOLS_BIN = why3config why3execute why3extract why3prove why3realize why3replay
Andrei Paskevich's avatar
Andrei Paskevich committed
520
TOOLS_FILES = main $(TOOLS_BIN)
521 522 523 524 525 526 527 528 529 530

TOOLSMODULES = $(addprefix src/tools/, $(TOOLS_FILES))

TOOLSDEP = $(addsuffix .dep, $(TOOLSMODULES))
TOOLSCMO = $(addsuffix .cmo, $(TOOLSMODULES))
TOOLSCMX = $(addsuffix .cmx, $(TOOLSMODULES))

$(TOOLSDEP): DEPFLAGS += -I src/tools
$(TOOLSCMO) $(TOOLSCMX): INCLUDES += -I src/tools

531 532 533
byte: bin/why3.byte $(TOOLS_BIN:%=bin/%.byte)
opt:  bin/why3.opt  $(TOOLS_BIN:%=bin/%.opt)

Andrei Paskevich's avatar
Andrei Paskevich committed
534
bin/why3.opt: lib/why3/why3.cmxa src/tools/main.cmx
535 536 537
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
538
bin/why3.byte: lib/why3/why3.cma src/tools/main.cmo
539 540
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) $^
541

542 543 544 545 546 547 548 549
bin/why3config.opt: lib/why3/why3.cmxa src/tools/why3config.cmx
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^

bin/why3config.byte: lib/why3/why3.cma src/tools/why3config.cmo
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
550
bin/why3execute.opt: lib/why3/why3.cmxa src/tools/why3execute.cmx
551 552 553
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
554
bin/why3execute.byte: lib/why3/why3.cma src/tools/why3execute.cmo
555 556 557
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
558
bin/why3extract.opt: lib/why3/why3.cmxa src/tools/why3extract.cmx
559 560 561
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
562
bin/why3extract.byte: lib/why3/why3.cma src/tools/why3extract.cmo
563 564 565
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
566
bin/why3prove.opt: lib/why3/why3.cmxa src/tools/why3prove.cmx
567 568 569
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
570
bin/why3prove.byte: lib/why3/why3.cma src/tools/why3prove.cmo
571 572 573
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
574
bin/why3realize.opt: lib/why3/why3.cmxa src/tools/why3realize.cmx
575 576 577
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
578
bin/why3realize.byte: lib/why3/why3.cma src/tools/why3realize.cmo
579 580 581
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
582
bin/why3replay.opt: lib/why3/why3.cmxa lib/why3/why3session.cmxa src/tools/why3replay.cmx
583 584 585
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^

Andrei Paskevich's avatar
Andrei Paskevich committed
586
bin/why3replay.byte: lib/why3/why3.cma lib/why3/why3session.cma src/tools/why3replay.cmo
587 588 589
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) $^

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
590
clean_old_install::
591
	rm -f $(TOOLS_BIN:%=$(TOOLDIR)/%$(EXE)) $(BINDIR)/why3$(EXE)
592
	rm -f $(BINDIR)/why3config$(EXE) $(BINDIR)/why3bench$(EXE) $(BINDIR)/why3replayer$(EXE) 
Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
593

594
install_no_local::
595
	cp -f bin/why3.@OCAMLBEST@ $(BINDIR)/why3$(EXE)
596
	cp -f bin/why3config.@OCAMLBEST@  $(TOOLDIR)/why3config$(EXE)
597 598 599
	cp -f bin/why3execute.@OCAMLBEST@ $(TOOLDIR)/why3execute$(EXE)
	cp -f bin/why3extract.@OCAMLBEST@ $(TOOLDIR)/why3extract$(EXE)
	cp -f bin/why3prove.@OCAMLBEST@   $(TOOLDIR)/why3prove$(EXE)
600
	cp -f bin/why3realize.@OCAMLBEST@ $(TOOLDIR)/why3realize$(EXE)
601 602 603
	cp -f bin/why3replay.@OCAMLBEST@  $(TOOLDIR)/why3replay$(EXE)

install_local:: bin/why3 $(addprefix bin/,$(TOOLS_BIN))
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
604

605
bin/%:	bin/%.@OCAMLBEST@
606
	ln -sf $(notdir $<) $@
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
607

608
ifneq "$(MAKECMDGOALS)" "clean"
609
include $(TOOLSDEP)
610 611
endif

612
depend: $(TOOLSDEP)
613

Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
614
clean::
615
	rm -f src/tools/main.cm[iox] src/tools/main.annot src/tools/main.o src/tools/main.dep
616
	rm -f src/tools/why3config.cm[iox] src/tools/why3config.annot src/tools/why3config.o src/tools/why3config.dep
617
	rm -f src/tools/why3execute.cm[iox] src/tools/why3execute.annot src/tools/why3execute.o src/tools/why3execute.dep
618
	rm -f src/tools/why3extract.cm[iox] src/tools/why3extract.annot src/tools/why3extract.o src/tools/why3extract.dep
619
	rm -f src/tools/why3prove.cm[iox] src/tools/why3prove.annot src/tools/why3prove.o src/tools/why3prove.dep
620
	rm -f src/tools/why3realize.cm[iox] src/tools/why3realize.annot src/tools/why3realize.o src/tools/why3realize.dep
621
	rm -f src/tools/why3replay.cm[iox] src/tools/why3replay.annot src/tools/why3replay.o src/tools/why3replay.dep
622 623 624
	rm -f $(addprefix bin/,$(TOOLS_BIN))
	rm -f $(TOOLS_BIN:%=bin/%.byte) $(TOOLS_BIN:%=bin/%.opt)
	rm -f bin/why3.byte bin/why3.opt bin/why3
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
625

626 627 628
##############
# test targets
##############
629

630 631
%.gui: %.why bin/why3ide.opt
	bin/why3ide.opt $*.why
632

633 634
%: %.mlw bin/why3.opt
	bin/why3.opt $*.mlw
635

636 637
%: %.why bin/why3.opt
	bin/why3.opt $*.why
François Bobot's avatar
François Bobot committed
638

639 640
%.gui: %.mlw bin/why3ide.opt
	bin/why3ide.opt $*.mlw
641

642
%.type: %.mlw bin/why3ide.opt
643
	bin/why3.opt --type-only $*.mlw
644

645 646 647 648
##########
# gallery
##########

649
# we export exactly the programs that have a why3session.xml file
650 651 652

.PHONY: gallery

653 654
gallery::
	@if test "$(GALLERYDIR)" = ""; then echo "set GALLERYDIR first"; exit 1; fi
Andrei Paskevich's avatar
Andrei Paskevich committed
655
	@for x in examples/*/why3session.xml ; do \
656 657
	  d=`dirname $$x`; \
	  f=`basename $$d`; \
658
	  why3 session html $$x; \
659 660
	  echo "exporting $$f"; \
	  mkdir -p $(GALLERYDIR)/$$f; \
661
	  cp examples/$$f.mlw examples/$$f/why3session.html $(GALLERYDIR)/$$f/; \
662
	  rm -f $(GALLERYDIR)/$$f/$$f.zip; \
Andrei Paskevich's avatar
Andrei Paskevich committed
663
	  cd examples/; \
664
	  zip -r $(GALLERYDIR)/$$f/$$f.zip $$f.mlw $$f; \
665
	  cd ..; \
666
	done
667

668 669 670 671 672
%-gallery::
	@if test "$(GALLERYDIR)" = ""; then echo "set GALLERYDIR first"; exit 1; fi
	x=$*/why3session.xml; \
	d=`dirname $$x`; \
	f=`basename $$d`; \
673
	why3 session html $$x; \
674 675
	echo "exporting $$f"; \
	mkdir -p $(GALLERYDIR)/$$f; \
676 677
	if test -f examples/$$f.mlw; then cp examples/$$f.mlw $(GALLERYDIR)/$$f/; fi; \
	if test -f examples/$$f.why; then cp examples/$$f.why $(GALLERYDIR)/$$f/; fi; \
678
	cp examples/$$f/why3session.html $(GALLERYDIR)/$$f/; \
679 680
	rm -f $(GALLERYDIR)/$$f/$$f.zip; \
	cd examples/; \
681
	zip -r $(GALLERYDIR)/$$f/$$f.zip $$f.mlw $$f
682

MARCHE Claude's avatar
MARCHE Claude committed
683 684 685 686 687 688 689 690
########
# XML DTD validation
########

.PHONY: xml-validate

xml-validate:
	@for x in `find examples/ -name why3session.xml`; do \
MARCHE Claude's avatar
MARCHE Claude committed
691
	  xmllint --noout --valid $$x 2>&1 | head -1; \
MARCHE Claude's avatar
MARCHE Claude committed
692 693
	done

694 695 696 697 698
xml-validate-local:
	@for x in `find examples/ -name why3session.xml`; do \
	  xmllint --noout --dtdvalid share/why3session.dtd $$x 2>&1 | head -1; \
	done

MARCHE Claude's avatar
MARCHE Claude committed
699 700 701 702
###############
# IDE
###############

703 704
ifeq (@enable_ide@,yes)

François Bobot's avatar
François Bobot committed
705
IDE_FILES = gconfig gmain
MARCHE Claude's avatar
MARCHE Claude committed
706 707 708

IDEMODULES = $(addprefix src/ide/, $(IDE_FILES))

Andrei Paskevich's avatar
Andrei Paskevich committed
709
IDEDEP = $(addsuffix .dep, $(IDEMODULES))
MARCHE Claude's avatar
MARCHE Claude committed
710 711 712
IDECMO = $(addsuffix .cmo, $(IDEMODULES))
IDECMX = $(addsuffix .cmx, $(IDEMODULES))

Andrei Paskevich's avatar
Andrei Paskevich committed
713
$(IDEDEP): DEPFLAGS += -I src/ide
714
$(IDECMO) $(IDECMX): INCLUDES += -I src/ide
MARCHE Claude's avatar
MARCHE Claude committed
715

716
# build targets
MARCHE Claude's avatar
MARCHE Claude committed
717

718 719
byte: bin/why3ide.byte
opt:  bin/why3ide.opt
MARCHE Claude's avatar
MARCHE Claude committed
720

721
bin/why3ide.opt bin/why3ide.byte: INCLUDES += -I @LABLGTK2LIB@
Andrei Paskevich's avatar
Andrei Paskevich committed
722
bin/why3ide.opt bin/why3ide.byte: EXTLIBS += lablgtk lablgtksourceview2
MARCHE Claude's avatar
MARCHE Claude committed
723

724
bin/why3ide.opt: lib/why3/why3.cmxa lib/why3/why3session.cmxa src/ide/resetgc.o $(IDECMX)
Andrei Paskevich's avatar
Andrei Paskevich committed
725
	$(if $(QUIET),@echo 'Linking  $@' &&) \
726
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^
MARCHE Claude's avatar
MARCHE Claude committed
727

728
bin/why3ide.byte: lib/why3/why3.cma lib/why3/why3session.cma src/ide/resetgc.o $(IDECMO)
MARCHE Claude's avatar
MARCHE Claude committed
729
	$(if $(QUIET),@echo 'Linking  $@' &&) \
730
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) -custom $^
MARCHE Claude's avatar
MARCHE Claude committed
731

732
src/ide/resetgc.o: src/ide/resetgc.c
733 734
	$(if $(QUIET),@echo 'Ocamlc   $<' &&) \
	    $(OCAMLC) -c -ccopt "-Wall -o $@" $<
735

MARCHE Claude's avatar
MARCHE Claude committed
736 737
# depend and clean targets

Andrei Paskevich's avatar
Andrei Paskevich committed
738 739 740
ifneq "$(MAKECMDGOALS)" "clean"
include $(IDEDEP)
endif
MARCHE Claude's avatar
MARCHE Claude committed
741

Andrei Paskevich's avatar
Andrei Paskevich committed
742
depend: $(IDEDEP)
MARCHE Claude's avatar
MARCHE Claude committed
743 744

clean::
745
	rm -f src/ide/xml.ml
MARCHE Claude's avatar
MARCHE Claude committed
746
	rm -f src/ide/*.cm[iox] src/ide/*.o
Andrei Paskevich's avatar
Andrei Paskevich committed
747
	rm -f src/ide/*.annot src/ide/*.dep src/ide/*~
748
	rm -f bin/why3ide.byte bin/why3ide.opt bin/why3ide
MARCHE Claude's avatar
MARCHE Claude committed
749

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
750 751 752
clean_old_install::
	rm -f $(BINDIR)/why3ide$(EXE)

753
install_no_local::
754
	cp -f bin/why3ide.@OCAMLBEST@ $(TOOLDIR)/why3ide$(EXE)
755

756
install_local:: bin/why3ide
757

758
endif
MARCHE Claude's avatar
d  
MARCHE Claude committed
759

760 761 762 763
###############
# Session
###############

764 765
SESSION_FILES = why3session_lib why3session_copy why3session_info	\
		why3session_latex why3session_html why3session_rm	\
766
		why3session_output why3session_run why3session_csv	\
767
		why3session_main
768 769 770

SESSIONMODULES = $(addprefix src/why3session/, $(SESSION_FILES))

Andrei Paskevich's avatar
Andrei Paskevich committed
771
SESSIONDEP = $(addsuffix .dep, $(SESSIONMODULES))
772 773 774
SESSIONCMO = $(addsuffix .cmo, $(SESSIONMODULES))
SESSIONCMX = $(addsuffix .cmx, $(SESSIONMODULES))

Andrei Paskevich's avatar
Andrei Paskevich committed
775
$(SESSIONDEP): DEPFLAGS += -I src/why3session
776 777 778 779 780 781 782
$(SESSIONCMO) $(SESSIONCMX): INCLUDES += -I src/why3session

# build targets

byte: bin/why3session.byte
opt:  bin/why3session.opt

783
bin/why3session.opt: lib/why3/why3.cmxa lib/why3/why3session.cmxa $(SESSIONCMX)
Andrei Paskevich's avatar
Andrei Paskevich committed
784
	$(if $(QUIET),@echo 'Linking  $@' &&) \
785
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^
786

787
bin/why3session.byte: lib/why3/why3.cma lib/why3/why3session.cma $(SESSIONCMO)
788
	$(if $(QUIET),@echo 'Linking  $@' &&) \
789
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) $^
790 791 792

# depend and clean targets

Andrei Paskevich's avatar
Andrei Paskevich committed
793 794 795
ifneq "$(MAKECMDGOALS)" "clean"
include $(SESSIONDEP)
endif
796

Andrei Paskevich's avatar
Andrei Paskevich committed
797
depend: $(SESSIONDEP)
798 799

clean::
Andrei Paskevich's avatar
Andrei Paskevich committed
800 801
	rm -f src/why3session/*.cm[iox] src/why3session/*.o
	rm -f src/why3session/*.annot src/why3session/*.dep src/why3session/*~
802 803
	rm -f bin/why3session.byte bin/why3session.opt bin/why3session

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
804 805 806
clean_old_install::
	rm -f $(BINDIR)/why3session$(EXE)

807
install_no_local::
808
	cp -f bin/why3session.@OCAMLBEST@ $(TOOLDIR)/why3session$(EXE)
809

810
install_local:: bin/why3session
811

MARCHE Claude's avatar
MARCHE Claude committed
812

813 814 815
##############
# Coq plugin
##############
816

Andrei Paskevich's avatar
Andrei Paskevich committed
817
ifeq (@enable_coq_tactic@,yes)
818

Claude Marche's avatar
Claude Marche committed
819
COQPGENERATED = src/coq-tactic/coqCompat.ml src/coq-tactic/g_why3tac.ml
820

Claude Marche's avatar
Claude Marche committed
821
COQP_FILES = coqCompat why3tac g_why3tac
822

823
COQPMODULES = $(addprefix src/coq-tactic/, $(COQP_FILES))
824

825 826 827
COQPDEP = $(addsuffix .dep, $(COQPMODULES))
COQPCMO = $(addsuffix .cmo, $(COQPMODULES))
COQPCMX = $(addsuffix .cmx, $(COQPMODULES))
828

829
COQPTREES = kernel lib interp parsing proofs pretyping tactics library toplevel
830
COQPINCLUDES = -I src/coq-tactic -I +camlp5 $(addprefix -I @COQLIB@/, $(COQPTREES)) @ZIPINCLUDE@
831

832
$(COQPDEP): DEPFLAGS += -I src/coq-tactic
833
$(COQPCMO) $(COQPCMX): INCLUDES += $(COQPINCLUDES)
Andrei Paskevich's avatar
Andrei Paskevich committed
834 835
$(COQPCMO) $(COQPCMX): BFLAGS += -rectypes
$(COQPCMX): OFLAGS += -rectypes
836

837
$(COQPDEP): $(COQPGENERATED)
838

839 840
byte: src/coq-tactic/.why3-vo-byte
opt:  src/coq-tactic/.why3-vo-opt