
#! /bin/sh

echo "Building HASP Java native library"

rm -f HASPJava.o
rm -f libHASPJava.dylib

gcc -dynamic -fPIC -I../../C -I/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/include/darwin -DSUN_JNI -c -O2 -Wall -o HASPJava.o HASPJava.c
gcc -dynamiclib -single_module -framework CoreFoundation -framework SystemConfiguration -o libHASPJava.dylib HASPJava.o libhasp_darwin_demo.a

