#! /bin/sh

######################################################################
# 
# Sample generic script for compiling offline GC user action libraries
#
# Norm Green
# VMware Inc.
# September 11, 2007
#
######################################################################

osName=`uname`

if [ "$GEMSTONE" = "" ]; then
  echo "Error: GEMSTONE not set"
  exit 1
fi

if [ "$osName" = "SunOS" ]; then
  make -f makefile.solaris
  exit 0
fi

if [ "$osName" = "HP-UX" ]; then
  make -f makefile.hpux
  exit 0
fi

if [ "$osName" = "Linux" ]; then
  make -f makefile.linux
  exit 0
fi

if [ "$osName" = "AIX" ]; then
  make -f makefile.aix
  exit 0
fi

echo "unknown or unsupported operating system: $osName"
exit 1


