Makefile.in 66.5 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
	       lib/ocaml/why3__BigInt_compat.ml
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
114

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

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

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

126 127
LIB_PARSER = ptree glob parser typing lexer

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

140
LIB_PRINTER = alt_ergo why3printer smtv1 smtv2 coq pvs isabelle \
141
	      simplify gappa cvc3 yices mathematica
142

143
LIB_WHYML = mlw_ty mlw_expr mlw_decl mlw_pretty mlw_wp mlw_module \
144
	    mlw_dexpr mlw_typing mlw_driver mlw_ocaml \
145
	    mlw_main mlw_interp
146 147

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

155 156
LIB_SESSION = compress xml termcode session session_tools session_scheduler

157 158
LIBSESSIONMODULES = $(addprefix src/session/, $(LIB_SESSION))

159
LIBDIRS = util core driver parser transform printer whyml
160
LIBINCLUDES = $(addprefix -I src/, $(LIBDIRS))
MARCHE Claude's avatar
MARCHE Claude committed
161

162
LIBSESSIONDIRS = session
163 164
LIBSESSIONINCLUDES = $(addprefix -I src/, $(LIBSESSIONDIRS))

Andrei Paskevich's avatar
Andrei Paskevich committed
165
LIBDEP = $(addsuffix .dep, $(LIBMODULES))
166 167
LIBCMO = $(addsuffix .cmo, $(LIBMODULES))
LIBCMX = $(addsuffix .cmx, $(LIBMODULES))
168

169 170 171 172
LIBSESSIONDEP = $(addsuffix .dep, $(LIBSESSIONMODULES))
LIBSESSIONCMO = $(addsuffix .cmo, $(LIBSESSIONMODULES))
LIBSESSIONCMX = $(addsuffix .cmx, $(LIBSESSIONMODULES))

Andrei Paskevich's avatar
Andrei Paskevich committed
173
$(LIBDEP): DEPFLAGS += $(LIBINCLUDES)
174
$(LIBCMO) $(LIBCMX): INCLUDES += $(LIBINCLUDES)
175
$(LIBCMX): OFLAGS += -for-pack Why3
176

177 178 179 180
$(LIBSESSIONDEP): DEPFLAGS += $(LIBSESSIONINCLUDES)
$(LIBSESSIONCMO) $(LIBSESSIONCMX): INCLUDES += $(LIBSESSIONINCLUDES)
$(LIBSESSIONCMX): OFLAGS += -for-pack Why3session

181
$(LIBDEP): $(LIBGENERATED)
182
$(LIBSESSIONDEP): $(LIBGENERATED)
183

184 185 186 187
# Zarith

ifeq (@enable_zarith@,yes)

188
lib/ocaml/why3__BigInt_compat.ml: config.status lib/ocaml/why3__BigInt_zarith.ml
189
	cp lib/ocaml/why3__BigInt_zarith.ml $@
190 191 192

else

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

endif

198
clean::
199
	rm -f lib/ocaml/why3__BigInt_compat.ml
200

201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
# 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

218
# build targets
219

220 221
byte: lib/why3/why3.cma
opt:  lib/why3/why3.cmxa
222

223
lib/why3/why3.cma: lib/why3/why3.cmo
Andrei Paskevich's avatar
Andrei Paskevich committed
224 225
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) -a $(BFLAGS) -o $@ $^
226

227
lib/why3/why3.cmxa: lib/why3/why3.cmx
Andrei Paskevich's avatar
Andrei Paskevich committed
228 229
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) -a $(OFLAGS) -o $@ $^
230

231
lib/why3/why3.cmo: $(LIBCMO)
Andrei Paskevich's avatar
Andrei Paskevich committed
232 233
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLC) $(BFLAGS) -pack -o $@ $^
234

235
lib/why3/why3.cmx: $(LIBCMX)
Andrei Paskevich's avatar
Andrei Paskevich committed
236 237
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -pack -o $@ $^
238

