summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2010-05-28 11:21:46 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2010-05-28 11:21:46 +0000
commitab9616c72bac2ea3223ec4db15072f4d2578b858 (patch)
tree498271d56f90ebd8edf2530d980283527e82bf92
parent7e84b29e465d90b54b397f6027e05de4cbe731e4 (diff)
add world.opt target
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10472 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--Makefile.nt16
-rw-r--r--ocamldoc/Makefile.nt4
2 files changed, 15 insertions, 5 deletions
diff --git a/Makefile.nt b/Makefile.nt
index aec858cb5..c1be1220b 100644
--- a/Makefile.nt
+++ b/Makefile.nt
@@ -206,11 +206,15 @@ cleanboot:
rm -rf boot/Saved/Saved.prev/*
# Compile the native-code compiler
-opt: runtimeopt ocamlopt libraryopt otherlibrariesopt ocamlbuildlib.native
+opt-core: runtimeopt ocamlopt libraryopt
+opt: opt-core otherlibrariesopt ocamlbuildlib.native
# Native-code versions of the tools
-opt.opt: ocamlc.opt ocamlopt.opt ocamllex.opt ocamltoolsopt.opt \
- ocamlbuild.native camlp4opt ocamldoc.opt
+opt.opt: core opt-core ocamlc.opt all ocamlopt.opt ocamllex.opt \
+ ocamltoolsopt.opt ocamlbuild.native camlp4opt ocamldoc.opt
+
+# Complete build using fast compilers
+world.opt: coldstart opt.opt
# Installation
install: installbyt installopt
@@ -377,6 +381,9 @@ beforedepend:: parsing/linenum.ml
ocamlc.opt: $(COMPOBJS:.cmo=.cmx)
cd asmrun ; $(MAKEREC) meta.$(O) dynlink.$(O)
$(CAMLOPT) $(LINKFLAGS) -o ocamlc.opt $(COMPOBJS:.cmo=.cmx) asmrun/meta.$(O) asmrun/dynlink.$(O)
+ @sed -e 's|@compiler@|$$topdir/ocamlc.opt|' \
+ driver/ocamlcomp.sh.in > ocamlcomp.sh
+ @chmod +x ocamlcomp.sh
partialclean::
rm -f ocamlc.opt
@@ -385,6 +392,9 @@ partialclean::
ocamlopt.opt: $(OPTOBJS:.cmo=.cmx)
$(CAMLOPT) $(LINKFLAGS) -o ocamlopt.opt $(OPTOBJS:.cmo=.cmx)
+ @sed -e 's|@compiler@|$$topdir/ocamlopt.opt|' \
+ driver/ocamlcomp.sh.in > ocamlcompopt.sh
+ @chmod +x ocamlcompopt.sh
partialclean::
rm -f ocamlopt.opt
diff --git a/ocamldoc/Makefile.nt b/ocamldoc/Makefile.nt
index 8130fe40e..387aec928 100644
--- a/ocamldoc/Makefile.nt
+++ b/ocamldoc/Makefile.nt
@@ -14,8 +14,8 @@
include ../config/Makefile
CAMLRUN =../boot/ocamlrun
-OCAMLC =$(CAMLRUN) ../ocamlc -warn-error A
-OCAMLOPT =$(CAMLRUN) ../ocamlopt
+OCAMLC = ../ocamlcomp.sh
+OCAMLOPT = ../ocamlcompopt.sh
OCAMLLEX =$(CAMLRUN) ../boot/ocamllex
OCAMLYACC=../boot/ocamlyacc