# --builddir $CINTSYSDIR option added to makecint everywhere; D. Barna
# CINTSYSDIR should be set to the actual build directory (done by the upmost Makefile)

if [ "$CINTSYSDIR" = "" ] ; then
  echo CINTSYSDIR should be set to the actual build directory during the compilation of cint
  exit 1
fi

makecint --builddir $CINTSYSDIR -mk Makefile -dl ../../include/sys/ipc.dll -h ipcif.h
make -f Makefile

if test -r ../../include/sys/ipc.dll 
then
  echo
else
  makecint --builddir $CINTSYSDIR -mk Makefile -dl ../../include/sys/ipc.dll -h ipcif.h.old
  make -f Makefile
fi

rm G__* Makefile
