# libcmaes is vendored in src/libcmaes/ (see tools/vendor-libcmaes.sh) and
# compiled directly into the package shared object. Eigen headers come from
# RcppEigen via LinkingTo. LIBCMAES_LOG_TO_R reroutes libcmaes logging to
# Rprintf (see libcmaes/include/libcmaes/llogging.h).
PKG_CPPFLAGS = -Ilibcmaes/include -DLIBCMAES_LOG_TO_R=1

LIBCMAES_OBJECTS = libcmaes/acovarianceupdate.o libcmaes/bipopcmastrategy.o \
  libcmaes/cmaparameters.o libcmaes/cmasolutions.o libcmaes/cmastopcriteria.o \
  libcmaes/cmastrategy.o libcmaes/covarianceupdate.o libcmaes/errstats.o \
  libcmaes/esostrategy.o libcmaes/ipopcmastrategy.o \
  libcmaes/pwq_bound_strategy.o libcmaes/vdcmaupdate.o

OBJECTS = cmaes_wrap.o init.o rc_helpers.o $(LIBCMAES_OBJECTS)
