Explorar o código

Makefile.conf switches behavior based on user

Former-commit-id: c9e304618918ed11d344789eb660fdb0036d660a
jalec %!s(int64=13) %!d(string=hai) anos
pai
achega
f929bd9f0b
Modificáronse 1 ficheiros con 14 adicións e 4 borrados
  1. 14 4
      Makefile.conf

+ 14 - 4
Makefile.conf

@@ -1,9 +1,19 @@
-IGL_WITH_TETGEN=1
-IGL_WITH_MATLAB=1
-IGL_WITH_MOSEK=1
-
 #############################################################################
 # FLAGS 
 #############################################################################
 AFLAGS += -arch x86_64 -m64
 CFLAGS += -Wall
+
+# Default parameters for the IGL group members based on there computer's
+# username
+ifndef IGL_USERNAME
+	IGL_USERNAME := $(shell whoami)
+endif
+ifeq ($(IGL_USERNAME),ajx)
+	IGL_WITH_TETGEN=1
+	IGL_WITH_MATLAB=1
+	IGL_WITH_MOSEK=1
+endif
+ifeq ($(IGL_USERNAME),daniele)
+	IGL_WITH_MATLAB=1
+endif