From a1cae02bc62500bd50693e2cc90c3b97c3dcce13 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 18 Sep 2018 11:18:46 +0000 Subject: Fix Travis build again --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0ee34eb..4214dfb 100644 --- a/Makefile +++ b/Makefile @@ -79,8 +79,9 @@ ifeq ($(SYS), WIN) EIGEN_INCLUDE_PATH = ../eigen-git-mirror OPENBLAS_INCLUDE_PATH = ../OpenBLAS-v0.2.19-Win64-int32/include -L../OpenBLAS-v0.2.19-Win64-int32/lib else - # used by Travis: - OPENBLAS_INCLUDE_PATH = /usr/local/opt/openblas/include + ifdef TRAVIS_CI + OPENBLAS_INCLUDE_PATH = /usr/local/opt/openblas/include + endif ifeq ($(SYS), MAC) EIGEN_INCLUDE_PATH = /usr/local/include/eigen3 else @@ -172,6 +173,7 @@ else endif endif + .PHONY: all OUTPUT = $(BIN_DIR)/gemma @@ -188,6 +190,9 @@ LIBS_MAC_D_LAPACK = -framework Accelerate ifdef WITH_LAPACK ifeq ($(SYS), MAC) LIBS += $(LIBS_MAC_D_LAPACK) + ifdef WITH_OPENBLAS + LIBS += -Wl,-L/usr/local/opt/openblas/lib + endif else ifndef FORCE_STATIC ifdef WITH_OPENBLAS -- cgit v1.2.3