aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@college-de-france.fr>2020-09-21 14:15:57 +0200
committerXavier Leroy <xavier.leroy@college-de-france.fr>2020-09-21 14:37:38 +0200
commitab0d9476db875a82cf293623d18552b62f239d5c (patch)
treec6c121933c1b536f03f5b8386f8b351c315763d8 /test
parentb525fbe0915931a939d5851b511ce46fcf026236 (diff)
downloadcompcert-kvx-ab0d9476db875a82cf293623d18552b62f239d5c.tar.gz
compcert-kvx-ab0d9476db875a82cf293623d18552b62f239d5c.zip
Support the use of already-installed MenhirLib and Flocq libraries
configure flags -use-external-Flocq and -use external-MenhirLib.
Diffstat (limited to 'test')
-rw-r--r--test/clightgen/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/clightgen/Makefile b/test/clightgen/Makefile
index bf4a044b..fdfbc3fb 100644
--- a/test/clightgen/Makefile
+++ b/test/clightgen/Makefile
@@ -5,8 +5,12 @@ ARCHDIRS=$(ARCH)
else
ARCHDIRS=$(ARCH)_$(BITSIZE) $(ARCH)
endif
-RECDIRS=lib common $(ARCHDIRS) cfrontend flocq exportclight
-COQINCLUDES=$(foreach d, $(RECDIRS), -R ../../$(d) compcert.$(d))
+RECDIRS := lib common $(ARCHDIRS) cfrontend exportclight
+COQINCLUDES := $(foreach d, $(RECDIRS), -R ../../$(d) compcert.$(d))
+ifeq ($(LIBRARY_FLOCQ),local)
+COQINCLUDES += -R ../../flocq Flocq
+endif
+
CLIGHTGEN=../../clightgen
COQC=coqc