aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_R/Makevars37
1 files changed, 33 insertions, 4 deletions
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: #