CXX_STD = CXX11
PKG_LIBS += $(shell ${R_HOME}/bin/Rscript \
              -e "RcppParallel::RcppParallelLibs()")

PKG_CPPFLAGS += -I../inst/include
# path for the direct includes in TRNG sources from version 4.22 onwards
PKG_CPPFLAGS += -I../inst/include/trng

OBJECTS = $(shell ${R_HOME}/bin/Rscript \
            -e "cat(sub('cc$$|cpp$$', 'o', list.files('.', '[.](cc|cpp)$$', recursive = TRUE, full.names = TRUE)))")
