mas01mj@698: CFLAGS += -shared -fPIC -g -I$(JDK)/include -I$(JDK)/include/linux -I/usr/local/include/ mas01mj@698: mas01mj@698: .SUFFIXES: .java .class .o mas01mj@698: mas01mj@698: JDK=/usr/lib/jvm/java-6-openjdk mas01mj@698: mas01mj@698: OBJS = libAudioDB_JNI.o mas01mj@698: CLASSES = AudioDB.class mas01mj@698: NATIVE_LIB = libAudioDB_JNI.so mas01mj@698: mas01mj@698: build: $(CLASSES) $(NATIVE_LIB) mas01mj@698: mas01mj@698: .java.class: mas01mj@698: $(JDK)/bin/javac $< mas01mj@698: mas01mj@698: .class.h: mas01mj@698: $(JDK)/bin/javah -jni $(<:%.class=%) mas01mj@698: mas01mj@698: $(NATIVE_LIB): $(OBJS) mas01mj@698: ld -fPIC -G $(OBJS) -laudioDB -o $@ mas01mj@698: