[PATCH 46/50] [unit tests] Fixed unit tests build


Michael Schonberg <mschonberg@...>
 

From: Mike Schonberg <mschonberg@nyx.com>


Signed-off-by: Mike Schonberg <mschonberg@nyx.com>
---
mama/c_cpp/src/gunittest/c/Makefile.am | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/mama/c_cpp/src/gunittest/c/Makefile.am b/mama/c_cpp/src/gunittest/c/Makefile.am
index abbfee9..13b5915 100644
--- a/mama/c_cpp/src/gunittest/c/Makefile.am
+++ b/mama/c_cpp/src/gunittest/c/Makefile.am
@@ -29,13 +29,16 @@ CFLAGS += -pedantic -Wno-long-long -O2 -pthread -fPIC
CPPFLAGS += -pedantic -Wno-long-long -O2 -pthread -fPIC
endif

-INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../.. -I$(srcdir)/../../../examples
+INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../.. -I$(srcdir)/../../../examples -I$(srcdir)/../../../../../common/c_cpp/src/c

CFLAGS += -I@builddir@/../../c
CPPFLAGS += -I@builddir@/../../c

-LIBS = -lmama -lwombatcommon -lgtest

+LDFLAGS += -L${srcdir}/../../c \
+ -L${srcdir}/../../../../../common/c_cpp/src/c
+
+LIBS = -lmama -lwombatcommon -lgtest

bin_PROGRAMS = MainUnitTestC

--
1.7.7.6