Added some useful variables to java.make
[nativez] / src / notzed.nativez / jni / jni.make
1
2 notzed.nativez_JNI_LIBRARIES = nativez
3
4 nativez_SOURCES = nativez-jni.c nativez-$(TARGET:-amd64=).c
5 nativez_CPPFLAGS = -I$(notzed.nativez_jnidir)
6 nativez_CFLAGS = -Wmissing-prototypes
7 nativez_HEADERS = nativez.h
8 nativez_DEFS = nativez-jni.def
9
10 nativez_makedep=$(notzed.nativez_objdir)/$(1).o: $(notzed.nativez_jnidir)/$(1).h
11
12 $(foreach def,$(nativez_DEFS),$(eval $(call nativez_makedep,$(def:.def=))))
13
14 $(notzed.nativez_jnidir)/%.h: src/notzed.nativez/jni/%.def src/notzed.nativez/jni/nativez-gen
15         @install -d $(@D)
16         src/notzed.nativez/jni/nativez-gen -J $< > $@ || ( rm $@ ; exit 1)
17
18 # include tool in jmod
19 nativez_COMMANDS=nativez-gen
20 $(notzed.nativez_bindir)/nativez-gen: src/notzed.nativez/jni/nativez-gen
21         install -DC $< $@