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:02:27 -08:00
|
|
|
|
# Makefile for the str library
|
|
|
|
|
|
|
|
|
|
# Compilation options
|
|
|
|
|
PPCC = mrc
|
2000-04-07 09:15:34 -07:00
|
|
|
|
PPCCOptions = -i {REGEXLIB},:::byterun:,:::config: -w 7 {cdbgflag}
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
2000-02-05 04:16:09 -08:00
|
|
|
|
CAMLC = :::boot:ocamlrun :::ocamlc -I :::stdlib:
|
1996-11-02 10:02:27 -08:00
|
|
|
|
REGEXLIB = :regex-0.12:
|
|
|
|
|
|
|
|
|
|
PPCCOBJS = strstubs.c.x {REGEXLIB}regex.c.x
|
|
|
|
|
|
2001-07-12 05:56:18 -07:00
|
|
|
|
all <EFBFBD> libstr.x str.cmi str.cma
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
libstr.x <EFBFBD> {PPCCOBJS}
|
2000-04-07 09:15:34 -07:00
|
|
|
|
ppclink {ldbgflag} -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
|
|
|
|
|
2001-07-12 05:56:18 -07:00
|
|
|
|
{REGEXLIB}regex.c.x <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
|
2001-07-12 05:56:18 -07:00
|
|
|
|
delete -i <20>.x || set status 0
|
1997-05-19 08:42:21 -07:00
|
|
|
|
directory {REGEXLIB}; domake distclean; directory ::
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
install <EFBFBD>
|
2001-07-12 05:56:18 -07:00
|
|
|
|
duplicate -y 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>
|
2000-04-05 11:30:22 -07:00
|
|
|
|
begin
|
|
|
|
|
MakeDepend -w -objext .x <20>.c
|
|
|
|
|
:::boot:ocamlrun :::tools:ocamldep <20>.mli <20>.ml
|
|
|
|
|
end | streamedit -e "/<2F>t/ replace // ' ' -c <20>" > Makefile.Mac.depend
|