diff options
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | tests/Makefile | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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)) |
