ocaml/maccaml/Makefile.Mac

122 lines
4.7 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 Q Public License version 1.0. #
# #
#########################################################################
# $Id$
VERSIONSTR = <20>
"<22>"{OCAMLMAJOR}.{OCAMLMINOR}/Mac{MAJOR}.{MINOR}.{BUGFIX}{STAGE}{REV}<EFBFBD>""
COPYRIGHTSTR = "<22>"Copyright 1991-2001 INRIA<49>""
XIncludes = -i ::byterun:,::config: <20>
-i ":WASTE:WASTE 1.3 Distribution:WASTE C/C++ Headers:"
PPCC = mrc -proto strict -w 6,35
PPCCplus = mrcpp
PPCCOptions = {XIncludes} {cdbgflag}
PPCLinkOptions = -d {ldbgflag}
PPCCamlrunLibs = ::otherlibs:num:libnums.x <20>
::otherlibs:bigarray:libbigarray.x <20>
::byterun:libcamlrun-gui.x <20>
::otherlibs:str:libstr.x
PPCWELibs = ":WASTE:WASTE 1.3 Distribution:WASTELib.x"
PPCSysLibs = "{PPCLibraries}MrCPlusLib.o" <20>
"{PPCLibraries}PPCStdCLib.o" <20>
"{PPCLibraries}StdCRuntime.o" <20>
"{PPCLibraries}PPCCRuntime.o" <20>
"{PPCLibraries}PPCToolLibs.o" <20>
"{SharedLibraries}InterfaceLib" <20>
"{SharedLibraries}StdCLib" <20>
"{sharedlibraries}MathLib" <20>
"{sharedlibraries}DragLib"
PPCLibs = {ppccamlrunlibs} {ppcwelibs} {ppcsyslibs}
camllibs = ::otherlibs:graph:graphics.cma <20>
::otherlibs:num:nums.cma <20>
::otherlibs:bigarray:bigarray.cma <20>
primfiles = ::byterun:primitives prim_bigarray prim_graph prim_num prim_str
RezDefs = -d MAJORVNUM={MAJOR} -d MINORVNUM=0x{MINOR}{BUGFIX} <20>
-d STAGE={STAGE} -d DEVVNUM={REV} <20>
-d VERSIONSTR={VERSIONSTR} -d COPYRIGHTSTR={COPYRIGHTSTR}
PPCOBJS = aboutbox.c.x appleevents.c.x clipboard.c.x <20>
drag.c.x errors.c.x <20>
events.c.x files.c.x glue.c.x <20>
graph.c.x lcontrols.c.x lib.c.x main.c.x mcmemory.c.x <20>
menus.c.x mcmisc.c.x modalfilter.c.x prefs.c.x prims.c.x <20>
print.c.x scroll.c.x windows.c.x
all <EFBFBD> appli appliprims ocamlconstants.h appli.r "Objective Caml"
set status 0
appliprims <EFBFBD> {primfiles}
catenate {primfiles} > appliprims
prims.c <EFBFBD> appliprims
begin
echo '#include "mlvalues.h"'
echo '#include "prims.h"'
streamedit -e '1,$ change "extern value " . "();"' appliprims
echo 'c_primitive cprim [] = {'
streamedit -e '1,$ change " " . ","' appliprims
echo '0 };'
echo 'char * names_of_cprim [] = {'
streamedit -e '1,$ change " <20>"" . "<22>","' appliprims
echo '0 };'
end > prims.c
OCaml.PPC <EFBFBD> {PPCOBJS} {ppccamlrunlibs}
ppclink -o OCaml.PPC {ppclinkoptions} {PPCOBJS} {ppclibs}
rename -y OCaml.PPC.xcoff "Objective Caml.xcoff" || set status 0
dummy_fragment <EFBFBD> dummy_fragment.c.x
ppclink -xm l -o dummy_fragment {ppclinkoptions} dummy_fragment.c.x
appli <EFBFBD><EFBFBD> OCaml.PPC dummy_fragment
delete -i appli
mergefragment -a OCaml.PPC appli
mergefragment dummy_fragment appli
"Objective Caml" <EFBFBD> appliprims appli.r ocamlconstants.h appli <EFBFBD>
::toplevellib.cma {camllibs} ::toplevel:topmain.cmo
:ocamlmkappli <20>
-ocamlc "::boot:ocamlrun ::boot:ocamlc -I ::stdlib: -linkall" <20>
{rezdefs} -lib : -name "Objective Caml" -r ocaml.r <20>
-creator Caml -prefsize 5000 -minsize 3000 <20>
::toplevellib.cma {camllibs} ::toplevel:topmain.cmo
install <EFBFBD> appli appli.r appliprims ocamlconstants.h ocamlmkappli <EFBFBD>
"Objective Caml"
duplicate -y "Objective Caml" <20>
`exists "objective caml.xcoff" <20>
"::test:Moretest:graph_example.ml" <20>
` <20>
"{APPLIDIR}"
duplicate -y appli appli.r appliprims ocamlconstants.h "{LIBDIR}"
duplicate -y ocamlmkappli "{BINDIR}"
partialclean <EFBFBD>
delete -i "Objective Caml"
clean <EFBFBD>
delete -i -y {OBJS} {PPCOBJS} OCaml.68k OCaml.PPC <20>
"Objective Caml" appliprims prims.c null :config <20>
dummy_fragment dummy_fragment.c.x dummy_fragment.xcoff <20>
"Objective Caml.xcoff" "Objective Caml.dbg"
depend <EFBFBD> prims.c
begin
makedepend -w -objext .x <20>.c
end | streamedit -e "/<2F>t/ replace // ' ' -c <20>" > Makefile.Mac.depend