summaryrefslogtreecommitdiff
path: root/build/targets.sh
blob: 66406aab04aff1003c42e7f466f33878fc33688c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

#########################################################################
#                                                                       #
#                            Objective Caml                             #
#                                                                       #
#       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