1#!/bin/sh
2
3UHEXEN2_TOP=../..
4. $UHEXEN2_TOP/scripts/cross_defs.w64
5
6if test "$1" = "strip"; then
7	$STRIPPER dhcc.exe
8	exit 0
9fi
10
11HOST_OS=`uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'`
12case "$HOST_OS" in
13freebsd|openbsd|netbsd)
14	MAKE_CMD=gmake ;;
15linux)	MAKE_CMD=make ;;
16*)	MAKE_CMD=make ;;
17esac
18
19if test "$1" = "clean"; then
20	$MAKE_CMD -s clean
21	exit 0
22fi
23
24exec $MAKE_CMD $*
25
26