#!/bin/ksh
echo 'START COMPILATION OF DEMOS...'

g++ $DEVOPT -DOS_LINUX -o createDb.exe createDb.cpp -I$ORIENT_DEV/include $ORIENT_DEV/lib/linux/ojust_linux_st.a business.a
g++ $DEVOPT -DOS_LINUX -o writeCustomer.exe writeCustomer.cpp -I$ORIENT_DEV/include $ORIENT_DEV/lib/linux/ojust_linux_st.a business.a
g++ $DEVOPT -DOS_LINUX -o selectCustomer.exe selectCustomer.cpp -I$ORIENT_DEV/include $ORIENT_DEV/lib/linux/ojust_linux_st.a business.a
g++ $DEVOPT -DOS_LINUX -o countCustomer.exe countCustomer.cpp -I$ORIENT_DEV/include $ORIENT_DEV/lib/linux/ojust_linux_st.a business.a
g++ $DEVOPT -DOS_LINUX -o writeInvoice.exe writeInvoice.cpp -I$ORIENT_DEV/include $ORIENT_DEV/lib/linux/ojust_linux_st.a business.a
g++ $DEVOPT -DOS_LINUX -o selectInvoice.exe selectInvoice.cpp -I$ORIENT_DEV/include $ORIENT_DEV/lib/linux/ojust_linux_st.a business.a
g++ $DEVOPT -DOS_LINUX -o selectAllInvoice.exe selectAllInvoice.cpp -I$ORIENT_DEV/include $ORIENT_DEV/lib/linux/ojust_linux_st.a business.a

g++ $DEVOPT -DOS_LINUX -DOMT -o writeCustomer_mt.exe writeCustomer_mt.cpp -I$ORIENT_DEV/include $ORIENT_DEV/lib/linux/ojust_linux_mt.a business.a -pthread -D_REENTRANT
g++ $DEVOPT -DOS_LINUX -DOMT -o selectCustomer_mt.exe selectCustomer_mt.cpp -I$ORIENT_DEV/include $ORIENT_DEV/lib/linux/ojust_linux_mt.a business.a -pthread -D_REENTRANT

echo 'OK.'
