From: Mike Schonberg <mschonberg@...>
The news and orderbook examples were not building because the linker could not
find libmama. This patch adjusts the link flags to include the path to the mama
c libraries.
Signed-off-by: Mike Schonberg <mschonberg@...>
---
mamda/c_cpp/src/examples/news/Makefile.am | 1 +
mamda/c_cpp/src/examples/orderbooks/Makefile.am | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/mamda/c_cpp/src/examples/news/Makefile.am b/mamda/c_cpp/src/examples/news/Makefile.am
index 5cf0964..751cedf 100644
--- a/mamda/c_cpp/src/examples/news/Makefile.am
+++ b/mamda/c_cpp/src/examples/news/Makefile.am
@@ -33,6 +33,7 @@ CPPFLAGS +=-I$(srcdir)/../../cpp \
LDFLAGS += -L${srcdir}/../../cpp \
-L$(srcdir)/../../cpp/news \
+ -L$(srcdir)/../../../../../mama/c_cpp/src/c \
-L$(srcdir)/../../../../../mama/c_cpp/src/cpp
LIBS += -lmamdanews -lmamda -lmamacpp -lmama -lpthread -lnsl -ldl -lm
diff --git a/mamda/c_cpp/src/examples/orderbooks/Makefile.am b/mamda/c_cpp/src/examples/orderbooks/Makefile.am
index 92568b1..36685d6 100644
--- a/mamda/c_cpp/src/examples/orderbooks/Makefile.am
+++ b/mamda/c_cpp/src/examples/orderbooks/Makefile.am
@@ -35,6 +35,7 @@ CPPFLAGS += -I$(srcdir)/../../cpp \
LDFLAGS += -L${srcdir}/../../cpp \
-L$(srcdir)/../../cpp/orderbooks \
+ -L$(srcdir)/../../../../../mama/c_cpp/src/c \
-L$(srcdir)/../../../../../mama/c_cpp/src/cpp
if USE_GCC_FLAGS
--
1.7.7.6