1996-11-02 10:02:27 -08:00
|
|
|
|
# Makefile for the str library
|
|
|
|
|
|
|
|
|
|
# Compilation options
|
|
|
|
|
C = sc
|
1996-11-06 08:55:58 -08:00
|
|
|
|
COptions = -model far -i {REGEXLIB},:::byterun: -w 7
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
PPCC = mrc
|
|
|
|
|
PPCCOptions = -i {REGEXLIB},:::byterun: -w 7
|
|
|
|
|
|
|
|
|
|
CAMLC = :::boot:ocamlrun :::boot:ocamlc -I :::stdlib:
|
|
|
|
|
REGEXLIB = :regex-0.12:
|
|
|
|
|
|
|
|
|
|
COBJS = strstubs.c.o {REGEXLIB}regex.c.o
|
|
|
|
|
PPCCOBJS = strstubs.c.x {REGEXLIB}regex.c.x
|
|
|
|
|
|
|
|
|
|
all <EFBFBD> libstr.o libstr.x str.cmi str.cma
|
|
|
|
|
|
|
|
|
|
libstr.o <EFBFBD> {COBJS}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
lib -o libstr.o {COBJS}
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
libstr.x <EFBFBD> {PPCCOBJS}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
ppclink -xm library -o libstr.x {PPCCOBJS}
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
str.cma <EFBFBD> str.cmo
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLC} -a -o str.cma str.cmo
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
{REGEXLIB}regex.c.x <EFBFBD> {REGEXLIB}regex.c.o
|
1997-05-19 08:42:21 -07:00
|
|
|
|
echo -n
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
{REGEXLIB}regex.c.o <EFBFBD> {REGEXLIB}regex.c {REGEXLIB}regex.h
|
1997-05-19 08:42:21 -07:00
|
|
|
|
directory {REGEXLIB}; domake; directory ::
|
1996-11-02 10:02:27 -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:02:27 -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 {REGEXLIB}; domake distclean; directory ::
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
install <EFBFBD>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
duplicate -y libstr.o libstr.x str.cma str.cmi "{LIBDIR}"
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
.cmi <EFBFBD> .mli
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLC} -c {COMPFLAGS} {default}.mli
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
.cmo <EFBFBD> .ml
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLC} -c {COMPFLAGS} {default}.ml
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
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
|