#!/bin/sh

_INCLUDES="-I"$JAVA_HOME/include" -I"$JAVA_HOME/include/linux""

g++ -m64 -shared -fpic $_INCLUDES -c ../native-src/jbossAgent.cpp 
g++ -m64 -shared -fpic $_INCLUDES -c ../native-src/jbossAgentJNI.cpp 
g++ -m64 -shared -fpic $_INCLUDES -c ../native-src/jbossAgentUtilities.cpp 

#gcc -G -o libjbossAgent.so $_INCLUDES -shared *.o 
g++ $_INCLUDES -m64 -shared -o libjbossAgent.so *.o 

