aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPjotr Prins2018-07-14 08:54:41 +0200
committerPjotr Prins2018-07-14 08:54:41 +0200
commit598cce6dccd7b6350073aec3d235d274e58f40a0 (patch)
tree16f8ec0ab49db716385feb5f49a1bac343835fbd /Makefile
parent793bde538c2ea63a4783f68d5f7ec0a324baf187 (diff)
downloadpangemma-598cce6dccd7b6350073aec3d235d274e58f40a0.tar.gz
Guix: added GUIX flag to automate make settings. Added DAG of dependencies
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
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