aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2017-02-21 18:46:45 -0500
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2017-02-21 18:46:45 -0500
commit5bffb29454d37bb5d46e063aa3ecd04fad9e4232 (patch)
treea9e6b011a609d55718f6609f018d78da16236e36 /Makefile
parentExplicitly specify void argument to functions which take (diff)
downloadgensvm-5bffb29454d37bb5d46e063aa3ecd04fad9e4232.tar.gz
gensvm-5bffb29454d37bb5d46e063aa3ecd04fad9e4232.zip
Allow overriding of atlas usage from environment variable
Use as: $ NOATLAS=true make
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fb6421c..42f6451 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,11 @@ OBJ=$(patsubst %.c,%.o,$(SRC))
all: lib/libgensvm.a $(EXECS)
+ifdef NOATLAS
+override LDFLAGS+=-lcblas -llapack -lm
+else
override LDFLAGS+=-lcblas -llapack -lm -latlas
+endif
debug: CFLAGS += -DDEBUG
debug: all