Debian Codegraph @

src/Makevars

raw
1 ## Use the R_HOME indirection to support installations of multiple R version
2 ## PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
3 PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SHLIB_OPENMP_CXXFLAGS)
4 PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
5
6 ## As an alternative, one can also add this code in a file 'configure'
7 ##
8 ## PKG_LIBS=`${R_HOME}/bin/Rscript -e "Rcpp:::LdFlags()"`
9 ##
10 ## sed -e "s|@PKG_LIBS@|${PKG_LIBS}|" \
11 ## src/Makevars.in > src/Makevars
12 ##
13 ## which together with the following file 'src/Makevars.in'
14 ##
15 ## PKG_LIBS = @PKG_LIBS@
16 ##
17 ## can be used to create src/Makevars dynamically. This scheme is more
18 ## powerful and can be expanded to also check for and link with other
19 ## libraries. It should be complemented by a file 'cleanup'
20 ##
21 ## rm src/Makevars
22 ##
23 ## which removes the autogenerated file src/Makevars.
24 ##
25 ## Of course, autoconf can also be used to write configure files. This is
26 ## done by a number of packages, but recommended only for more advanced users
27 ## comfortable with autoconf and its related tools.
28
29