# CXX_STD = CXX11 # CRAN removed the support for C++11/C++14, and defaults to the latest C++17, this comment stays here to help anyone
PKG_CXXFLAGS += -DSTRICT_R_HEADERS
PKG_LIBS += $(shell "${R_HOME}/bin/Rscript" -e "RcppThread::LdFlags()")

ifneq ($(strip $(MATRIXPROFILER_ENABLE_CUDA)),)
PKG_CXXFLAGS += -DMATRIXPROFILER_ENABLE_CUDA
PKG_LIBS += $(MATRIXPROFILER_CUDA_OBJECT) $(MATRIXPROFILER_CUDA_LIBS)
endif

# use strip -S instead of strip --strip-debug for MacOS compatibility
# strippedLib: $(SHLIB)
#	if test -f "/usr/bin/strip"; then /usr/bin/strip -S $(SHLIB); fi

# .phony: strippedLib
