65 lines
2.7 KiB
Bash
65 lines
2.7 KiB
Bash
#########################################################################
|
|
# #
|
|
# OCaml #
|
|
# #
|
|
# Nicolas Pouillard, projet Gallium, INRIA Rocquencourt #
|
|
# #
|
|
# Copyright 2007 Institut National de Recherche en Informatique et #
|
|
# en Automatique. All rights reserved. This file is distributed #
|
|
# under the terms of the Q Public License version 1.0. #
|
|
# #
|
|
#########################################################################
|
|
|
|
# $Id$
|
|
|
|
. config/config.sh
|
|
. build/otherlibs-targets.sh
|
|
. build/camlp4-targets.sh
|
|
|
|
INSTALL_BIN="$BINDIR"
|
|
export INSTALL_BIN
|
|
|
|
STDLIB_BYTE="stdlib/libcamlrun.$A stdlib/stdlib.cma \
|
|
stdlib/std_exit.cmo stdlib/camlheader stdlib/camlheader_ur"
|
|
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/objinfo.byte$EXE \
|
|
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"
|
|
STDLIB_NATIVE="stdlib/stdlib.cmxa stdlib/std_exit.cmx asmrun/libasmrun.$A"
|
|
case $PROFILING in
|
|
prof)
|
|
STDLIB_NATIVE="$STDLIB_NATIVE asmrun/libasmrunp.$A \
|
|
stdlib/stdlib.p.cmxa stdlib/std_exit.p.cmx";;
|
|
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"
|
|
OCAMLBUILDLIB_NATIVE="ocamlbuild/ocamlbuildlib.cmxa \
|
|
ocamlbuild/ocamlbuildlightlib.cmxa"
|
|
OCAMLBUILD_NATIVE="$OCAMLBUILDLIB_NATIVE \
|
|
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
|