Commit ab9b3f1b authored by rtoy's avatar rtoy
Browse files

FreeBSD patches from Eduardo Munoz:

tools/build.sh:
o If gmake exists, assume it is GNU make and use it instead of make.

tools/create-target.sh:
o Auto-detect FreeBSD and use FreeBSD_gencgc as the default config.
parent de47ca43
......@@ -46,15 +46,20 @@ OLDLISP="cmulisp -noinit"
SKIPUTILS=no
# If gmake exists, assume it is GNU make and use it.
if [ -z "$MAKE" ]; then
MAKE="`which gmake`" || MAKE="make"
fi
usage ()
{
echo "build-l4 [-123obvuC]"
echo "build.sh [-123obvuC]"
echo " -1 Skip build 1"
echo " -2 Skip build 2"
echo " -3 Skip build 3"
echo " -o x Use specified Lisp to build. Default is cmulisp"
echo " (only applicable for build 1)"
echo ' -b d The different build directoris are named ${d}-2, ${d}-3 ${d}-4'
echo ' -b d The different build directories are named ${d}-2, ${d}-3 ${d}-4'
echo ' with a default of "build"'
echo ' -v v Use the given string as the version. Default is'
echo " today's date"
......@@ -78,7 +83,7 @@ buildit ()
then
$TOOLDIR/clean-target.sh $TARGET
$TIMER $TOOLDIR/build-world.sh $TARGET $OLDLISP $BOOT
(cd $TARGET/lisp; make)
(cd $TARGET/lisp; $MAKE)
#$TOOLDIR/build-world.sh $TARGET $OLDLISP
$TOOLDIR/load-world.sh $TARGET "$VERSION"
if [ ! -f $TARGET/lisp/lisp.core ]; then
......
......@@ -29,6 +29,7 @@ if [ $# = 1 ]; then
SunOS) LISP_VARIANT=sun4_solaris_gcc ;;
Linux) LISP_VARIANT=linux_gencgc ;;
Darwin) LISP_VARIANT=ppc_darwin ;;
FreeBSD) LISP_VARIANT=FreeBSD_gencgc ;;
# Please fill in some other common systems
*) echo "Sorry, please specify the desired Lisp variant."
exit 1 ;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment