[sdpb] 162/233: Generalized Makefile for Mac OS X users

Tobias Hansen thansen at moszumanska.debian.org
Thu Mar 9 04:06:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository sdpb.

commit 68601ed1af6cf4ff592ce29ceeacad1be815bc67
Author: David Simmons-Duffin <davidsd at gmail.com>
Date:   Tue Mar 10 12:39:54 2015 -0400

    Generalized Makefile for Mac OS X users
---
 Makefile | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 1dbb848..b89181a 100755
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,20 @@
+UNAME := $(shell uname)
+
 ################ Modify these variables ################
 
+ifeq ($(UNAME), Darwin)
+# Mac OS X Defaults, assuming Readme instructions.
+
+GMPINCLUDEDIR   = /usr/local/include
+BOOSTINCLUDEDIR = /usr/local/include/boost
+LIBDIR          = /usr/local/lib
+
+else
+# If you're using Linux or Windows or a nonstandard OS X setup, modify
+# these variables to point to the appropriate places.
+
 # directory containing the header files 'gmp.h' and 'gmpxx.h'
-GMPINCLUDEDIR = /home/dsd/include
+GMPINCLUDEDIR   = /home/dsd/include
 
 # directory containing boost header files, e.g. 'bind.hpp', etc.
 BOOSTINCLUDEDIR = /home/dsd/include/boost
@@ -13,7 +26,9 @@ BOOSTINCLUDEDIR = /home/dsd/include/boost
 # as well as analogous files for 'boost_system',
 # 'boost_serialization', 'boost_timer', 'boost_program_options',
 # 'gmp', and 'gmpxx',
-LIBDIR = /home/dsd/lib
+LIBDIR          = /home/dsd/lib
+
+endif
 
 ################ End of modifications ################
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sdpb.git



More information about the debian-science-commits mailing list