#!/bin/sh
#
# Please copy this script to the directory containing your cpp-file
# (dynamical system file) and execute it in order to get the needed
# system dll.
#

SYSTEMNAME=`basename $1 .cpp`;
if test "x$1" = "x" ; then
  echo ""
  echo "   usage: build_system_dll <name_of_your_cpp_file>"
  echo ""
else
  echo ""
    g++ -shared -mno-cygwin -mms-bitfields $SYSTEMNAME.cpp \
	-I"$ANT_TOPDIR/include/AnT/engine" \
        -L"$ANT_TOPDIR/bin" -lAnT -o $SYSTEMNAME.dll \
        && echo "" && echo " ... $SYSTEMNAME.dll successfully built!"
fi
exit 0

