diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-03-09 16:27:26 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-03-09 16:27:26 +0000 |
| commit | 601cff702c33cded7e251a474a38fd03c31b4c71 (patch) | |
| tree | dedc0e46307ce1ea183de22f499841e1703107a6 /tests/Makefile | |
| parent | Minor improvements to readme (diff) | |
| download | gensvm-601cff702c33cded7e251a474a38fd03c31b4c71.tar.gz gensvm-601cff702c33cded7e251a474a38fd03c31b4c71.zip | |
Try to detect the linear algebra package automatically
Diffstat (limited to 'tests/Makefile')
| -rw-r--r-- | tests/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/Makefile b/tests/Makefile index 8d00c35..dc6001a 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -2,11 +2,14 @@ CC=gcc CFLAGS=-Wall -Wno-unused-result -Wsign-compare -g -rdynamic -DNDEBUG $(OPTFLAGS) INCLUDE=-I../include/ -I./include LIB=-L../lib +LDFLAGS+=-lcblas -llapack -lm -lgensvm -ifdef NOATLAS -override LDFLAGS+=-lm -lcblas -llapack -lgensvm +ifneq ($(strip $(shell ldconfig -p | grep libopenblas)),) +override LDFLAGS+=-lopenblas +else ifneq ($(shell ldconfig -p | grep libatlas),) +override LDFLAGS+=-latlas else -override LDFLAGS+=-lm -lcblas -llapack -latlas -lgensvm +$(error No OpenBLAS or ATLAS found, please install either or alter this Makefile) endif TEST_SRC=$(wildcard src/test_*.c) |
