aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-02-18 13:48:23 -0800
committerGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-02-18 13:48:23 -0800
commite359002ec43bca5a0a53304ab7eeda084fc4e6d3 (patch)
tree19439f301f83d09cd9bf3419d02e819347d1bc26
parentbefd64eace7ebfba2aefca24cf023c9979ff83cf (diff)
parent7cc2c309f3615a365a0ce0f19d8dac1a42b34c4c (diff)
Merge pull request #576 from vjpai/mac
Mac-specific Makefile inclusions and installation instructions
-rw-r--r--INSTALL38
-rw-r--r--Makefile2
-rw-r--r--templates/Makefile.template2
3 files changed, 42 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index d2f08ec677..f1e7aa7bf4 100644
--- a/INSTALL
+++ b/INSTALL
@@ -95,6 +95,44 @@ will need clang and its instrumented libc++:
# apt-get install clang libc++-dev
+Mac-specific notes:
+-------------------
+
+For a Mac system, git is not available by default. You will first need to
+install Xcode from the Mac AppStore and then run the following command from a
+terminal:
+
+ $ sudo xcode-select --install
+
+You should also install "port" following the instructions at
+https://www.macports.org . This will reside in /opt/local/bin/port for
+most Mac installations. Do the "git submodule" command listed above.
+
+Then execute the following for all the needed build dependencies
+
+ $ sudo /opt/local/bin/port install autoconf automake libtool gflags cmake
+ $ mkdir ~/gtest
+ $ svn checkout http://googletest.googlecode.com/svn/trunk/ gtest-svn
+ $ mkdir mybuild
+ $ cd mybuild
+ $ cmake ../gtest-svn
+ $ make
+ $ make gtest.a gtest_main.a
+ $ sudo cp libgtest.a libgtest_main.a /opt/local/lib
+ $ sudo mkdir /opt/local/include/gtest
+ $ sudo cp -pr ../gtest-svn/include/gtest /opt/local/include/gtest
+
+We will also need to make openssl and install it appropriately
+
+ $ cd <git directory>
+ $ cd third_party/openssl
+ $ sudo make install
+ $ cd ../../
+
+If you are going to make changes and need to regenerate the projects file,
+you will need to install certain modules for python.
+
+ $ sudo easy_install simplejson mako
A word on OpenSSL
-----------------
diff --git a/Makefile b/Makefile
index e45b128dbe..92def36f50 100644
--- a/Makefile
+++ b/Makefile
@@ -177,7 +177,9 @@ LDFLAGS += -g -fPIC
INCLUDES = . include $(GENDIR)
ifeq ($(SYSTEM),Darwin)
+INCLUDES += /usr/local/ssl/include /opt/local/include
LIBS = m z
+LDFLAGS += -L/usr/local/ssl/lib -L/opt/local/lib
else
LIBS = rt m z pthread
LDFLAGS += -pthread
diff --git a/templates/Makefile.template b/templates/Makefile.template
index 3e0f77c014..d107801e08 100644
--- a/templates/Makefile.template
+++ b/templates/Makefile.template
@@ -194,7 +194,9 @@ LDFLAGS += -g -fPIC
INCLUDES = . include $(GENDIR)
ifeq ($(SYSTEM),Darwin)
+INCLUDES += /usr/local/ssl/include /opt/local/include
LIBS = m z
+LDFLAGS += -L/usr/local/ssl/lib -L/opt/local/lib
else
LIBS = rt m z pthread
LDFLAGS += -pthread