1996-11-02 10:04:50 -08:00
|
|
|
|
# Copyright Digital Equipment Corporation & INRIA 1988, 1989, 1992
|
|
|
|
|
|
|
|
|
|
C = sc
|
2000-04-07 09:15:34 -07:00
|
|
|
|
COptions = -model far -i :h: -d CAML_LIGHT -w 30 {cdbgflag}
|
1996-11-06 08:53:42 -08:00
|
|
|
|
LinkOptions = -state nouse -compact -model far
|
1996-11-02 10:04:50 -08:00
|
|
|
|
Libs = "{libraries}IntEnv.far.o" "{libraries}MacRuntime.o" <20>
|
|
|
|
|
"{clibraries}StdCLib.far.o" "{libraries}MathLib.far.o" <20>
|
|
|
|
|
"{libraries}ToolLibs.o" "{libraries}Interface.o"
|
|
|
|
|
|
|
|
|
|
PPCC = mrc
|
2000-04-07 09:15:34 -07:00
|
|
|
|
PPCCOptions = -i :h: -d CAML_LIGHT -w 30 {cdbgflag}
|
|
|
|
|
PPCLinkOptions = {ldbgflag}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
PPCLibs = "{sharedlibraries}MathLib" "{ppclibraries}PPCCRuntime.o" <20>
|
|
|
|
|
"{ppclibraries}PPCToolLibs.o" "{sharedlibraries}StdCLib" <20>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
"{ppclibraries}StdCRuntime.o" "{sharedlibraries}InterfaceLib"
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
LIB = libbignum.o
|
|
|
|
|
OBJECT = :o:KerN.o :o:bnInit.o :o:bnMult.o :o:bnDivide.o :o:bnCmp.o :o:bzf.o <20>
|
|
|
|
|
:o:bz.o
|
|
|
|
|
|
|
|
|
|
PPCLIB = libbignum.x
|
|
|
|
|
PPCOBJECT = :o:KerN.x :o:bnInit.x :o:bnMult.x :o:bnDivide.x :o:bnCmp.x <20>
|
|
|
|
|
:o:bzf.x :o:bz.x
|
|
|
|
|
|
|
|
|
|
KERNH = :h:BigNum.h
|
|
|
|
|
|
|
|
|
|
# extra entries:
|
|
|
|
|
# all - make all the stuff
|
|
|
|
|
# tidy - cleanup directories
|
|
|
|
|
# scratch - start from scratch
|
|
|
|
|
|
|
|
|
|
default <EFBFBD>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
echo "Usage: make <version>"
|
|
|
|
|
echo "see README for valid versions."
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
#all <20> testKerN bztest
|
1997-05-19 08:42:21 -07:00
|
|
|
|
# echo All is done
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
all <EFBFBD> {LIB} {PPCLIB}
|
1997-07-04 07:54:05 -07:00
|
|
|
|
echo
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
scratch <EFBFBD>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
delete -i :o:<3A>.[ox] || set status 0
|
|
|
|
|
delete -i libbignum.o libbignum.x
|
|
|
|
|
delete -i bztest testKerN
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
# build the BigNum library
|
|
|
|
|
{LIB} <EFBFBD> {OBJECT}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
lib -o {LIB} {OBJECT}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
{PPCLIB} <EFBFBD> {PPCOBJECT}
|
2000-04-07 09:15:34 -07:00
|
|
|
|
ppclink {ldbgflag} -xm library -o {PPCLIB} {PPCOBJECT}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
# How to choose the machine dependent version. All produce KerN.o
|
|
|
|
|
:o:KerN.o <20> :c:KerN.c
|
1997-05-19 08:42:21 -07:00
|
|
|
|
echo "The Default is KerN written in C with digits on long"
|
|
|
|
|
domake C -d C="{C}" -d COptions="{COptions}"
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
C <EFBFBD> scratch
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{C} {COptions} :c:KerN.c -o :o:KerN.o
|
|
|
|
|
{PPCC} {PPCCOptions} :c:KerN.c -o :o:KerN.x
|
|
|
|
|
domake all
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
.o <EFBFBD> .c {KERNH}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{C} {COptions} {depdir}{default}.c -o {targdir}{default}.o
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
.x <EFBFBD> .c {KERNH}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{PPCC} {PPCCOptions} {depdir}{default}.c -o {targdir}{default}.x
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
1996-11-06 08:53:42 -08:00
|
|
|
|
:o: <20> :c: :c:bn:
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
# Level N
|
|
|
|
|
:o:bnInit.o :o:bnInit.x <20> {KERNH}
|
|
|
|
|
:o:bnMult.o :o:bnMult.x <20> {KERNH}
|
|
|
|
|
:o:bnDivide.o :o:bnDivide.x <20> {KERNH}
|
|
|
|
|
:o:bnCmp.o :o:bnCmp.x <20> {KERNH}
|
|
|
|
|
|
|
|
|
|
# Level Z
|
|
|
|
|
:o:bz.o :o:bz.x <20> :h:BigZ.h {KERNH}
|
|
|
|
|
|
|
|
|
|
# Some functions built with BigZ
|
|
|
|
|
:o:bzf.o :o:bzf.x <20> :h:BigZ.h {KERNH}
|
|
|
|
|
|
|
|
|
|
# Tests Of KerN
|
|
|
|
|
testKerN <20><> :o:testKerN.o {LIB}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
ilink -c 'MPS ' -t MPST :o:testKerN.o {LIB} {LinkOptions} -o testKerN {Libs}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
testKerN <20><> :o:testKerN.x {PPCLIB}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
ppclink -c 'MPS ' -t MPST :o:testKerN.x {PPCLIB} {PPCLinkOptions} <20>
|
|
|
|
|
-o testKerN {PPCLibs}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
:o:testKerN.o :o:testKerN.x <20> {KERNH}
|
|
|
|
|
|
|
|
|
|
# Tests Of BigZ
|
|
|
|
|
bztest <20><> :o:bztest.o {LIB}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
ilink -c 'MPS ' -t MPST :o:bztest.o {LIB} {LinkOptions} -o bztest {Libs}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
bztest <20><> :o:bztest.x {PPCLIB}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
ppclink -c 'MPS ' -t MPST :o:bztest.x {PPCLIB} {PPCLinkOptions} <20>
|
|
|
|
|
-o bztest {PPCLibs}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
:o:bztest.o :o:bztest.x <20> :h:BigZ.h {KERNH}
|