#!/bin/sh -f

usage()
{
        cat <<EOF
Usage: mico-config [OPTIONS]
Options:
        [--prefix]
        [--version]
	[--target]
	[--build]
	[--host]
	[--cxx]
	[--cxxflags]
	[--picflags]
        [--libs]
	[--cosslibs]
EOF
        exit $1
}

if test $# -eq 0; then
        usage 1 1>&2
fi


for arg
do
  case "$arg" in
  --prefix)
    echo "/usr/pkg"
    ;;
  --version)
    echo "2.3.12"
    ;;
  --target)
    echo "armv6--netbsdelf-eabihf"
    ;;
  --build)
    echo "armv6--netbsdelf-eabihf"
    ;;
  --host)
    echo "armv6--netbsdelf-eabihf"
    ;;
  --cxx)
    echo "c++"
    ;;
  --cxxflags)
    echo "-I/usr/pkg/include -I/usr/pkg/include -O2  -Wall -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -D_REENTRANT -D_THREAD_SAFE  "
    ;;
  --picflags)
    echo "-fPIC"
    ;;
  --libs)
    echo " -L/usr/pkg/lib -lmico2.3.12 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib  -lssl -lcrypto -lelf -lm  -lpthread"
    ;;
  --cosslibs)
    echo " -L/usr/pkg/lib -lmicocoss2.3.12 -lmico2.3.12 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib  -lssl -lcrypto -lelf -lm  -lpthread"
    ;;
  --help)
    usage
    ;;
  esac
done
