#Gentoo:
#JDKINCLUDE="-I/usr/lib/jvm/java/include/ -I/usr/lib/jvm/java/include/linux/"
#Ubuntu:
#JDKINCLUDE="-I/usr/lib/jvm/java-6-sun/include/ -I/usr/lib/jvm/java-6-sun/include/linux"
#local:
JDKINCLUDE="-I../include"

g++ $JDKINCLUDE -fPIC -O2 -Wall -c -fmessage-length=0 -oDVBCANativeLinuxZap.o DVBCANativeLinuxZap.cpp
gcc $JDKINCLUDE -I. -fPIC -O2 -Wall -c -fmessage-length=0 -ozap_ca.o zap_ca.c
g++ $JDKINCLUDE -I. -fPIC -O2 -Wall -c -fmessage-length=0 -opoll.o poll.cpp
g++ -L/usr/lib/ -shared -olibzeipisdvbca.so  ./DVBCANativeLinuxZap.o ./zap_ca.o ./poll.o -ldvben50221 -lucsi -ldvbapi -lpthread

g++ -I. -fPIC -O2 -Wall -c -ozap.o zap.cpp
g++ -L/usr/lib/ -oca ./zap_ca.o ./poll.o ./zap.o -ldvben50221 -lucsi -ldvbapi -lpthread