239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
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
258
# clean and depend
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
259

Andrei Paskevich's avatar
Andrei Paskevich committed
260
ifneq "$(MAKECMDGOALS)" "clean"
261
include $(LIBDEP) $(LIBSESSIONDEP)
Andrei Paskevich's avatar
Andrei Paskevich committed
262
endif
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
263

264
depend: $(LIBDEP) $(LIBSESSIONDEP)
265

Andrei Paskevich's avatar
Andrei Paskevich committed
266
LIBSDIRS = src $(addprefix src/, $(LIBDIRS))
267 268
LIBCLEAN = $(addsuffix /*.cm[iox], $(LIBSDIRS)) \
	   $(addsuffix /*.annot, $(LIBSDIRS)) \
269 270
	   $(addsuffix /*.output, $(LIBSDIRS)) \
	   $(addsuffix /*.automaton, $(LIBSDIRS)) \
Andrei Paskevich's avatar
Andrei Paskevich committed
271
	   $(addsuffix /*.dep, $(LIBSDIRS)) \
272 273 274 275 276
	   $(addsuffix /*.o, $(LIBSDIRS)) \
	   $(addsuffix /*~, $(LIBSDIRS))

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

279 280 281
###############
# installation
###############
282

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
283 284
clean_old_install::
	rm -rf $(LIBDIR)/why3
MARCHE Claude's avatar
MARCHE Claude committed
285
	rm -rf $(DATADIR)/why3
286
	rm -rf $(OCAMLINSTALLLIB)/why3
MARCHE Claude's avatar
MARCHE Claude committed
287

288

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

MARCHE Claude's avatar
MARCHE Claude committed
321
install_no_local_lib::
322
	mkdir -p $(OCAMLINSTALLLIB)/why3
Andrei Paskevich's avatar
Andrei Paskevich committed
323
	cp -f lib/why3/why3.cm* lib/why3/why3.[ao] \
324
		lib/why3/META $(OCAMLINSTALLLIB)/why3
MARCHE Claude's avatar
MARCHE Claude committed
325

326 327
ifeq (@enable_local@,yes)
install install-lib:
328 329
	@echo "Why3 is configured in local installation mode."
	@echo "To install Why3, run ./configure --disable-local ; make ; make install"
330
else
MARCHE Claude's avatar
MARCHE Claude committed
331
install: clean_old_install install_no_local
MARCHE Claude's avatar
MARCHE Claude committed
332
install-lib: install_no_local_lib
333 334
endif

MARCHE Claude's avatar
MARCHE Claude committed
335 336
install-all: install install-lib

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
337 338 339 340 341 342
##################
# Uninstallation
##################

uninstall: clean_old_install

343 344 345 346 347 348 349
##################
# Why3 emacs mode
##################

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

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
350 351 352 353 354 355 356 357 358 359 360 361 362
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


363
##################
364
# Why3 plugins
365 366
##################

Andrei Paskevich's avatar
Andrei Paskevich committed
367
PLUGGENERATED = plugins/tptp/tptp_lexer.ml \
368 369
		plugins/tptp/tptp_parser.ml plugins/tptp/tptp_parser.mli \
		plugins/parser/dimacs.ml \
370

371
PLUG_PARSER = genequlin dimacs
372
PLUG_PRINTER =
373
PLUG_TRANSFORM =
374
PLUG_TPTP = tptp_ast tptp_parser tptp_typing tptp_lexer tptp_printer
375

376
PLUGINS = genequlin dimacs tptp
377

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

Andrei Paskevich's avatar
Andrei Paskevich committed
380 381
TPTPCMO = $(addsuffix .cmo, $(TPTPMODULES))
TPTPCMX = $(addsuffix .cmx, $(TPTPMODULES))
382

383 384 385 386 387 388 389 390 391 392
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

393 394
PLUGMODULES = $(addprefix plugins/parser/, $(PLUG_PARSER)) \
	      $(addprefix plugins/printer/, $(PLUG_PRINTER)) \
Andrei Paskevich's avatar
Andrei Paskevich committed
395
	      $(addprefix plugins/transform/, $(PLUG_TRANSFORM)) \
Andrei Paskevich's avatar
Andrei Paskevich committed
396
	      $(TPTPMODULES)
397

Andrei Paskevich's avatar
Andrei Paskevich committed
398
PLUGDEP = $(addsuffix .dep, $(PLUGMODULES))
399 400 401
PLUGCMO = $(addsuffix .cmo, $(PLUGMODULES))
PLUGCMX = $(addsuffix .cmx, $(PLUGMODULES))

Andrei Paskevich's avatar
Andrei Paskevich committed
402
PLUGDIRS = parser printer transform tptp
403 404
PLUGINCLUDES = $(addprefix -I plugins/, $(PLUGDIRS))

Andrei Paskevich's avatar
Andrei Paskevich committed
405
$(PLUGDEP): DEPFLAGS += $(PLUGINCLUDES)
406 407
$(PLUGCMO) $(PLUGCMX): INCLUDES += $(PLUGINCLUDES)

408 409
$(PLUGDEP): $(PLUGGENERATED)

410 411 412 413 414
LIBPLUGCMO =  $(addsuffix .cmo,  $(addprefix lib/plugins/, $(PLUGINS)))
LIBPLUGCMXS = $(addsuffix .cmxs, $(addprefix lib/plugins/, $(PLUGINS)))

plugins.byte: $(LIBPLUGCMO)
plugins.opt : $(LIBPLUGCMXS)
415 416

lib/plugins/%.cmxs: plugins/parser/%.cmx
Andrei Paskevich's avatar
Andrei Paskevich committed
417
	$(if $(QUIET),@echo 'Linking  $@' &&) \
418 419 420 421 422 423 424
	    $(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
425
	$(if $(QUIET),@echo 'Linking  $@' &&) \
426 427 428 429 430 431 432
	    $(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
433
	$(if $(QUIET),@echo 'Linking  $@' &&) \
434 435 436 437 438 439
	    $(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
440
lib/plugins/tptp.cmxs: $(TPTPCMX)
Andrei Paskevich's avatar
Andrei Paskevich committed
441
	$(if $(QUIET),@echo 'Linking  $@' &&) \
Andrei Paskevich's avatar
Andrei Paskevich committed
442
	    $(OCAMLOPT) $(OFLAGS) -shared -o $@ $^
443

Andrei Paskevich's avatar
Andrei Paskevich committed
444
lib/plugins/tptp.cmo: $(TPTPCMO)
Andrei Paskevich's avatar
Andrei Paskevich committed
445
	$(if $(QUIET),@echo 'Linking  $@' &&) \
Andrei Paskevich's avatar
Andrei Paskevich committed
446
	    $(OCAMLC) $(BFLAGS) -pack -o $@ $^
447 448 449 450 451 452

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
453
	    $(addsuffix /*.dep, $(PLUGSDIRS)) \
454 455 456
	    $(addsuffix /*.o, $(PLUGSDIRS)) \
	    $(addsuffix /*~, $(PLUGSDIRS))

Andrei Paskevich's avatar
Andrei Paskevich committed
457 458 459 460 461 462
# depend and clean targets

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

463
depend: $(PLUGDEP)
Andrei Paskevich's avatar
Andrei Paskevich committed
464

465 466 467 468 469 470
clean::
	rm -f $(PLUGCLEAN) $(PLUGGENERATED)
	rm -f lib/plugins/*

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

473 474 475
#################################
# Old Why3 command, to be removed
#################################
476

477 478
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
479

480 481
byte: bin/why3contraption.byte
opt:  bin/why3contraption.opt
Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
482

483 484 485 486 487 488 489 490
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
491
clean_old_install::
492
	rm -f $(BINDIR)/why3contraption$(EXE)
Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
493

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

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

499
ifneq "$(MAKECMDGOALS)" "clean"
500
include src/tools/why3contraption.dep
501 502
endif

503
depend: src/tools/why3contraption.dep
504

Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
505
clean::
506 507 508 509 510 511 512
	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
###############

513
TOOLS_BIN = why3config why3execute why3extract why3prove why3realize why3replay
Andrei Paskevich's avatar
Andrei Paskevich committed
514
TOOLS_FILES = main $(TOOLS_BIN)
515 516 517 518 519 520 521 522 523 524

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

525 526 527
byte: bin/why3.byte $(TOOLS_BIN:%=bin/%.byte)
opt:  bin/why3.opt  $(TOOLS_BIN:%=bin/%.opt)

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

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

536 537 538 539 540 541 542 543
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
544
bin/why3execute.opt: lib/why3/why3.cmxa src/tools/why3execute.cmx
545 546 547
	$(if $(QUIET),@echo 'Linking  $@' &&) \
	    $(OCAMLOPT) $(OFLAGS) -o $@ $(OLINKFLAGS) $^

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

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

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

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

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

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

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

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

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

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
584
clean_old_install::
585
	rm -f $(TOOLS_BIN:%=$(TOOLDIR)/%$(EXE)) $(BINDIR)/why3$(EXE)
Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
586

587
install_no_local::
588
	cp -f bin/why3.@OCAMLBEST@ $(BINDIR)/why3$(EXE)
589
	cp -f bin/why3config.@OCAMLBEST@  $(TOOLDIR)/why3config$(EXE)
590 591 592
	cp -f bin/why3execute.@OCAMLBEST@ $(TOOLDIR)/why3execute$(EXE)
	cp -f bin/why3extract.@OCAMLBEST@ $(TOOLDIR)/why3extract$(EXE)
	cp -f bin/why3prove.@OCAMLBEST@   $(TOOLDIR)/why3prove$(EXE)
593
	cp -f bin/why3realize.@OCAMLBEST@ $(TOOLDIR)/why3realize$(EXE)
594 595 596
	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
597

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

601
ifneq "$(MAKECMDGOALS)" "clean"
602
include $(TOOLSDEP)
603 604
endif

605
depend: $(TOOLSDEP)
606

Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
607
clean::
608
	rm -f src/tools/main.cm[iox] src/tools/main.annot src/tools/main.o src/tools/main.dep
609
	rm -f src/tools/why3config.cm[iox] src/tools/why3config.annot src/tools/why3config.o src/tools/why3config.dep
610
	rm -f src/tools/why3execute.cm[iox] src/tools/why3execute.annot src/tools/why3execute.o src/tools/why3execute.dep
611
	rm -f src/tools/why3extract.cm[iox] src/tools/why3extract.annot src/tools/why3extract.o src/tools/why3extract.dep
612
	rm -f src/tools/why3prove.cm[iox] src/tools/why3prove.annot src/tools/why3prove.o src/tools/why3prove.dep
613
	rm -f src/tools/why3realize.cm[iox] src/tools/why3realize.annot src/tools/why3realize.o src/tools/why3realize.dep
614
	rm -f src/tools/why3replay.cm[iox] src/tools/why3replay.annot src/tools/why3replay.o src/tools/why3replay.dep
615 616 617
	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
618

619 620 621
##############
# test targets
##############
622

623 624
%.gui: %.why bin/why3ide.opt
	bin/why3ide.opt $*.why
625

626 627
%: %.mlw bin/why3.opt
	bin/why3.opt $*.mlw
628

629 630
%: %.why bin/why3.opt
	bin/why3.opt $*.why
François Bobot's avatar
François Bobot committed
631

632 633
%.gui: %.mlw bin/why3ide.opt
	bin/why3ide.opt $*.mlw
634

635
%.type: %.mlw bin/why3ide.opt
636
	bin/why3.opt --type-only $*.mlw
637

638 639 640 641
##########
# gallery
##########

642
# we export exactly the programs that have a why3session.xml file
643 644 645

.PHONY: gallery

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

661 662 663 664 665
%-gallery::
	@if test "$(GALLERYDIR)" = ""; then echo "set GALLERYDIR first"; exit 1; fi
	x=$*/why3session.xml; \
	d=`dirname $$x`; \
	f=`basename $$d`; \
666
	why3 session html $$x; \
667 668
	echo "exporting $$f"; \
	mkdir -p $(GALLERYDIR)/$$f; \
669 670
	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; \
671
	cp examples/$$f/why3session.html $(GALLERYDIR)/$$f/; \
672 673
	rm -f $(GALLERYDIR)/$$f/$$f.zip; \
	cd examples/; \
674
	zip -r $(GALLERYDIR)/$$f/$$f.zip $$f.mlw $$f
675

MARCHE Claude's avatar
MARCHE Claude committed
676 677 678 679 680 681 682 683
########
# XML DTD validation
########

.PHONY: xml-validate

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

687 688 689 690 691
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
692 693 694 695
###############
# IDE
###############

696 697
ifeq (@enable_ide@,yes)

François Bobot's avatar
François Bobot committed
698
IDE_FILES = gconfig gmain
MARCHE Claude's avatar
MARCHE Claude committed
699 700 701

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

Andrei Paskevich's avatar
Andrei Paskevich committed
702
IDEDEP = $(addsuffix .dep, $(IDEMODULES))
MARCHE Claude's avatar
MARCHE Claude committed
703 704 705
IDECMO = $(addsuffix .cmo, $(IDEMODULES))
IDECMX = $(addsuffix .cmx, $(IDEMODULES))

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

709
# build targets
MARCHE Claude's avatar
MARCHE Claude committed
710

711 712
byte: bin/why3ide.byte
opt:  bin/why3ide.opt
MARCHE Claude's avatar
MARCHE Claude committed
713

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

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

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

725
src/ide/resetgc.o: src/ide/resetgc.c
726 727
	$(if $(QUIET),@echo 'Ocamlc   $<' &&) \
	    $(OCAMLC) -c -ccopt "-Wall -o $@" $<
728

MARCHE Claude's avatar
MARCHE Claude committed
729 730
# depend and clean targets

Andrei Paskevich's avatar
Andrei Paskevich committed
731 732 733
ifneq "$(MAKECMDGOALS)" "clean"
include $(IDEDEP)
endif
MARCHE Claude's avatar
MARCHE Claude committed
734

Andrei Paskevich's avatar
Andrei Paskevich committed
735
depend: $(IDEDEP)
MARCHE Claude's avatar
MARCHE Claude committed
736 737

clean::
738
	rm -f src/ide/xml.ml
MARCHE Claude's avatar
MARCHE Claude committed
739
	rm -f src/ide/*.cm[iox] src/ide/*.o
Andrei Paskevich's avatar
Andrei Paskevich committed
740
	rm -f src/ide/*.annot src/ide/*.dep src/ide/*~
741
	rm -f bin/why3ide.byte bin/why3ide.opt bin/why3ide
MARCHE Claude's avatar
MARCHE Claude committed
742

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
743 744 745
clean_old_install::
	rm -f $(BINDIR)/why3ide$(EXE)

746
install_no_local::
747
	cp -f bin/why3ide.@OCAMLBEST@ $(TOOLDIR)/why3ide$(EXE)
748

749
install_local:: bin/why3ide
750

751
endif
MARCHE Claude's avatar
d  
MARCHE Claude committed
752

753 754 755 756
###############
# Session
###############

757 758
SESSION_FILES = why3session_lib why3session_copy why3session_info	\
		why3session_latex why3session_html why3session_rm	\
759
		why3session_output why3session_run why3session_csv	\
760
		why3session_main
761 762 763

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

Andrei Paskevich's avatar
Andrei Paskevich committed
764
SESSIONDEP = $(addsuffix .dep, $(SESSIONMODULES))
765 766 767
SESSIONCMO = $(addsuffix .cmo, $(SESSIONMODULES))
SESSIONCMX = $(addsuffix .cmx, $(SESSIONMODULES))

Andrei Paskevich's avatar
Andrei Paskevich committed
768
$(SESSIONDEP): DEPFLAGS += -I src/why3session
769 770 771 772 773 774 775
$(SESSIONCMO) $(SESSIONCMX): INCLUDES += -I src/why3session

# build targets

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

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

780
bin/why3session.byte: lib/why3/why3.cma lib/why3/why3session.cma $(SESSIONCMO)
781
	$(if $(QUIET),@echo 'Linking  $@' &&) \
782
	    $(OCAMLC) $(BFLAGS) -o $@ $(BLINKFLAGS) $^
783 784 785

# depend and clean targets

Andrei Paskevich's avatar
Andrei Paskevich committed
786 787 788
ifneq "$(MAKECMDGOALS)" "clean"
include $(SESSIONDEP)
endif
789

Andrei Paskevich's avatar
Andrei Paskevich committed
790
depend: $(SESSIONDEP)
791 792

clean::
Andrei Paskevich's avatar
Andrei Paskevich committed
793 794
	rm -f src/why3session/*.cm[iox] src/why3session/*.o
	rm -f src/why3session/*.annot src/why3session/*.dep src/why3session/*~
795 796
	rm -f bin/why3session.byte bin/why3session.opt bin/why3session

Jacques-Pascal Deplaix's avatar
Jacques-Pascal Deplaix committed
797 798 799
clean_old_install::
	rm -f $(BINDIR)/why3session$(EXE)

800
install_no_local::
801
	cp -f bin/why3session.@OCAMLBEST@ $(TOOLDIR)/why3session$(EXE)
802

803
install_local:: bin/why3session
804

MARCHE Claude's avatar
MARCHE Claude committed
805

806 807 808
##############
# Coq plugin
##############
809

Andrei Paskevich's avatar
Andrei Paskevich committed
810
ifeq (@enable_coq_tactic@,yes)
811

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

Claude Marche's avatar
Claude Marche committed
814
COQP_FILES = coqCompat why3tac g_why3tac
815

816
COQPMODULES = $(addprefix src/coq-tactic/, $(COQP_FILES))
817

818 819 820
COQPDEP = $(addsuffix .dep, $(COQPMODULES))
COQPCMO = $(addsuffix .cmo, $(COQPMODULES))
COQPCMX = $(addsuffix .cmx, $(COQPMODULES))
821

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

825
$(COQPDEP): DEPFLAGS += -I src/coq-tactic
826
$(COQPCMO) $(COQPCMX): INCLUDES += $(COQPINCLUDES)
Andrei Paskevich's avatar
Andrei Paskevich committed
827 828
$(COQPCMO) $(COQPCMX): BFLAGS += -rectypes
$(COQPCMX): OFLAGS += -rectypes
829

830
$(COQPDEP): $(COQPGENERATED)
831

832 833
byte: src/coq-tactic/.why3-vo-byte
opt:  src/coq-tactic/.why3-vo-opt
834

Andrei Paskevich's avatar
Andrei Paskevich committed
835 836
src/coq-tactic/coqCompat.ml: src/coq-tactic/coqCompat@coq_compat_version@.ml
	cp -f $< $@
837

838
lib/coq-tactic/why3tac.cmxs: lib/why3/why3.cmxa $(COQPCMX)
Andrei Paskevich's avatar
Andrei Paskevich committed
839
	$(if $(QUIET),@echo 'Linking  $@' &&) \
840
	    $(OCAMLOPT) $(OFLAGS) -o $@ -shared $^
841