summaryrefslogtreecommitdiff
path: root/stdlib/Makefile.Mac
blob: 316bdb94112132482cbfd7de84181c12306d116d (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
RUNTIME = ::boot:ocamlrun
COMPILER = ::ocamlc
CAMLC = {RUNTIME} {COMPILER}
CAMLDEP = ::boot:ocamlrun ::tools:ocamldep

OBJS = pervasives.cmo list.cmo char.cmo string.cmo array.cmo sys.cmo ¶
  hashtbl.cmo sort.cmo filename.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 genlex.cmo callback.cmo weak.cmo ¶
  lazy.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 Ä
    (quote -n "{BINDIR}ocamlrun"; ¶
	 echo ' "{command}" {"Parameters"}; exit {status}') ¶
	> 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

# oo.cmi must be compiled with -nopervasives for applets
oo.cmi Ä oo.mli
	{CAMLC} {COMPFLAGS} -nopervasives -c oo.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