aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--tests/Makefile4
2 files changed, 8 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
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))