blob: 6b44521d42d3438c62216956880140bab1a564ab (
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
|
# Makefile for the "num" (exact rational arithmetic) library
# Compilation options
C = sc
COptions = -model far -i :bignum:h:,:::byterun:
CAMLC = :::boot:ocamlrun :::boot:ocamlc -I :::stdlib: -w s
CAMLOPT = :::boot:ocamlrun :::ocamlopt: -I :::stdlib: -w s
PPCC = mrc
PPCCOptions = -i :bignum:h:,:::byterun: -w 35
CAMLOBJS = int_misc.cmo string_misc.cmo nat.cmo big_int.cmo arith_flags.cmo ¶
ratio.cmo num.cmo arith_status.cmo
CMIFILES = big_int.cmi nat.cmi num.cmi ratio.cmi arith_status.cmi
COBJS = nat_stubs.c.o
PPCCOBJS = nat_stubs.c.x
all Ä libnums.o libnums.x nums.cma {CMIFILES}
nums.cma Ä {CAMLOBJS}
{CAMLC} -a -o nums.cma {CAMLOBJS}
libnums.o Ä :bignum:libbignum.o {COBJS}
lib -o libnums.o :bignum:libbignum.o {COBJS}
libnums.x Ä :bignum:libbignum.x {PPCCOBJS}
ppclink -xm library -o libnums.x :bignum:libbignum.x {PPCCOBJS}
:bignum:libbignum.x Ä :bignum:libbignum.o
echo -n
:bignum:libbignum.o Ä
directory :bignum; domake C; directory ::
install Ä
duplicate -y libnums.o libnums.x nums.cma {CMIFILES} "{LIBDIR}"
partialclean Ä
delete -i Å.cm[aio] || set status 0
clean Ä partialclean
delete -i Å.[ox] || set status 0
directory :bignum; domake scratch; directory ::
directory :test; domake clean; directory ::
.cmi Ä .mli
{CAMLC} -c {COMPFLAGS} {default}.mli
.cmo Ä .ml
{CAMLC} -c {COMPFLAGS} {default}.ml
nat_stubs.c.o Ä nat.h
depend Ä
MakeDepend Å.c > Makefile.Mac.depend
:::boot:ocamlrun :::tools:ocamldep Å.mli Å.ml >> Makefile.Mac.depend
|