summaryrefslogtreecommitdiff
path: root/stdlib/Makefile.Mac
blob: 8b4e4ee0c086d17988249c91a5c0582d826305fc (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
66
67
68
69
70
71
72
73
74
#########################################################################
#                                                                       #
#                            Objective Caml                             #
#                                                                       #
#            Damien Doligez, projet Para, INRIA Rocquencourt            #
#                                                                       #
#   Copyright 1999 Institut National de Recherche en Informatique et    #
#   en Automatique.  All rights reserved.  This file is distributed     #
#   under the terms of the GNU Library General Public License, with     #
#   the special exception on linking described in file ../LICENSE.      #
#                                                                       #
#########################################################################

# $Id$

RUNTIME = ::boot:ocamlrun
COMPILER = ::ocamlc
CAMLC = {RUNTIME} {COMPILER}
CAMLDEP = ::boot:ocamlrun ::tools:ocamldep

OBJS = pervasives.cmo array.cmo list.cmo char.cmo string.cmo sys.cmo ¶
  hashtbl.cmo sort.cmo marshal.cmo obj.cmo ¶
  lexing.cmo parsing.cmo ¶
  set.cmo map.cmo stack.cmo queue.cmo stream.cmo ¶
  buffer.cmo printf.cmo format.cmo arg.cmo printexc.cmo gc.cmo ¶
  digest.cmo random.cmo oo.cmo camlInternal.cmo ¶
  genlex.cmo callback.cmo weak.cmo ¶
  lazy.cmo filename.cmo int32.cmo int64.cmo nativeint.cmo complex.cmo

all Ä stdlib.cma std_exit.cmo camlheader camlheader_ur

install Ä
    duplicate -y stdlib.cma std_exit.cmo Å.cmi Å.mli camlheader camlheader_ur ¶
              "{LIBDIR}"

stdlib.cma Ä {OBJS}
    {CAMLC} -a -o stdlib.cma {OBJS}

camlheader Ä
    begin
      quote -n "ocamlrun"; echo ' "{command}" {"Parameters"}'
      echo 'exit {status}'
      echo
    end > camlheader

camlheader_ur Ä
    echo -n ' ' > camlheader_ur

clean ÄÄ
    delete -i camlheader camlheader_ur

pervasives.cmi Ä pervasives.mli
    {CAMLC} {COMPFLAGS} -nopervasives -c pervasives.mli

pervasives.cmo Ä pervasives.ml
    {CAMLC} {COMPFLAGS} -nopervasives -c pervasives.ml

# camlinternalOO.cmi must be compiled with -nopervasives for applets
camlinternalOO.cmi Ä camlinternalOO.mli
    {CAMLC} {COMPFLAGS} -nopervasives -c camlinternalOO.mli

.cmi Ä .mli
    {CAMLC} {COMPFLAGS} -c {default}.mli

.cmo Ä .ml
    {CAMLC} {COMPFLAGS} -c {default}.ml

{OBJS} std_exit.cmo Ä pervasives.cmi

clean ÄÄ
    delete -i Å.cm[aio] || set status 0

depend Ä
    {CAMLDEP} Å.mli Å.ml > Makefile.Mac.depend