#needs to wrap in $(shell) to strip the quotes returned by rhdf5lib::pkgconfig
RHDF5_LIBS= $(shell "${R_HOME}/bin/Rscript" -e "Rhdf5lib::pkgconfig('PKG_CXX_LIBS')")
CXX_STD = CXX11
PKG_LIBS=$(RHDF5_LIBS)

USERDIR = ${R_PACKAGE_DIR}/lib${R_ARCH}
USERLIB = ${USERDIR}/libncdfFlow.a

 
all:  $(SHLIB)

$(SHLIB): $(USERLIB)

#expose static lib for other package to link to 
$(USERLIB): $(OBJECTS)
	mkdir -p "${USERDIR}"
	$(AR) rs "${USERLIB}" $(OBJECTS)








