From 598cce6dccd7b6350073aec3d235d274e58f40a0 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 14 Jul 2018 08:54:41 +0200 Subject: Guix: added GUIX flag to automate make settings. Added DAG of dependencies --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4a6464f..ee80853 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ # # Unix / Linux LNX (default) # Mac MAC +# GNU Guix GUIX (set to profile) # # Compilation options # static compilation FORCE_STATIC @@ -78,6 +79,12 @@ else else EIGEN_INCLUDE_PATH = /usr/include/eigen3 endif + ifdef GUIX + # Effectively disable paths for GNU Guix + OPENBLAS_INCLUDE_PATH = . + EIGEN_INCLUDE_PATH = $(GUIX)/include/eigen3 + RPATH = -Xlinker --rpath=$(GUIX)/lib + endif endif # -------------------------------------------------------------------- @@ -111,7 +118,7 @@ ifdef WITH_OPENBLAS endif ifdef DEBUG - CPPFLAGS += -g $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -isystem$(EIGEN_INCLUDE_PATH) -Icontrib/catch-1.9.7 -Isrc + CPPFLAGS += -g $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -isystem$(EIGEN_INCLUDE_PATH) -Icontrib/catch-1.9.7 -Isrc $(RPATH) else # release mode CPPFLAGS += -DNDEBUG $(GCC_FLAGS) $(GSL_INCLUDE_PATH) -isystem$(EIGEN_INCLUDE_PATH) -Icontrib/catch-1.9.7 -Isrc -- cgit v1.2.3