#!/bin/sh
#
# make - FieldTalk C++ library build shell script
#
# Note: Build environments and compiler versions are changing frequently.
# If you cannot build this package, please modify this script and report
# the changes to support@focus-sw.com. Thank You.
#
# FOCUS Software Engineering Pty Ltd, Australia. <www.focus-sw.com>
#
# Requires: A supported UNIX version (see platform file)
#


case $1 in
   mbusmaster)
      shift
      ./make.mbusmaster $*
   ;;
   mbusslave)
      shift
      ./make.mbusslave $*
   ;;
   *)
      if (test -f make.mbusmaster && test ! -f make.mbusslave); then
         ./make.mbusmaster $*
         exit 0
      fi
      if (test -f make.mbusslave && test ! -f make.mbusmaster); then
         ./make.mbusslave $*
         exit 0
      fi
      echo ""
      echo "To build the FieldTalk Modbus Master library use:"
      echo "./make mbusmaster"
      echo ""
      echo "To build the FieldTalk Modbus Slave library use:"
      echo "./make mbusslave"
      echo ""
   ;;
esac

