#!/bin/sh

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

_INCLUDES="-I"$JAVA_HOME/include" -I"$JAVA_HOME/include/win32" -I../../src/zlib"
_OPTS="-mno-cygwin -pg"

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


gcc $_INCLUDES -D ZLIB -D WINDOWS -D _WINDOWS $_OPTS -shared -Wl,-add-stdcall-alias -o jbossAgent.dll *.o

