From 184985165432e306eab76bd82179981b0f7481fd Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 25 Jun 2016 17:02:04 +0800 Subject: Update _R/Makevars; add documentation --- _R/Makevars | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) (limited to '_R') diff --git a/_R/Makevars b/_R/Makevars index 1ead97e..1cdde1e 100644 --- a/_R/Makevars +++ b/_R/Makevars @@ -1,4 +1,33 @@ -#CXX=clang++ -CXXFLAGS=-O2 -Wall -Wno-unused-variable -Wno-unused-function -# If g++ >= 4.9 -CXXFLAGS+=-flto -ffat-lto-objects -Wno-unused-local-typedefs +# -*- mode: makefile -*- +# +# ~/.R/Makevars +# +# Reference: +# [1] R Installation and Administration, Sec. 6.3.3 +# https://cran.r-project.org/doc/manuals/r-release/R-admin.html +# [2] Writing R Extensions, Sec. 1.2.1 +# https://cran.r-project.org/doc/manuals/r-release/R-exts.html +# +# +# Aaron LI +# 2016-06-25 +# + +# Override the default compilers +#CC = clang +#CXX = clang++ +#F77 = ??? +#FC = ??? + +# C code +CFLAGS = -O2 -Wall -pedantic + +# C++ code +CXXFLAGS = -O2 -Wall -Wno-unused-variable -Wno-unused-function + +# Fortran code +#FFLAGS = ??? +# Fortran 9x code +#FCFLAGS = ??? + +# vim: set ft=make: # -- cgit v1.2.2