1999-11-17 10:59:06 -08:00
|
|
|
|
#########################################################################
|
|
|
|
|
# #
|
|
|
|
|
# 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. #
|
|
|
|
|
# #
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
|
1996-11-02 10:04:50 -08:00
|
|
|
|
# Makefile for the "num" (exact rational arithmetic) library
|
|
|
|
|
|
|
|
|
|
# Compilation options
|
|
|
|
|
C = sc
|
2000-04-07 09:15:34 -07:00
|
|
|
|
COptions = -model far -i :bignum:h:,:::byterun:,:::config: -w 35 {cdbgflag}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
PPCC = mrc
|
2000-04-07 09:15:34 -07:00
|
|
|
|
PPCCOptions = -i :bignum:h:,:::byterun:,:::config: -w 35 {cdbgflag}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
2000-03-01 05:01:44 -08:00
|
|
|
|
CAMLC = :::boot:ocamlrun :::ocamlc -I :::stdlib: -w s
|
|
|
|
|
CAMLOPT = :::boot:ocamlrun :::ocamlopt: -I :::stdlib: -w s
|
|
|
|
|
|
1996-11-02 10:04:50 -08:00
|
|
|
|
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}
|
2000-04-07 09:15:34 -07:00
|
|
|
|
ppclink {ldbgflag} -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>
|
2000-04-05 11:30:22 -07:00
|
|
|
|
begin
|
|
|
|
|
MakeDepend -w -objext .x <20>.c
|
|
|
|
|
MakeDepend -w <20>.c
|
|
|
|
|
:::boot:ocamlrun :::tools:ocamldep <20>.mli <20>.ml
|
|
|
|
|
end | streamedit -e "/<2F>t/ replace // ' ' -c <20>" > Makefile.Mac.depend
|