#!/bin/sh

platform=`uname`

if [ "$platform" = "Linux" ]
then
  if [ -f Makefile ]; then rm -f Makefile; fi
  ln -s Makefile.linux Makefile
elif [ "$platform" = "Darwin" ]
then
  if [ -f Makefile ]; then rm -f Makefile; fi
  ln -s Makefile.osx Makefile
elif [ "$platform" = "SunOS" ]
then
  if [ -f Makefile ]; then rm -f Makefile; fi
  ln -s Makefile.solaris Makefile
else
  echo "Unknown platform '$platform' - expected Linux, Darwin, or SunOS!"
fi

 
