+export SHELL=/bin/bash
+
MAKEFLAGS+=--no-print-directory
OCAMLPATH = ../ocaml/METAS/
OCAMLFIND = OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH @OCAMLFIND@
OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLC_FLAGS) $(OCAML_DEBUG_FLAGS)
OCAMLOPT = $(OCAMLFIND) opt $(OCAMLC_FLAGS)
OCAMLDEP = $(OCAMLFIND) ocamldep $(OCAML_FLAGS)
+
+MATITA_FLAGS =
+NODB=false
+ifeq ($(NODB),true)
+ MATITA_FLAGS += -nodb
+endif
+
+
# objects for matita (GTK GUI)
NULL =
CMOS = \
PROGRAMS = $(PROGRAMS_BYTE) matitatop dump_moo
PROGRAMS_OPT = $(patsubst %,%.opt,$(PROGRAMS_BYTE))
-all: matita.conf.xml $(PROGRAMS)
+all: matita.conf.xml $(PROGRAMS) coq.moo
matita.conf.xml: matita.conf.xml.sample
@if diff matita.conf.xml.sample matita.conf.xml 1>/dev/null 2>/dev/null; then\
@echo "WARNING: The configuration sample file has changed!"
@echo
+coq.moo: coq.ma matitac
+ ./matitac $(MATITA_FLAGS) coq.ma
+coq.moo.opt: coq.ma matitac.opt
+ ./matitac.opt $(MATITA_FLAGS) coq.ma
+
ifeq ($(HAVE_OCAMLOPT),yes)
CMXS = $(patsubst %.cmo,%.cmx,$(CMOS))
CCMXS = $(patsubst %.cmo,%.cmx,$(CCMOS))
CLEANLIBX_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(CLEANREQUIRES))
MAKELIB_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "byte" -format "%d/%a" $(MAKEREQUIRES))
MAKELIBX_DEPS := $(shell $(OCAMLFIND) query -recursive -predicates "native" -format "%d/%a" $(MAKEREQUIRES))
-opt: $(PROGRAMS_OPT)
+opt: $(PROGRAMS_OPT) coq.moo.opt
else
opt:
@echo "Native code compilation is disabled"