2007-02-07 01:40:59 -08:00
|
|
|
#!/bin/sh
|
|
|
|
cd `dirname $0`/..
|
|
|
|
set -ex
|
|
|
|
|
2007-02-11 23:59:44 -08:00
|
|
|
. config/config.sh
|
2007-02-07 01:40:59 -08:00
|
|
|
|
|
|
|
(cd byterun && make -f Makefile.nt)
|
|
|
|
(cd asmrun && make -f Makefile.nt all meta.$O dynlink.$O)
|
|
|
|
(cd yacc && make -f Makefile.nt)
|
|
|
|
(cd win32caml && make)
|
|
|
|
|
|
|
|
mkdir -p _build/boot
|
|
|
|
cp -f byterun/{ocamlrun.exe,libcamlrun.$A,ocamlrun.dll} \
|
|
|
|
asmrun/libasmrun.$A \
|
|
|
|
yacc/ocamlyacc.exe \
|
|
|
|
boot/ocamlc \
|
|
|
|
boot/ocamllex \
|
|
|
|
boot/ocamldep \
|
|
|
|
_build/boot
|
|
|
|
mkdir -p _build/byterun
|
|
|
|
cp -f byterun/ocamlrun.exe byterun/ocamlrun.dll boot
|
|
|
|
cp -f byterun/ocamlrun.$A _build/byterun
|
|
|
|
mkdir -p _build/stdlib
|
|
|
|
cp -f byterun/libcamlrun.$A \
|
|
|
|
asmrun/libasmrun.$A \
|
|
|
|
_build/stdlib
|
|
|
|
mkdir -p _build/asmrun
|
|
|
|
cp -f asmrun/{meta,dynlink}.$O \
|
|
|
|
_build/asmrun
|