## The ARMA varaible is used instead of linking to because otherwise stanmath, armadillo, and eignen are included
ARMA=`"$(R_HOME)/bin$(R_ARCH_BIN)/Rscript" -e 'cat(file.path(system.file("", package = "RcppArmadillo"),"include"))'`
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
PKG_CXXFLAGS = -Id -I../inst/include -DBOOST_DISABLE_ASSERTS -I"$(ARMA)"
CXX_STD = CXX11

SOURCES_C = jj.c jj.g.d_parser.c init.c rprintf.c RxODE.c chkSolved.c merge3.c
SOURCES_CPP = neldermead.cpp slice.cpp RcppExportMod.cpp ode_cmt1.cpp RcppExports.cpp focei_fit.cpp focei.cpp resid.cpp
OBJECTS = $(SOURCES_C:.c=.o) $(SOURCES_CPP:.cpp=.o)

all: $(SHLIB)
$(SHLIB): $(OBJECTS)

