#!/bin/sh

# OS determination
if [ x$1 != x ]; then
UNAME=$1
else
UNAME=`uname`
fi

case ${UNAME} in
FreeBSD | OpenBSD | NetBSD | DragonFly | BSD)
	cat Makefile.BSD > Makefile
	echo "${UNAME} system detected, Makefile created."
	echo "Use make or make dl to build."
	;;
Darwin | MacOSX | Linux | SunOS | GNU)
	cat Makefile.GNU > Makefile
	echo "${UNAME} system detected, Makefile created."
	echo "Use make or make dl to build."
	;;
*)
	echo "ERROR: Unknown system: ${UNAME}."
	exit 1
	;;
esac

