#!/bin/sh

rm -f *.so
rm -f *.dll
rm -f *.o

_INCLUDES="-I$JAVA_HOME/include -I$JAVA_HOME/include/solaris -I../../src/zlib"

g++ $_INCLUDES -D ZLIB $_OPTS -c ../native-src/jbossAgent.cpp
g++ $_INCLUDES -D ZLIB $_OPTS -c ../native-src/jbossAgentJNI.cpp
g++ $_INCLUDES -D ZLIB $_OPTS -c ../native-src/jbossAgentUtilities.cpp

g++ $_INCLUDES -D ZLIB $_OPTS -G -o libjbossAgent.so *.o

