#! /bin/sh
. "$1"
# /usr/bin/sed on solaris does not understand \+ 
case "$DLLDFLAGS" in
  *LIBPARI_SONAME*)
	mydlldflags=`echo "$DLLDFLAGS" | sed -e 's/-[^ \t][^ \t]*[= \t][ \t]*\$(LIBPARI_SONAME)//'`;;
  *)
	mydlldflags=`echo "$DLLDFLAGS" | sed -e 's/-[^ \t][^ \t]*[ \t][ \t]*\$@//'`;;
esac

if test "$static" = "n"; then
  LIBS="$LIBS $LDDYN"
fi
myextradlldflags=`eval echo $EXTRADLLDFLAGS`

myincludedir=`echo "$includedir" | sed -e 's/\/pari\/*$//'`
echo "$CC -c -o %s.o $cflags -I$myincludedir %s.c && $DLLD -o %s.$DLSUFFIX $mydlldflags %s.o $myextradlldflags"

