1# Copyright (C) 2010 Jelmer Ypma. All Rights Reserved.
2# This code is published under the L-GPL.
3#
4# File:   Makevars.win
5# Author: Jelmer Ypma
6# Date:   18 August 2010
7#
8# 09 June 2011: Windows support added thanks to Stefan Theussl and Uwe Ligges.
9#               NLOPT_HOME is the directory where a working installation of
10#               NLopt is located (within subdirectories NLOPT_VERSION/R_ARCH)
11# 18 November 2011: Removed NLOPT_VERSION macro and adopted some other changes
12#                   proposed by Brian Ripley to make nloptr work with his new toolchain.
13#                   NLopt should now be located in NLOPT_HOME/R_ARCH (i.e. without
14#                   version number)
15# 19 February 2013: NLopt is compiled with --with-cxx option, in order to include
16#                   the StoGo algorithm. This means that we now need to link to
17#                   with -lnlopt_cxx and also link to the c++ library, -lstdc++.
18# 7 November 2013: Changed PKG_CPPFLAGS to PKG_CFLAGS.
19# 2 May 2014: Added quotes around include paths to allow for spaces in NLOPT_HOME.
20
21# C Compiler options
22PKG_CFLAGS = -I"$(NLOPT_HOME)$(R_ARCH)/include"
23PKG_LIBS = -L"$(NLOPT_HOME)$(R_ARCH)/lib" -lnlopt_cxx
24