ocaml/otherlibs/str/Makefile.Mac

69 lines
2.1 KiB
Makefile
Raw Normal View History

#########################################################################
# #
# 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$
# Makefile for the str library
# Compilation options
C = sc
COptions = -model far -i {REGEXLIB},:::byterun:,:::config: -w 7
PPCC = mrc
PPCCOptions = -i {REGEXLIB},:::byterun:,:::config: -w 7
CAMLC = :::boot:ocamlrun :::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}
lib -o libstr.o {COBJS}
libstr.x <EFBFBD> {PPCCOBJS}
ppclink -xm library -o libstr.x {PPCCOBJS}
str.cma <EFBFBD> str.cmo
{CAMLC} -a -o str.cma str.cmo
{REGEXLIB}regex.c.x <EFBFBD> {REGEXLIB}regex.c.o
echo -n
{REGEXLIB}regex.c.o <EFBFBD> {REGEXLIB}regex.c {REGEXLIB}regex.h
directory {REGEXLIB}; domake; directory ::
partialclean <EFBFBD>
delete -i <20>.cm[aio] || set status 0
clean <EFBFBD> partialclean
delete -i <20>.[ox] || set status 0
directory {REGEXLIB}; domake distclean; directory ::
install <EFBFBD>
duplicate -y libstr.o libstr.x str.cma str.cmi "{LIBDIR}"
.cmi <EFBFBD> .mli
{CAMLC} -c {COMPFLAGS} {default}.mli
.cmo <EFBFBD> .ml
{CAMLC} -c {COMPFLAGS} {default}.ml
depend <EFBFBD>
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