view bindings/java/Makefile @ 719:e3f1cf653c30

wooo! direct insert works! at least for the rather limited cases I've tests. Bad news is that I seem to have found a rather nasty bug in the query code I wrote back in september. (segfaults around line 471 if the query returns no results...)
author map01bf
date Fri, 25 Jun 2010 09:08:56 +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 $@