#!/bin/sh

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

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

#gcc -G -o libjbossAgent.so $_INCLUDES -shared *.o 
g++  -O0 -bundle  $_INCLUDES -o libjbossAgent.jnilib *.o 

