@ -55,9 +55,9 @@ C_SOURCES=org_pEp_jniadapter_Engine.cc \
org_pEp_jniadapter_AbstractEngine.h
# Old versions of a Java distribution have a `javah` binary, new versions do not. This checks whether or not `javah` can be found in the Java distribution found in the directory `$JAVA_HOME`.
NOT_USED := $( shell type $( JAVA_HOME) /bin/javah)
NOT_USED := $( shell type $( JAVA_HOME) /bin/javah)
i f e q ( $( .SHELLSTATUS ) , 0 )
NEW _JAVA= placeholder
OLD _JAVA= placeholder
e n d i f
JP = $( JAVA_HOME) /bin
@ -75,10 +75,10 @@ $(JAR): $(JAVA_SOURCES)
BLUBB = org_pEp_jniadapter_AbstractEngine.h org_pEp_jniadapter_Engine.h org_pEp_jniadapter_Message.h
$(BLUBB) : org_pEp_jniadapter_ %.h : org /pEp /jniadapter /%.java
i f d e f N E W _ J A V A
$( JP) /javac -h . $<
e l s e
i f d e f O L D _ J A V A
$( JP) /javah $( subst /,.,$( subst .java,,$<) )
e l s e
$( JP) /javac -h . $<
e n d i f
org_pEp_jniadapter_AbstractEngine.o : %.o : %.cc %.h throw_pEp_exception .hh jniutils .hh