aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSylvain Boulmé <sylvain.boulme@univ-grenoble-alpes.fr>2020-12-17 11:25:03 +0100
committerSylvain Boulmé <sylvain.boulme@univ-grenoble-alpes.fr>2020-12-17 11:25:03 +0100
commitadff86c007196e4389668c7935b7891c5b4217c7 (patch)
tree32954898ed941f92069092fa9c56d1a5c14e9fef /Makefile
parent471a8363c185e073fdfb8aefeb863b215870285d (diff)
downloadcompcert-kvx-adff86c007196e4389668c7935b7891c5b4217c7.tar.gz
compcert-kvx-adff86c007196e4389668c7935b7891c5b4217c7.zip
fix extraction of non-aarch64 targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1289b364..616c808f 100644
--- a/Makefile
+++ b/Makefile
@@ -249,8 +249,8 @@ endif
tools/compiler_expand: tools/compiler_expand.ml
ifeq ($(OCAML_NATIVE_COMP),true)
ocamlopt -o $@ $+
- ocamlc -o $@ $+
else
+ ocamlc -o $@ $+
endif
tools/modorder: tools/modorder.ml
@@ -274,6 +274,11 @@ latexdoc:
@tools/ndfun $*.vp > $*.v || { rm -f $*.v; exit 2; }
@chmod a-w $*.v
+extraction/extraction.v: Makefile extraction/extraction.vexpand
+ cat extraction/extraction.vexpand > extraction/extraction.v
+ echo "$(EXTRA_EXTRACTION)" >> extraction/extraction.v
+ echo "." >> extraction/extraction.v
+
driver/Compiler.v: driver/Compiler.vexpand tools/compiler_expand
tools/compiler_expand driver/Compiler.vexpand $@
@@ -354,10 +359,10 @@ clean:
rm -f $(patsubst %, %/*.vo*, $(DIRS))
rm -f $(patsubst %, %/.*.aux, $(DIRS))
rm -rf doc/html doc/*.glob
- rm -f driver/Version.ml
+ rm -f driver/Version.ml driver/Compiler.v
rm -f compcert.ini compcert.config
- rm -f extraction/STAMP extraction/*.ml extraction/*.mli .depend.extr
- rm -f tools/ndfun tools/modorder tools/*.cm? tools/*.o
+ rm -f extraction/STAMP extraction/*.ml extraction/*.mli .depend.extr extraction/extraction.v
+ rm -f tools/ndfun tools/modorder tools/compiler_expand tools/*.cm? tools/*.o
rm -f $(GENERATED) .depend
rm -f .lia.cache
$(MAKE) -f Makefile.extr clean