# Makevars.win 
# You will probably have to add the directory that contains Eigen/ to the PKG_CPPFLAGS definition, 
# e.g.
#  -IC:/Users/duncan/
# if Eigen is in C:/Users/duncan/
# My Windows configuration doesn't seem to like cygwin style paths for this, i.e. -I/cygdrive/c/Users/duncantl 
# results in a failure for R CMD SHLIB ...


ifndef EIGEN_INC
EIGEN_INC=@EIGEN_INC@
endif

ifndef NIMBLE_INC_DIR
NIMBLE_INC_DIR=TO_BE_FILLED_IN_BY_LOCAL_MAKEVARS
endif

ifndef NIMBLE_LIB_DIR
NIMBLE_LIB_DIR=TO_BE_FILLED_IN_BY_LOCAL_MAKEVARS
endif

ifndef ARCH_SUFFIX
ARCH_SUFFIX=$(patsubst /%,_%, $(R_ARCH))
endif

PKG_CPPFLAGS= -DR_NO_REMAP -I"${NIMBLE_INC_DIR}" -I"${EIGEN_INC_DIR}" -DEIGEN_MPL2_ONLY=1 -Wno-misleading-indentation -Wno-ignored-attributes -Wno-deprecated-declarations -std=c++11
PKG_LIBS=-L"${NIMBLE_LIB_DIR}" -lnimble$(ARCH_SUFFIX) -lRlapack -lRblas

