#!/bin/bash
if [ "$GNUSTEP_SYSTEM_ROOT" = "" ]; then
  echo "$GNUSTEP_SYSTEM_ROOT is not set. Please run the script in the GNUstep"
  echo "Makefiles directory (eg . c:/GNUstep/System/Makefiles/GNUstep.sh)"
  echo "and try again."
  exit
fi

# Configure
LD=`which ld` RANLIB=/usr/bin/ranlib ./configure --target=i386-mingw32 --prefix=`cygpath -u $GNUSTEP_SYSTEM_ROOT`

# Compile
make
make install

echo done
