# DARMA_OPENMP_THREADS is a natural number between 1 and the number of cores
PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -DARMA_OPENMP_THREADS=1
# Use R's Make variables for LAPACK/BLAS: resolves to the rtools static libs on
# rtools42+ (R >= 4.2) and to R's bundled DLLs on rtools40 (R 4.1)
PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

# Debugging

# uncomment one of the following lines to enable debugging
# PKG_CPPFLAGS = -UDEBUG -g
# PKG_CPPFLAGS = -UDEBUG -g -I vendor/

# uncomment to disable compiler optimizations
# PKG_CXXFLAGS = -Wall -O0 -pedantic
