2007-10-08 07:19:34 -07:00
|
|
|
# $Id$
|
2007-02-11 23:59:44 -08:00
|
|
|
. config/config.sh
|
|
|
|
. build/otherlibs-targets.sh
|
|
|
|
. build/camlp4-targets.sh
|
2007-10-08 07:19:34 -07:00
|
|
|
|
|
|
|
INSTALL_BIN="$BINDIR"
|
|
|
|
export INSTALL_BIN
|
|
|
|
|
|
|
|
STDLIB_BYTE="stdlib/libcamlrun.$A stdlib/stdlib.cma \
|
|
|
|
stdlib/std_exit.cmo stdlib/camlheader stdlib/camlheader_ur"
|
2007-02-07 01:40:59 -08:00
|
|
|
OCAMLLEX_BYTE=lex/ocamllex$EXE
|
|
|
|
OCAMLC_BYTE=ocamlc$EXE
|
|
|
|
OCAMLOPT_BYTE=ocamlopt$EXE
|
|
|
|
OCAMLBUILD_BYTE="ocamlbuild/ocamlbuildlib.cma \
|
|
|
|
ocamlbuild/ocamlbuildlightlib.cma \
|
|
|
|
ocamlbuild/ocamlbuild.byte$EXE \
|
|
|
|
ocamlbuild/ocamlbuildlight.byte$EXE"
|
|
|
|
TOPLEVEL=ocaml$EXE
|
|
|
|
TOOLS_BYTE="tools/ocamldep.byte$EXE tools/profiling.cmo \
|
|
|
|
tools/ocamlprof.byte$EXE tools/ocamlcp.byte$EXE \
|
|
|
|
tools/ocamlmktop.byte$EXE tools/ocamlmklib$EXE \
|
|
|
|
tools/scrapelabels.byte tools/addlabels.byte \
|
|
|
|
tools/dumpobj.byte$EXE"
|
|
|
|
if [ ! -z "$DEBUGGER" ]; then
|
|
|
|
DEBUGGER=debugger/ocamldebug$EXE
|
|
|
|
fi
|
|
|
|
OCAMLDOC_BYTE="ocamldoc/ocamldoc$EXE ocamldoc/odoc_info.cma"
|
2007-10-08 07:19:34 -07:00
|
|
|
STDLIB_NATIVE="stdlib/stdlib.cmxa stdlib/std_exit.cmx asmrun/libasmrun.$A"
|
2007-02-07 01:40:59 -08:00
|
|
|
case $PROFILING in
|
2007-10-08 07:19:34 -07:00
|
|
|
prof)
|
|
|
|
STDLIB_NATIVE="$STDLIB_NATIVE asmrun/libasmrunp.$A \
|
|
|
|
stdlib/stdlib.p.cmxa stdlib/std_exit.p.cmx";;
|
2007-02-07 01:40:59 -08:00
|
|
|
noprof) ;;
|
|
|
|
*) echo "unexpected PROFILING value $PROFILING"; exit 1;;
|
|
|
|
esac
|
|
|
|
OCAMLC_NATIVE=ocamlc.opt$EXE
|
|
|
|
OCAMLOPT_NATIVE=ocamlopt.opt$EXE
|
|
|
|
OCAMLLEX_NATIVE=lex/ocamllex.opt$EXE
|
|
|
|
TOOLS_NATIVE=tools/ocamldep.native$EXE
|
|
|
|
OCAMLDOC_NATIVE="ocamldoc/ocamldoc.opt$EXE ocamldoc/odoc_info.cmxa ocamldoc/stdlib_man/Pervasives.3o"
|
|
|
|
OCAMLBUILD_NATIVE="ocamlbuild/ocamlbuildlib.cmxa \
|
|
|
|
ocamlbuild/ocamlbuildlightlib.cmxa \
|
|
|
|
ocamlbuild/ocamlbuild.native$EXE \
|
|
|
|
ocamlbuild/ocamlbuildlight.native$EXE"
|
|
|
|
if [ -x boot/myocamlbuild.native ]; then
|
|
|
|
OCAMLBUILD=./boot/myocamlbuild.native
|
|
|
|
else
|
|
|
|
OCAMLBUILD="./boot/ocamlrun boot/myocamlbuild"
|
|
|
|
fi
|