Mercurial > hg > audiodb
view bindings/java/Makefile @ 729:a9978a6d0bb3
* Initial code to handle querying by datum
* Created Datum class (without key var)
* Added toString to Result for quick debug
* Needs plenty of testing!
author | mas01mj |
---|---|
date | Tue, 03 Aug 2010 17:08:54 +0000 |
parents | 10d3692e0b06 |
children |
line wrap: on
line source
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 $@