Add a number_of_cores parameter for OpenMP // in Compute_Omega
[morpheus.git] / pkg / src / Makevars
index 79f50e9..ee13498 100644 (file)
@@ -1,9 +1,5 @@
-# Override R weird defaults:
-# https://stackoverflow.com/questions/23414448/r-makevars-file-to-overwrite-r-cmds-default-g-options
+PKG_CFLAGS = $(SHLIB_OPENMP_CFLAGS)
+PKG_LIBS = $(SHLIB_OPENMP_CFLAGS)
 
-%.o: %.c
-       gcc -I/usr/include/R -I/usr/local/include/R -DNDEBUG -fpic -O2 -c $< -o $@
-
-# On u-psud cluster:
 #%.o: %.c
-#      gcc -I"/usr/local/R/3.6.1/lib64/R/include" -I/usr/local/include -DNDEBUG -fpic -O2 -c $< -o $@
+#      $(CC) -std=c11 -I"$(R_INCLUDE_DIR)" -DNDEBUG -fPIC -fopenmp -O2 -c $< -o $@