6. ※参考: Writing R Extentions
http://cran.r-project.org/doc/manuals/R-exts.pdf
の Makevars ファイルに関する説明の抜粋
The most common use of a‘Makevars’file is to set additional preprocessor options (for
example include paths) for C/C++ files via PKG_CPPFLAGS, and additional compiler flags by
setting PKG_CFLAGS, PKG_CXXFLAGS, PKG_FFLAGS or PKG_FCFLAGS, for C, C++, FORTRAN
or Fortran 9x respectively (see Section 5.5 [Creating shared objects], page 101).
NB: Include paths are preprocessor options, not compiler options, and must be set in
PKG_CPPFLAGS as otherwise platform-specific paths (e.g.‘-I/usr/local/include’ will take
)
precedence.
5