aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotin2006-05-04 13:25:52 +0000
committernotin2006-05-04 13:25:52 +0000
commitbf962b3fae1f3ac8eb2170fb8d33fb004c3445fa (patch)
treea4ab685c48930918e2419e328156ba4761760d8f
parentc3ac3f3a350ad96f9f9f9c22a516f84cf6ad193d (diff)
- intégration de la modification suggérée par L. Mamane: coqmktop passe maintenant aussi l'option -dtypes à ocamlmktop
- ajout d'une variable USERFLAGS, permettant à un utilisateur de rajouter facilement des options de compilation git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8787 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--Makefile5
-rw-r--r--config/Makefile.template3
-rw-r--r--scripts/coqmktop.ml2
3 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fd8e52c83a..45ae6c8c98 100644
--- a/Makefile
+++ b/Makefile
@@ -73,8 +73,8 @@ LOCALINCLUDES=-I config -I tools -I tools/coqdoc \
MLINCLUDES=$(LOCALINCLUDES) -I $(MYCAMLP4LIB)
-BYTEFLAGS=$(MLINCLUDES) $(CAMLDEBUG)
-OPTFLAGS=$(MLINCLUDES) $(CAMLTIMEPROF) -noassert
+BYTEFLAGS=$(MLINCLUDES) $(CAMLDEBUG) $(USERFLAGS)
+OPTFLAGS=$(MLINCLUDES) $(CAMLTIMEPROF) $(USERFLAGS) -noassert
OCAMLDEP=ocamldep
DEPFLAGS=$(LOCALINCLUDES)
@@ -1696,5 +1696,6 @@ devel:
clean::
find . -name "\.#*" -exec rm -f {} \;
find . -name "*~" -exec rm -f {} \;
+ find . -name "*.annot" -exec rm -f {} \;
###########################################################################
diff --git a/config/Makefile.template b/config/Makefile.template
index f30ed2114d..aa7f2d6219 100644
--- a/config/Makefile.template
+++ b/config/Makefile.template
@@ -60,6 +60,9 @@ CAMLMKTOP=ocamlmktop
# Compilation debug flag
CAMLDEBUG=COQDEBUGFLAG
+# User compilation flag
+USERFLAGS=
+
# Compilation profile flag
CAMLTIMEPROF=COQPROFILEFLAG
diff --git a/scripts/coqmktop.ml b/scripts/coqmktop.ml
index 784bbdc3d2..b57361a430 100644
--- a/scripts/coqmktop.ml
+++ b/scripts/coqmktop.ml
@@ -166,7 +166,7 @@ let parse_args () =
parse ((List.rev(List.flatten (List.map (fun d -> ["-I";d])
(all_subdirs a))))@op,fl) rem
| "-R" :: [] -> usage ()
- | ("-noassert"|"-compact"|"-g"|"-p"|"-thread" as o) :: rem ->
+ | ("-noassert"|"-compact"|"-g"|"-p"|"-thread"|"-dtypes" as o) :: rem ->
parse (o::op,fl) rem
| ("-h"|"--help") :: _ -> usage ()
| f :: rem ->