Bug Mac
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1382 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
17c673a7e6
commit
5068454019
|
@ -1,6 +1,6 @@
|
|||
# The main Makefile
|
||||
|
||||
MacVersion = "mac.0x2"
|
||||
MacVersion = "mac.3"
|
||||
|
||||
CAMLC = :boot:ocamlrun :boot:ocamlc -I :boot:
|
||||
COMPFLAGS = {INCLUDES}
|
||||
|
@ -367,7 +367,9 @@ alldepend
|
|||
# Clean up the test directory
|
||||
|
||||
clean ÄÄ
|
||||
directory :test; domake clean; directory ::
|
||||
if `exists :test`
|
||||
directory :test; domake clean; directory ::
|
||||
end
|
||||
|
||||
# Default rules
|
||||
|
||||
|
|
|
@ -38,73 +38,73 @@ PRIMS = array.c compare.c extern.c floats.c gc_ctrl.c hash.c
|
|||
all Ä ocamlrun libcamlrun.o libcamlrun.x
|
||||
|
||||
ocamlrun ÄÄ libcamlrun.o prims.c.o
|
||||
ilink -c 'MPS ' -t MPST {LinkOptions} -o ocamlrun prims.c.o ¶
|
||||
libcamlrun.o {Libs}
|
||||
ilink -c 'MPS ' -t MPST {LinkOptions} -o ocamlrun prims.c.o ¶
|
||||
libcamlrun.o {Libs}
|
||||
|
||||
ocamlrun ÄÄ libcamlrun.x prims.c.x
|
||||
ppclink -c 'MPS ' -t MPST {PPCLinkOptions} -o ocamlrun prims.c.x ¶
|
||||
libcamlrun.x {PPCLibs}
|
||||
ppclink -c 'MPS ' -t MPST {PPCLinkOptions} -o ocamlrun prims.c.x ¶
|
||||
libcamlrun.x {PPCLibs}
|
||||
|
||||
libcamlrun.o Ä {OBJS}
|
||||
lib -o libcamlrun.o {OBJS}
|
||||
lib -o libcamlrun.o {OBJS}
|
||||
|
||||
libcamlrun.x Ä {PPCOBJS}
|
||||
ppclink -xm library -o libcamlrun.x {PPCOBJS}
|
||||
ppclink {PPCLinkOptions} -xm library -o libcamlrun.x {PPCOBJS}
|
||||
|
||||
install Ä
|
||||
duplicate -y ocamlrun "{BINDIR}ocamlrun"
|
||||
duplicate -y libcamlrun.x libcamlrun.o "{LIBDIR}"
|
||||
if "`exists -d "{LIBDIR}caml:"`" == ""
|
||||
newfolder "{LIBDIR}caml:"
|
||||
end
|
||||
duplicate -y mlvalues.h alloc.h misc.h callback.h config.h memory.h ¶
|
||||
"{LIBDIR}caml:"
|
||||
open -t "{LIBDIR}caml:config.h"
|
||||
find ¥ "{LIBDIR}caml:config.h"
|
||||
find /Å'#include "'Åsm-Mac.hÅ°/ "{LIBDIR}caml:config.h"
|
||||
catenate ::config:sm-Mac.h > "{LIBDIR}caml:config.h".¤
|
||||
find ¥ "{LIBDIR}caml:config.h"
|
||||
clear -c ° /Å'#include "'Å/ "{LIBDIR}caml:config.h"
|
||||
close -y "{LIBDIR}caml:config.h"
|
||||
open -t "{LIBDIR}caml:memory.h"
|
||||
find ¥ "{LIBDIR}caml:memory.h"
|
||||
clear -c ° /Å'#include "'Å'gc.h'Å/ "{LIBDIR}caml:memory.h"
|
||||
find ¥ "{LIBDIR}caml:memory.h"
|
||||
clear /'#define Alloc_small'/:/¥}/ "{LIBDIR}caml:memory.h"
|
||||
find ¥ "{LIBDIR}caml:memory.h"
|
||||
clear /'#define Modify'/:/¥}/ "{LIBDIR}caml:memory.h"
|
||||
close -y "{LIBDIR}caml:memory.h"
|
||||
duplicate -y ocamlrun "{BINDIR}ocamlrun"
|
||||
duplicate -y libcamlrun.x libcamlrun.o "{LIBDIR}"
|
||||
if "`exists -d "{LIBDIR}caml:"`" == ""
|
||||
newfolder "{LIBDIR}caml:"
|
||||
end
|
||||
duplicate -y mlvalues.h alloc.h misc.h callback.h config.h memory.h ¶
|
||||
"{LIBDIR}caml:"
|
||||
open -t "{LIBDIR}caml:config.h"
|
||||
find ¥ "{LIBDIR}caml:config.h"
|
||||
find /Å'#include "'Åsm-Mac.hÅ°/ "{LIBDIR}caml:config.h"
|
||||
catenate ::config:sm-Mac.h > "{LIBDIR}caml:config.h".¤
|
||||
find ¥ "{LIBDIR}caml:config.h"
|
||||
clear -c ° /Å'#include "'Å/ "{LIBDIR}caml:config.h"
|
||||
close -y "{LIBDIR}caml:config.h"
|
||||
open -t "{LIBDIR}caml:memory.h"
|
||||
find ¥ "{LIBDIR}caml:memory.h"
|
||||
clear -c ° /Å'#include "'Å'gc.h'Å/ "{LIBDIR}caml:memory.h"
|
||||
find ¥ "{LIBDIR}caml:memory.h"
|
||||
clear /'#define Alloc_small'/:/¥}/ "{LIBDIR}caml:memory.h"
|
||||
find ¥ "{LIBDIR}caml:memory.h"
|
||||
clear /'#define Modify'/:/¥}/ "{LIBDIR}caml:memory.h"
|
||||
close -y "{LIBDIR}caml:memory.h"
|
||||
|
||||
clean Ä
|
||||
delete -i Å.[ox] || set status 0
|
||||
delete -i ocamlrun primitives prims.c opnames.h
|
||||
delete -i Å.[ox] || set status 0
|
||||
delete -i ocamlrun primitives prims.c opnames.h
|
||||
|
||||
primitives Ä {PRIMS}
|
||||
streamedit -d -e "/ ([a-z0-9_]+)¨0 *'('Å'* ML *'/ print ¨0" {PRIMS} > primitives
|
||||
streamedit -d -e "/ ([a-z0-9_]+)¨0 *'('Å'* ML *'/ print ¨0" {PRIMS} > primitives
|
||||
|
||||
prims.c Ä primitives
|
||||
echo '#include "mlvalues.h"' > prims.c
|
||||
echo '#include "prims.h"' >> prims.c
|
||||
streamedit -e '1,$ change "extern value " . "();"' primitives >>prims.c
|
||||
echo 'c_primitive cprim [] = {' >> prims.c
|
||||
streamedit -e '1,$ change " " . ","' primitives >> prims.c
|
||||
echo '};' >> prims.c
|
||||
echo 'char * names_of_cprim [] = {' >> prims.c
|
||||
streamedit -e '1,$ change " ¶"" . "¶","' primitives >> prims.c
|
||||
echo '};' >> prims.c
|
||||
echo '#include "mlvalues.h"' > prims.c
|
||||
echo '#include "prims.h"' >> prims.c
|
||||
streamedit -e '1,$ change "extern value " . "();"' primitives >>prims.c
|
||||
echo 'c_primitive cprim [] = {' >> prims.c
|
||||
streamedit -e '1,$ change " " . ","' primitives >> prims.c
|
||||
echo '0 };' >> prims.c
|
||||
echo 'char * names_of_cprim [] = {' >> prims.c
|
||||
streamedit -e '1,$ change " ¶"" . "¶","' primitives >> prims.c
|
||||
echo '0 };' >> prims.c
|
||||
|
||||
opnames.h Ä instruct.h
|
||||
streamedit -e "/¶¶/'*'/ delete" ¶
|
||||
-e "/enum / replace // 'char * names_of_'" ¶
|
||||
-e '/{°/ replace // "[] = {"' ¶
|
||||
-e "1,$ replace /<2F>([A-Z][A-Z_0-9]*)¨0/ '¶"' ¨0 '¶"' -c °" ¶
|
||||
instruct.h > opnames.h
|
||||
streamedit -e "/¶¶/'*'/ delete" ¶
|
||||
-e "/enum / replace // 'char * names_of_'" ¶
|
||||
-e '/{°/ replace // "[] = {"' ¶
|
||||
-e "1,$ replace /<2F>([A-Z][A-Z_0-9]*)¨0/ '¶"' ¨0 '¶"' -c °" ¶
|
||||
instruct.h > opnames.h
|
||||
|
||||
rotatecursor.c.o Ä
|
||||
{C} -b rotatecursor.c -o rotatecursor.c.o {COptions}
|
||||
{C} -b rotatecursor.c -o rotatecursor.c.o {COptions}
|
||||
|
||||
md5.c.x Ä
|
||||
{PPCC} -opt off md5.c -o md5.c.x {PPCCOptions}
|
||||
{PPCC} -opt off md5.c -o md5.c.x {PPCCOptions}
|
||||
|
||||
depend Ä prims.c opnames.h
|
||||
makedepend Å.c > Makefile.Mac.depend
|
||||
makedepend Å.c > Makefile.Mac.depend
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
(* Weak array operations *)
|
||||
|
||||
type 'a t
|
||||
type 'a t;;
|
||||
|
||||
external create: int -> 'a t = "weak_create";;
|
||||
|
||||
|
|
Loading…
Reference in New Issue