In more recent versions of the JDK, the javah tool has been dropped. The
same job can be accomplished by passing a -h option to javac, telling it
where to put the header files javah would have generated.
Change-Id: Ibc543d5fa222848458f45b1945f8050b85b77ca2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27210
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
AR=$(CROSS_COMPILE)ar
JC=javac
-JH=javah
JR=jar
### JDK_PATH must be set to build gem5OpJni
#JDK_PATH=/path/to/jdk/version_number
$(CC) --shared -o lib$@.so $(JNI_OBJS)
gem5OpJni.jar:
- $(JC) jni/gem5Op.java; \
- $(JH) jni.gem5Op; \
+ $(JC) jni/gem5Op.java -h .; \
$(JR) cvf $@ jni/*.class
lua_gem5Op.o: lua_gem5Op.c
AR=$(CROSS_COMPILE)ar
JC=javac
-JH=javah
JR=jar
### JDK_PATH must be set to build gem5OpJni
#JDK_PATH=/path/to/jdk/version_number
$(CC) --shared -o lib$@.so $(JNI_OBJS)
gem5OpJni.jar:
- $(JC) jni/gem5Op.java; \
- $(JH) jni.gem5Op; \
+ $(JC) jni/gem5Op.java -h .; \
$(JR) cvf $@ jni/*.class
lua_gem5Op.o: lua_gem5Op.c