2007-02-07 01:40:59 -08:00
|
|
|
#!/bin/sh
|
2011-07-27 07:17:02 -07:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# OCaml #
|
|
|
|
# #
|
|
|
|
# Nicolas Pouillard, projet Gallium, INRIA Rocquencourt #
|
|
|
|
# #
|
|
|
|
# Copyright 2007 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. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
2007-02-07 01:40:59 -08:00
|
|
|
cd `dirname $0`/..
|
|
|
|
set -ex
|
|
|
|
|
2010-05-11 06:28:31 -07:00
|
|
|
. config/config.sh
|
|
|
|
|
|
|
|
if "$WINDOWS"; then
|
|
|
|
MAKEOPTS='-f Makefile.nt'
|
|
|
|
LINK='cp -f'
|
|
|
|
else
|
|
|
|
MAKEOPTS=''
|
|
|
|
LINK='ln -s -f'
|
|
|
|
fi
|
|
|
|
|
|
|
|
(cd byterun && make $MAKEOPTS)
|
|
|
|
(cd asmrun && make $MAKEOPTS all meta."$O" dynlink."$O")
|
|
|
|
(cd yacc && make $MAKEOPTS)
|
|
|
|
|
|
|
|
if "$WINDOWS"; then
|
|
|
|
(cd win32caml && make)
|
|
|
|
fi
|
|
|
|
|
2007-02-07 01:40:59 -08:00
|
|
|
mkdir -p _build/boot
|
2007-10-08 07:19:34 -07:00
|
|
|
|
2010-05-11 06:28:31 -07:00
|
|
|
# Create a bunch of symlinks (or copies) to _build/boot
|
|
|
|
(cd _build/boot &&
|
|
|
|
$LINK ../../byterun/ocamlrun$EXE \
|
|
|
|
../../byterun/libcamlrun.$A \
|
|
|
|
../../asmrun/libasmrun.$A \
|
|
|
|
../../yacc/ocamlyacc$EXE \
|
|
|
|
../../boot/ocamlc \
|
|
|
|
../../boot/ocamllex \
|
|
|
|
../../boot/ocamldep \
|
|
|
|
. )
|
2007-02-07 01:40:59 -08:00
|
|
|
|
2010-05-11 06:28:31 -07:00
|
|
|
(cd boot &&
|
|
|
|
[ -f boot/ocamlrun$EXE ] || $LINK ../byterun/ocamlrun$EXE . )
|