[PATCH] [MAMAC/MAMACPP/MAMDACPP] Update Makefile.sample to add ICC Support


Adrienne Ambrose <AAmbrose@...>
 

TESTING -

To test this simply try taking a new build and in the <install>/examples/mama/c try setting a different compiler in your environment and then try recompiling something like mamalistenc. 
To use a different compiler you can simply export either CC or CXX to the compiler that you wish to use.

 

 

From 6df71627d52946f0ecce1fb362f8b16f6dc15e25 Mon Sep 17 00:00:00 2001

From: A Ambrose <aambrose@...>

Date: Mon, 12 May 2014 12:15:33 +0100

Subject: [PATCH] Update Makefile.samples to add ICC support [OMAMA-255]

 

Signed-off-by: A Ambrose <aambrose@...>

---

mama/c_cpp/src/examples/c/Makefile.sample           | 8 ++++++--

mama/c_cpp/src/examples/cpp/Makefile.sample         | 8 ++++++--

mamda/c_cpp/src/examples/Makefile.sample            | 8 ++++++--

mamda/c_cpp/src/examples/orderbooks/Makefile.sample | 8 ++++++--

4 files changed, 24 insertions(+), 8 deletions(-)

 

diff --git a/mama/c_cpp/src/examples/c/Makefile.sample b/mama/c_cpp/src/examples/c/Makefile.sample

index 6f2507d..8f1f8cd 100644

--- a/mama/c_cpp/src/examples/c/Makefile.sample

+++ b/mama/c_cpp/src/examples/c/Makefile.sample

@@ -22,8 +22,12 @@ API_HOME=../../../

#BDYNAMIC = -Bdynamic

 # GNU compiler:

-CXX      = g++

-CC       = gcc

+ifneq (,$(CXX))

+  CXX = g++

+endif

+ifneq (,$(CC))

+  CC = gcc

+endif

BSTATIC  = -Xlinker -Bstatic

BDYNAMIC = -Xlinker -Bdynamic

diff --git a/mama/c_cpp/src/examples/cpp/Makefile.sample b/mama/c_cpp/src/examples/cpp/Makefile.sample

index 28ab530..d7208b5 100644

--- a/mama/c_cpp/src/examples/cpp/Makefile.sample

+++ b/mama/c_cpp/src/examples/cpp/Makefile.sample

@@ -43,8 +43,12 @@ API_HOME=../../../

#BDYNAMIC = -Bdynamic

 # GNU compiler:

-CXX      = g++

-CC       = gcc

+ifneq (,$(CXX))

+  CXX = g++

+endif

+ifneq (,$(CC))

+  CC = gcc

+endif

BSTATIC  = -Xlinker -Bstatic

BDYNAMIC = -Xlinker -Bdynamic

diff --git a/mamda/c_cpp/src/examples/Makefile.sample b/mamda/c_cpp/src/examples/Makefile.sample

index 997c741..ed809b6 100644

--- a/mamda/c_cpp/src/examples/Makefile.sample

+++ b/mamda/c_cpp/src/examples/Makefile.sample

@@ -17,8 +17,12 @@ API_HOME=/home/wombat/apis

#BDYNAMIC = -Bdynamic

 # GNU compiler:

-CXX      = g++

-CC       = gcc

+ifneq (,$(CXX))

+  CXX = g++

+endif

+ifneq (,$(CC))

+  CC = gcc

+endif

BSTATIC  = -Xlinker -Bstatic

BDYNAMIC = -Xlinker -Bdynamic

diff --git a/mamda/c_cpp/src/examples/orderbooks/Makefile.sample b/mamda/c_cpp/src/examples/orderbooks/Makefile.sample

index d6591d4..dccbefd 100644

--- a/mamda/c_cpp/src/examples/orderbooks/Makefile.sample

+++ b/mamda/c_cpp/src/examples/orderbooks/Makefile.sample

@@ -19,8 +19,12 @@ API_HOME=/home/wombat/apis

#BDYNAMIC = -Bdynamic

 # GNU compiler:

-CXX      = g++

-CC       = gcc

+ifneq (,$(CXX))

+  CXX = g++

+endif

+ifneq (,$(CC))

+  CC = gcc

+endif

BSTATIC  = -Xlinker -Bstatic

BDYNAMIC = -Xlinker -Bdynamic

--

1.8.3.1

 


This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of IntercontinentalExchange Group, Inc. (ICE), NYSE Euronext or any of their subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.

Join {Openmama-dev@lists.openmama.org to automatically receive all group messages.