#!/bin/sh

. config/options

$SCRIPTS/build toolchain

cd $PKG_BUILD

[ $TARGET_ARCH = i386 ] && make CC=$TARGET_CC irserver
[ $TARGET_ARCH = x86_64 ] && make CC=$TARGET_CC irserver64
[ $TARGET_ARCH = arm ] && make CC=$TARGET_CC irserver_arm

$STRIP $1*
