#!sh
ROOTDIR=`dirname $0`
OUTDIR=$ROOTDIR/../../obj/OS2/DEBUG
SRCDIR=`dirname $1`
cd $ROOTDIR
#echo ROOTDIR=$ROOTDIR
#echo OUTDIR=$OUTDIR
#echo 1=$1
#set -x
   gcc -c -O3 -o $TMP/compileO3.o -fmessage-length=0 -std=gnu99 -Wundef -Wall -Wmissing-prototypes -pedantic -Wno-long-long \
    -DIN_INNOTEK_LIBC -D_NFILES=20 \
    -I$SRCDIR -I$ROOTDIR/include -I$ROOTDIR/src/include -I$OUTDIR/emx -I$ROOTDIR/src/lib/lgpl/include -DHAVE_CONFIG_H $1 \
&& gcc -c -O3 -o $TMP/compileLg.o -fmessage-length=0 -std=gnu99 -Wundef -Wall -Wmissing-prototypes -pedantic -Wno-long-long \
    -DIN_INNOTEK_LIBC -D_NFILES=20 -DHAVE_CONFIG_H -DDEBUG_LOGGING -D__LIBC_STRICT \
    -I$SRCDIR -I$ROOTDIR/include -I$ROOTDIR/src/include -I$OUTDIR/emx -I$ROOTDIR/src/lib/lgpl/include $1 \
&& echo succesfully built $1
