ocaml/build/boot-c-parts-windows.sh

30 lines
725 B
Bash
Raw Normal View History

#!/bin/sh
cd `dirname $0`/..
set -ex
source config/config.sh
(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