ocaml/otherlibs/num/Makefile.Mac

59 lines
1.5 KiB
Makefile
Raw Normal View History

# 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:
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}
{CAMLC} -a -o nums.cma {CAMLOBJS}
libnums.o <20> :bignum:libbignum.o {COBJS}
lib -o libnums.o :bignum:libbignum.o {COBJS}
libnums.x <20> :bignum:libbignum.x {PPCCOBJS}
ppclink -xm library -o libnums.x :bignum:libbignum.x {PPCCOBJS}
:bignum:libbignum.x <20> :bignum:libbignum.o
echo -n
:bignum:libbignum.o <20>
directory :bignum; domake C; directory ::
install <EFBFBD>
duplicate -y libnums.o libnums.x nums.cma {CMIFILES} "{LIBDIR}"
partialclean <EFBFBD>
delete -i <20>.cm[aio] || set status 0
clean <EFBFBD> partialclean
delete -i <20>.[ox] || set status 0
directory :bignum; domake scratch; directory ::
directory :test; domake clean; directory ::
.cmi <EFBFBD> .mli
{CAMLC} -c {COMPFLAGS} {default}.mli
.cmo <EFBFBD> .ml
{CAMLC} -c {COMPFLAGS} {default}.ml
nat_stubs.c.o <EFBFBD> nat.h
depend <EFBFBD>
MakeDepend <20>.c > Makefile.Mac.depend
:::boot:ocamlrun :::tools:ocamldep <20>.mli <20>.ml >> Makefile.Mac.depend