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 Q Public License version 1.0. #
|
|
|
|
|
# #
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
|
1999-12-30 05:12:10 -08:00
|
|
|
|
VERSIONSTR = <20>
|
|
|
|
|
"<22>"{OCAMLMAJOR}.{OCAMLMINOR}/Mac{MAJOR}.{MINOR}.{BUGFIX}{STAGE}{REV}<EFBFBD>""
|
2000-04-20 06:41:23 -07:00
|
|
|
|
|
2001-03-07 11:42:25 -08:00
|
|
|
|
COPYRIGHTSTR = "<22>"Copyright 1991-2001 INRIA<49>""
|
1998-10-02 06:02:32 -07:00
|
|
|
|
|
2000-04-05 11:30:22 -07:00
|
|
|
|
XIncludes = -i ::byterun:,::config: <20>
|
2001-03-13 08:49:28 -08:00
|
|
|
|
-i ":WASTE:WASTE 1.3 Distribution:WASTE C/C++ Headers:"
|
2000-04-05 11:30:22 -07:00
|
|
|
|
|
2001-08-21 11:50:41 -07:00
|
|
|
|
PPCC = mrc -proto strict -w 6,35
|
2000-04-05 11:30:22 -07:00
|
|
|
|
PPCCplus = mrcpp
|
|
|
|
|
PPCCOptions = {XIncludes} {cdbgflag}
|
|
|
|
|
PPCLinkOptions = -d {ldbgflag}
|
|
|
|
|
PPCCamlrunLibs = ::otherlibs:num:libnums.x <20>
|
|
|
|
|
::otherlibs:bigarray:libbigarray.x <20>
|
2001-03-13 08:37:33 -08:00
|
|
|
|
::byterun:libcamlrun-gui.x <20>
|
2000-05-03 08:26:17 -07:00
|
|
|
|
::otherlibs:str:libstr.x
|
1999-11-29 11:03:38 -08:00
|
|
|
|
PPCWELibs = ":WASTE:WASTE 1.3 Distribution:WASTELib.x"
|
2001-03-13 08:49:28 -08:00
|
|
|
|
PPCSysLibs = "{PPCLibraries}MrCPlusLib.o" <20>
|
2000-04-05 11:30:22 -07:00
|
|
|
|
"{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"
|
2001-03-13 08:37:33 -08:00
|
|
|
|
PPCLibs = {ppccamlrunlibs} {ppcwelibs} {ppcsyslibs}
|
|
|
|
|
|
2000-04-05 11:30:22 -07:00
|
|
|
|
camllibs = ::otherlibs:graph:graphics.cma <20>
|
|
|
|
|
::otherlibs:num:nums.cma <20>
|
|
|
|
|
::otherlibs:bigarray:bigarray.cma <20>
|
|
|
|
|
|
2001-03-13 08:37:33 -08:00
|
|
|
|
primfiles = ::byterun:primitives prim_bigarray prim_graph prim_num prim_str
|
1998-10-02 06:02:32 -07:00
|
|
|
|
|
2000-04-20 06:41:23 -07:00
|
|
|
|
RezDefs = -d MAJORVNUM={MAJOR} -d MINORVNUM=0x{MINOR}{BUGFIX} <20>
|
|
|
|
|
-d STAGE={STAGE} -d DEVVNUM={REV} <20>
|
2000-04-05 11:30:22 -07:00
|
|
|
|
-d VERSIONSTR={VERSIONSTR} -d COPYRIGHTSTR={COPYRIGHTSTR}
|
1998-10-02 06:02:32 -07:00
|
|
|
|
|
|
|
|
|
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>
|
2000-04-17 13:01:40 -07:00
|
|
|
|
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>
|
2001-03-13 08:49:28 -08:00
|
|
|
|
print.c.x scroll.c.x windows.c.x
|
1998-10-02 06:02:32 -07:00
|
|
|
|
|
2000-04-20 06:41:23 -07:00
|
|
|
|
all <EFBFBD> appli appliprims ocamlconstants.h appli.r "Objective Caml"
|
1998-10-02 06:02:32 -07:00
|
|
|
|
set status 0
|
|
|
|
|
|
2000-04-20 06:41:23 -07:00
|
|
|
|
appliprims <EFBFBD> {primfiles}
|
|
|
|
|
catenate {primfiles} > appliprims
|
1998-10-02 06:02:32 -07:00
|
|
|
|
|
2000-04-20 06:41:23 -07:00
|
|
|
|
prims.c <EFBFBD> appliprims
|
2000-05-03 08:26:17 -07:00
|
|
|
|
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
|
1998-10-02 06:02:32 -07:00
|
|
|
|
|
2000-04-17 13:01:40 -07:00
|
|
|
|
OCaml.PPC <EFBFBD> {PPCOBJS} {ppccamlrunlibs}
|
1998-10-02 06:02:32 -07:00
|
|
|
|
ppclink -o OCaml.PPC {ppclinkoptions} {PPCOBJS} {ppclibs}
|
2000-04-05 11:30:22 -07:00
|
|
|
|
rename -y OCaml.PPC.xcoff "Objective Caml.xcoff" || set status 0
|
|
|
|
|
|
1999-02-27 13:50:47 -08:00
|
|
|
|
dummy_fragment <EFBFBD> dummy_fragment.c.x
|
|
|
|
|
ppclink -xm l -o dummy_fragment {ppclinkoptions} dummy_fragment.c.x
|
|
|
|
|
|
2001-03-13 08:37:33 -08:00
|
|
|
|
appli <EFBFBD><EFBFBD> OCaml.PPC dummy_fragment
|
|
|
|
|
delete -i appli
|
2000-04-20 06:41:23 -07:00
|
|
|
|
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
|
2000-05-03 08:26:17 -07:00
|
|
|
|
:ocamlmkappli <20>
|
|
|
|
|
-ocamlc "::boot:ocamlrun ::boot:ocamlc -I ::stdlib: -linkall" <20>
|
2000-04-20 06:41:23 -07:00
|
|
|
|
{rezdefs} -lib : -name "Objective Caml" -r ocaml.r <20>
|
2000-05-03 08:26:17 -07:00
|
|
|
|
-creator Caml -prefsize 5000 -minsize 3000 <20>
|
2000-04-20 06:41:23 -07:00
|
|
|
|
::toplevellib.cma {camllibs} ::toplevel:topmain.cmo
|
|
|
|
|
|
|
|
|
|
install <EFBFBD> appli appli.r appliprims ocamlconstants.h ocamlmkappli <EFBFBD>
|
|
|
|
|
"Objective Caml"
|
2000-04-17 13:01:40 -07:00
|
|
|
|
duplicate -y "Objective Caml" <20>
|
|
|
|
|
`exists "objective caml.xcoff" <20>
|
|
|
|
|
"::test:Moretest:graph_example.ml" <20>
|
|
|
|
|
` <20>
|
|
|
|
|
"{APPLIDIR}"
|
2000-04-20 06:41:23 -07:00
|
|
|
|
duplicate -y appli appli.r appliprims ocamlconstants.h "{LIBDIR}"
|
|
|
|
|
duplicate -y ocamlmkappli "{BINDIR}"
|
1998-10-02 06:02:32 -07:00
|
|
|
|
|
1998-11-06 07:10:29 -08:00
|
|
|
|
partialclean <EFBFBD>
|
2000-04-20 06:41:23 -07:00
|
|
|
|
delete -i "Objective Caml"
|
1998-11-06 07:10:29 -08:00
|
|
|
|
|
1998-10-02 06:02:32 -07:00
|
|
|
|
clean <EFBFBD>
|
2000-04-20 06:41:23 -07:00
|
|
|
|
delete -i -y {OBJS} {PPCOBJS} OCaml.68k OCaml.PPC <20>
|
|
|
|
|
"Objective Caml" appliprims prims.c null :config <20>
|
2000-04-05 11:30:22 -07:00
|
|
|
|
dummy_fragment dummy_fragment.c.x dummy_fragment.xcoff <20>
|
|
|
|
|
"Objective Caml.xcoff" "Objective Caml.dbg"
|
1998-10-02 06:02:32 -07:00
|
|
|
|
|
|
|
|
|
depend <EFBFBD> prims.c
|
2000-04-05 11:30:22 -07:00
|
|
|
|
begin
|
|
|
|
|
makedepend -w -objext .x <20>.c
|
|
|
|
|
end | streamedit -e "/<2F>t/ replace // ' ' -c <20>" > Makefile.Mac.depend
|