CXX_STD = CXX17
RHDF5_LIBS= $(shell "${R_HOME}/bin/Rscript" -e "Rhdf5lib::pkgconfig('PKG_CXX_LIBS')")
PKG_LIBS += `"${R_HOME}/bin/Rscript" -e "cytolib:::cytolib_LdFlags();cat(' ');RProtoBufLib:::LdFlags()"` ${RHDF5_LIBS} $(LAPACK_LIBS) $(BLAS_LIBS) -lstdc++fs

.PHONY: all clean 

all: $(SHLIB) 
	if [ `uname -s` = 'Darwin' ]; then install_name_tool -change /usr/local/clang4/lib/libc++.1.dylib /usr/lib/libc++.1.dylib $(SHLIB); fi


clean:
	rm -f $(OBJECTS) $(SHLIB)
