aboutsummaryrefslogtreecommitdiff
path: root/Makefile.build
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.build')
-rw-r--r--Makefile.build35
1 files changed, 30 insertions, 5 deletions
diff --git a/Makefile.build b/Makefile.build
index ea356d5f8e..8b989f161a 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -11,6 +11,9 @@
# This makefile is normally called by the main Makefile after setting
# some variables.
+# Cleanup environment (avoids filling it up)
+unexport $(COQ_EXPORTED)
+
###########################################################################
# User-customizable variables
###########################################################################
@@ -316,11 +319,21 @@ $(LIBCOQRUN): kernel/byterun/coq_jumptbl.h $(BYTERUN)
cd $(dir $(LIBCOQRUN)) && \
$(OCAMLFIND) ocamlmklib -oc $(COQRUN) $(notdir $(BYTERUN))
-kernel/byterun/coq_jumptbl.h : kernel/byterun/coq_instruct.h kernel/byterun/make_jumptbl.sh
- kernel/byterun/make_jumptbl.sh $< $@
+kernel/genOpcodeFiles.exe: kernel/genOpcodeFiles.ml
+ $(SHOW)'OCAMLC $<'
+ $(HIDE)$(OCAMLC) -o $@ $<
+
+kernel/byterun/coq_instruct.h: kernel/genOpcodeFiles.exe
+ $(SHOW)'WRITE $@'
+ $(HIDE)$< enum > $@
-kernel/copcodes.ml: kernel/byterun/coq_instruct.h kernel/make_opcodes.sh kernel/make-opcodes
- kernel/make_opcodes.sh $< $@
+kernel/byterun/coq_jumptbl.h: kernel/genOpcodeFiles.exe
+ $(SHOW)'WRITE $@'
+ $(HIDE)$< jump > $@
+
+kernel/copcodes.ml: kernel/genOpcodeFiles.exe
+ $(SHOW)'WRITE $@'
+ $(HIDE)$< copml > $@
%.o: %.c
$(SHOW)'OCAMLC $<'
@@ -849,6 +862,18 @@ $(VDFILE).d: $(D_DEPEND_BEFORE_SRC) $(VFILES) $(D_DEPEND_AFTER_SRC) $(COQDEPBOOT
###########################################################################
+
+# Useful to check that the exported variables are within the win32 limits
+
+printenv-real:
+ @env
+ @echo
+ @echo -n "Maxsize (win32 limit is 8k) : "
+ @env | wc -L
+ @echo -n "Total (win32 limit is 32k) : "
+ @env | wc -m
+
+
# To speed-up things a bit, let's dissuade make to attempt rebuilding makefiles
Makefile $(wildcard Makefile.*) config/Makefile : ;
@@ -863,5 +888,5 @@ Makefile $(wildcard Makefile.*) config/Makefile : ;
# For emacs:
# Local Variables:
-# mode: makefile
+# mode: makefile-gmake
# End: