# Set the C++ standard
CXX_STD = CXX17

# Link agaist lapack and blas
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

# Disable openmp to prevent oversubscription
PKG_CXXFLAGS += -DARMA_DONT_USE_OPENMP 

# Link against RcppParallel
PKG_LIBS += $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")
