[PATCH 1/3] [mama] Makefile fixes


Ian Bell <IBell@...>
 

From 332a4a960eb7292e9545e9f2856f1212848cfd8b Mon Sep 17 00:00:00 2001

Message-Id: <332a4a960eb7292e9545e9f2856f1212848cfd8b.1348734020.git.ibell@...>

From: Ian Bell <ibell@...>

Date: Thu, 27 Sep 2012 09:16:21 +0100

Subject: [PATCH 1/3] [mama] Makefile fixes

 

Tighened up example makefile and fixed sample makefile

 

Signed-off-by: Ian Bell <ibell@...>

---

mama/c_cpp/src/examples/c/Makefile.am     |    4 ++--

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

2 files changed, 3 insertions(+), 3 deletions(-)

 

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

index 5480da2..e348415 100644

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

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

@@ -28,8 +28,8 @@ CFLAGS   += -I$(srcdir)/../../c \

             -I${srcdir}/../../../../../common/c_cpp/src/c

 if USE_GCC_FLAGS

-CFLAGS   += -Wmissing-prototypes -Wstrict-prototypes

-CPPFLAGS += -pedantic -Wall -Wimplicit -Wno-long-long -D_GNU_SOURCE

+CFLAGS   += -std=gnu99 -pedantic-errors -Wmissing-prototypes -Wstrict-prototypes

+CPPFLAGS += -pedantic-errors -Wall -Wimplicit -Wno-long-long -D_GNU_SOURCE

endif

 LDFLAGS  += -L${srcdir}/../../c \

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

index 513fcb0..6f2507d 100644

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

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

@@ -39,7 +39,7 @@ LDFLAGS      = -rdynamic \

 

 MAMA_LIBS    = $(BDYNAMIC) -lmama \

-               $(BDYNAMIC) $($(API_PLATFORM)_libs) -lrt -lpthread -lm

+               $(BDYNAMIC) $($(API_PLATFORM)_libs) -lrt -lpthread -lm -ldl

 # Targets:

--

1.7.9.5

 




Please consider the environment before printing this e-mail.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy.

Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.