aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@college-de-france.fr>2020-07-15 10:25:36 +0200
committerXavier Leroy <xavier.leroy@college-de-france.fr>2020-07-15 10:25:36 +0200
commit6b854265e261b8c9e2e068364ef1405412b89063 (patch)
treef123fe2203de10c7aa5fabf479c6c989f943f8e4 /Makefile
parent13e0566dbdd8bf845d7c2a65ffefaaf460381e70 (diff)
downloadcompcert-kvx-6b854265e261b8c9e2e068364ef1405412b89063.tar.gz
compcert-kvx-6b854265e261b8c9e2e068364ef1405412b89063.zip
Bytecode-only build, continued
If ocamlopt is not available, use ocamlc instead of ocamlopt to build auxiliary tools (tools/modorder, tools/ndfun). This is a follow-up to commit 9af28924.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5e97ebbf..ae095a09 100644
--- a/Makefile
+++ b/Makefile
@@ -191,9 +191,18 @@ documentation: $(FILES)
$(filter-out doc/coq2html cparser/Parser.v, $^)
tools/ndfun: tools/ndfun.ml
+ifeq ($(OCAML_NATIVE_COMP),true)
ocamlopt -o tools/ndfun str.cmxa tools/ndfun.ml
+else
+ ocamlc -o tools/ndfun str.cma tools/ndfun.ml
+endif
+
tools/modorder: tools/modorder.ml
+ifeq ($(OCAML_NATIVE_COMP),true)
ocamlopt -o tools/modorder str.cmxa tools/modorder.ml
+else
+ ocamlc -o tools/modorder str.cma tools/modorder.ml
+endif
latexdoc:
cd doc; $(COQDOC) --latex -o doc/doc.tex -g $(FILES)