ocaml/build/boot-c-parts.sh

23 lines
519 B
Bash
Raw Normal View History

#!/bin/sh
# $Id$
cd `dirname $0`/..
set -ex
# Create a bunch of symlinks to _build/boot
mkdir -p _build/boot
ln -sf ../../byterun/ocamlrun \
../../byterun/libcamlrun.a \
../../asmrun/libasmrun.a \
../../asmrun/libasmrunp.a \
../../yacc/ocamlyacc \
../../boot/ocamlc \
../../boot/ocamllex \
../../boot/ocamldep \
_build/boot
[ -f boot/ocamlrun ] || ln -sf ../byterun/ocamlrun boot
(cd byterun && make)
(cd asmrun && make all meta.o dynlink.o)
(cd yacc && make)