Mercurial > hg > audiodb
diff bindings/java/Makefile @ 698:10d3692e0b06
* Initial commit of Java bindings.
* Currently supports creation of db. More to come!
author | mas01mj |
---|---|
date | Mon, 26 Apr 2010 17:17:07 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bindings/java/Makefile Mon Apr 26 17:17:07 2010 +0000 @@ -0,0 +1,21 @@ +CFLAGS += -shared -fPIC -g -I$(JDK)/include -I$(JDK)/include/linux -I/usr/local/include/ + +.SUFFIXES: .java .class .o + +JDK=/usr/lib/jvm/java-6-openjdk + +OBJS = libAudioDB_JNI.o +CLASSES = AudioDB.class +NATIVE_LIB = libAudioDB_JNI.so + +build: $(CLASSES) $(NATIVE_LIB) + +.java.class: + $(JDK)/bin/javac $< + +.class.h: + $(JDK)/bin/javah -jni $(<:%.class=%) + +$(NATIVE_LIB): $(OBJS) + ld -fPIC -G $(OBJS) -laudioDB -o $@ +