annotate bindings/java/Makefile @ 770:c54bc2ffbf92 tip

update tags
author convert-repo
date Fri, 16 Dec 2011 11:34:01 +0000
parents 10d3692e0b06
children
rev   line source
mas01mj@698 1 CFLAGS += -shared -fPIC -g -I$(JDK)/include -I$(JDK)/include/linux -I/usr/local/include/
mas01mj@698 2
mas01mj@698 3 .SUFFIXES: .java .class .o
mas01mj@698 4
mas01mj@698 5 JDK=/usr/lib/jvm/java-6-openjdk
mas01mj@698 6
mas01mj@698 7 OBJS = libAudioDB_JNI.o
mas01mj@698 8 CLASSES = AudioDB.class
mas01mj@698 9 NATIVE_LIB = libAudioDB_JNI.so
mas01mj@698 10
mas01mj@698 11 build: $(CLASSES) $(NATIVE_LIB)
mas01mj@698 12
mas01mj@698 13 .java.class:
mas01mj@698 14 $(JDK)/bin/javac $<
mas01mj@698 15
mas01mj@698 16 .class.h:
mas01mj@698 17 $(JDK)/bin/javah -jni $(<:%.class=%)
mas01mj@698 18
mas01mj@698 19 $(NATIVE_LIB): $(OBJS)
mas01mj@698 20 ld -fPIC -G $(OBJS) -laudioDB -o $@
mas01mj@698 21