1996-11-02 10:04:50 -08:00
|
|
|
|
# Makefile for the "num" (exact rational arithmetic) library
|
|
|
|
|
|
|
|
|
|
# Compilation options
|
|
|
|
|
C = sc
|
1996-11-06 08:55:58 -08:00
|
|
|
|
COptions = -model far -i :bignum:h:,:::byterun:
|
1996-11-02 10:04:50 -08:00
|
|
|
|
CAMLC = :::boot:ocamlrun :::boot:ocamlc -I :::stdlib:
|
|
|
|
|
CAMLOPT = :::boot:ocamlrun :::ocamlopt: -I :::stdlib:
|
|
|
|
|
|
|
|
|
|
PPCC = mrc
|
|
|
|
|
PPCCOptions = -i :bignum:h:,:::byterun: -w 35
|
|
|
|
|
|
|
|
|
|
CAMLOBJS = int_misc.cmo string_misc.cmo nat.cmo big_int.cmo arith_flags.cmo <20>
|
|
|
|
|
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 <EFBFBD> libnums.o libnums.x nums.cma {CMIFILES}
|
|
|
|
|
|
|
|
|
|
nums.cma <EFBFBD> {CAMLOBJS}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLC} -a -o nums.cma {CAMLOBJS}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
libnums.o <20> :bignum:libbignum.o {COBJS}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
lib -o libnums.o :bignum:libbignum.o {COBJS}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
libnums.x <20> :bignum:libbignum.x {PPCCOBJS}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
ppclink -xm library -o libnums.x :bignum:libbignum.x {PPCCOBJS}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
:bignum:libbignum.x <20> :bignum:libbignum.o
|
1997-05-19 08:42:21 -07:00
|
|
|
|
echo -n
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
:bignum:libbignum.o <20>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
directory :bignum; domake C; directory ::
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
install <EFBFBD>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
duplicate -y libnums.o libnums.x nums.cma {CMIFILES} "{LIBDIR}"
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
|
partialclean <EFBFBD>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
delete -i <20>.cm[aio] || set status 0
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
|
clean <EFBFBD> partialclean
|
1997-05-19 08:42:21 -07:00
|
|
|
|
delete -i <20>.[ox] || set status 0
|
|
|
|
|
directory :bignum; domake scratch; directory ::
|
|
|
|
|
directory :test; domake clean; directory ::
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
.cmi <EFBFBD> .mli
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLC} -c {COMPFLAGS} {default}.mli
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
.cmo <EFBFBD> .ml
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLC} -c {COMPFLAGS} {default}.ml
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
nat_stubs.c.o <EFBFBD> nat.h
|
|
|
|
|
|
|
|
|
|
depend <EFBFBD>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
MakeDepend <20>.c > Makefile.Mac.depend
|
|
|
|
|
:::boot:ocamlrun :::tools:ocamldep <20>.mli <20>.ml >> Makefile.Mac.depend
|