From 5bffb29454d37bb5d46e063aa3ecd04fad9e4232 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 21 Feb 2017 18:46:45 -0500 Subject: Allow overriding of atlas usage from environment variable Use as: $ NOATLAS=true make --- Makefile | 4 ++++ tests/Makefile | 4 ++++ 2 files changed, 8 insertions(+) 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 diff --git a/tests/Makefile b/tests/Makefile index febe7be..15f5575 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -3,7 +3,11 @@ CFLAGS=-Wall -g -rdynamic -DNDEBUG $(OPTFLAGS) INCLUDE=-I../include/ -I./include LIB=-L../lib +ifdef NOATLAS +override LDFLAGS+=-lm -lcblas -llapack -lgensvm +else override LDFLAGS+=-lm -lcblas -llapack -latlas -lgensvm +endif TEST_SRC=$(wildcard src/test_*.c) TESTS=$(patsubst src/%.c,bin/%,$(TEST_SRC)) -- cgit v1.2.3