#! /bin/sh
arch=$1
osname=$2
. pari/O$osname-$arch/dft.Config.in
if test $version = "2.1" || test $version = "2.0"; then
	mydlldflags=`echo "$DLLDFLAGS" | sed -e 's/-[^ \t]\+[ \t]\+\$@//'`
else
	mydlldflags=`echo "$DLLDFLAGS" | sed -e 's/-[^ \t]\+[ \t]\+\$(LIBPARI_SONAME)//'`
fi
myincludedir=`echo "$includedir" | sed -e 's/\/pari\/\?$//'`
echo "$CC -c $cflags -I$myincludedir %s.c; $DLLD -o %s.$DLSUFFIX $mydlldflags $EXTRADLLDFLAGS %s.o"

