#!/bin/sh

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

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

cd ./bin

cc $_OPTS $_INCLUDES  -c ../../src/zlib/adler32.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/compress.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/crc32.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/gzio.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/uncompr.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/deflate.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/trees.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/zutil.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/inflate.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/infback.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/inftrees.c
cc $_OPTS $_INCLUDES  -c ../../src/zlib/inffast.c

CC $_INCLUDES -D ZLIB -D LOOKUP_OBJ -D USE_SOCKETS $_OPTS -G -o libjbossInspector.so ../../src/jbossInspector.cc *.o
