75 lines
2.4 KiB
Makefile
75 lines
2.4 KiB
Makefile
|
#########################################################################
|
|||
|
# #
|
|||
|
# Objective Caml #
|
|||
|
# #
|
|||
|
# Xavier Leroy, projet Cristal, 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$
|
|||
|
|
|||
|
C = sc
|
|||
|
COptions = -includes unix -i ":::byterun:,:::config:,{GUSI}include:" -w 35 <20>
|
|||
|
{cdbgflag} -model far
|
|||
|
|
|||
|
PPCC = mrc
|
|||
|
PPCCOptions = -includes unix -i ":::byterun:,:::config:,{GUSI}include:" -w 35 <20>
|
|||
|
{cdbgflag}
|
|||
|
|
|||
|
CAMLC = :::boot:ocamlrun :::ocamlc -I :::stdlib: -I ::unix:
|
|||
|
|
|||
|
C_OBJS = posix.c.o
|
|||
|
PPCC_OBJS = posix.c.x
|
|||
|
|
|||
|
THREAD_OBJS = thread.cmo mutex.cmo condition.cmo event.cmo threadUnix.cmo
|
|||
|
THREAD_INTF = thread.cmi mutex.cmi condition.cmi event.cmi threadUnix.cmi
|
|||
|
|
|||
|
GENFILES = thread.ml
|
|||
|
|
|||
|
all <EFBFBD> libthreads.x libthreads.o threads.cma
|
|||
|
|
|||
|
libthreads.x <EFBFBD> {PPCC_OBJS}
|
|||
|
ppclink {ldbgflag} -xm library -o libthreads.x {PPCC_OBJS}
|
|||
|
|
|||
|
libthreads.o <EFBFBD> {C_OBJS}
|
|||
|
lib {ldbgflag} -o libthreads.o {C_OBJS}
|
|||
|
|
|||
|
threads.cma <EFBFBD> {THREAD_OBJS}
|
|||
|
{CAMLC} -a -o threads.cma -custom {THREAD_OBJS}
|
|||
|
|
|||
|
thread.ml <EFBFBD> thread_posix.ml
|
|||
|
duplicate -y thread_posix.ml thread.ml
|
|||
|
|
|||
|
partialclean <EFBFBD>
|
|||
|
delete -i <20>.cm<63> || set status 0
|
|||
|
|
|||
|
clean <EFBFBD> partialclean
|
|||
|
delete -i <20>.[ox] || set status 0
|
|||
|
delete -i {GENFILES}
|
|||
|
|
|||
|
install <EFBFBD>
|
|||
|
duplicate -y libthreads.x libthreads.o "{LIBDIR}"
|
|||
|
if "`exists "{LIBDIR}threads"`" == ""
|
|||
|
newfolder "{LIBDIR}threads"
|
|||
|
end
|
|||
|
duplicate -y {THREAD_INTF} threads.cma "{LIBDIR}threads"
|
|||
|
duplicate -y thread.mli mutex.mli condition.mli event.mli threadUnix.mli <20>
|
|||
|
"{LIBDIR}"
|
|||
|
|
|||
|
.cmi <EFBFBD> .mli
|
|||
|
{CAMLC} -c {COMPFLAGS} {depdir}{default}.mli
|
|||
|
|
|||
|
.cmo <EFBFBD> .ml
|
|||
|
{CAMLC} -c {COMPFLAGS} {depdir}{default}.ml
|
|||
|
|
|||
|
depend <EFBFBD> {GENFILES}
|
|||
|
begin
|
|||
|
MakeDepend -w -objext .x <20>.c
|
|||
|
MakeDepend -w <20>.c
|
|||
|
:::boot:ocamlrun :::tools:ocamldep -I :::stdlib: -I ::unix: <20>.mli <20>.ml
|
|||
|
end | streamedit -e "/<2F>t/ replace // ' ' -c <20>" > Makefile.Mac.depend
|