#! /bin/sh

######################################################################
#
# $Id: makeit,v 1.1 2007-07-19 04:00:06 normg Exp $
#
# Sample generic script for compiling GCSI sample program
#
# Norm Green
# VMware Inc.
# June 21, 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 "unsupported operating system: $osName"
exit 1
