# we need to add JNI specific stuff here
PKG_CPPFLAGS=-I. @JAVA_CPPFLAGS@
PKG_LIBS=@JAVA_LIBS@
JAVA_HOME=@JAVA_HOME@
# make SHLIB believe that we know better what the objects are
#OBJECTS=Rglue.o callJNI.o initJNI.o rJava.o jri.o jri_glue.o

all: $(SHLIB) @WANT_JRI_TRUE@ jri

.PHONY: all

# this is a hack to force SHLIB to run our sub-make
jri:
	(cd ../jri && $(MAKE))
	-@mkdir -p ../inst/jri
	@(cp -r ../jri/src/JRI.jar ../jri/*jri.* ../jri/run ../jri/examples ../inst/jri/)

