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
|
|
|
|
|
C = sc
|
2000-04-05 11:30:22 -07:00
|
|
|
|
COptions = -model far -i {REGEXLIB},:::byterun:,:::config: -w 7
|
1996-11-02 10:02:27 -08:00
|
|
|
|
|
|
|
|
|
PPCC = mrc
|
2000-04-05 11:30:22 -07:00
|
|
|
|
PPCCOptions = -i {REGEXLIB},:::byterun:,:::config: -w 7
|
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:
|
|
|
|
|
|
|
|
|
|
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>
|
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
|