aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Ralf Jung <post@ralfj.de>2018-03-20 20:25:12 +0100
committerGravatar Ralf Jung <post@ralfj.de>2018-03-20 20:25:12 +0100
commitb716378fce3611d06060c4f71da4b6d87f89c09c (patch)
tree7054cee4d65953854a08dd5a96c52bc09922d741 /tools
parent93817b4c2b8d96d6eb990dcfaf21cf2e8f2375df (diff)
coq_makefile: provide variables to override for adding extra flags
Diffstat (limited to 'tools')
-rw-r--r--tools/CoqMakefile.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/CoqMakefile.in b/tools/CoqMakefile.in
index 8ab843fd5..7bcc340ac 100644
--- a/tools/CoqMakefile.in
+++ b/tools/CoqMakefile.in
@@ -168,10 +168,15 @@ DYNOBJ:=.cmxs
DYNLIB:=.cmxs
endif
+# these variables are meant to be overriden if you want to add *extra* flags
+COQEXTRAFLAGS?=
+COQCHKEXTRAFLAGS?=
+COQDOCEXTRAFLAGS?=
+
# these flags do NOT contain the libraries, to make them easier to overwrite
-COQFLAGS?=-q $(OPT) $(OTHERFLAGS)
-COQCHKFLAGS?=-silent -o
-COQDOCFLAGS?=-interpolate -utf8
+COQFLAGS?=-q $(OPT) $(OTHERFLAGS) $(COQEXTRAFLAGS)
+COQCHKFLAGS?=-silent -o $(COQCHKEXTRAFLAGS)
+COQDOCFLAGS?=-interpolate -utf8 $(COQDOCEXTRAFLAGS)
COQDOCLIBS?=$(COQLIBS_NOML)