From f71389d39b73c7e7fef7b7e81aa6d7da397ff286 Mon Sep 17 00:00:00 2001 From: Steven Shaw Date: Tue, 21 Nov 2006 19:08:47 +0000 Subject: QPID-120 Enabled qpid-cpp to build on RHEL3 with less pain. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477826 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'cpp/Makefile') diff --git a/cpp/Makefile b/cpp/Makefile index 765e911ebb..d9ffb9919d 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -26,6 +26,14 @@ include options.mk test: unittest pythontest +.PHONY: show-vars +show-vars: + @echo APR_LDFLAGS=$(APR_LDFLAGS) + @echo APR_CFLAGS=$(APR_CFLAGS) + @echo CXXFLAGS=$(CXXFLAGS) + @echo LDFLAGS=$(LDFLAGS) + @echo CXX=$(CXX) + # Must run two separate make processes to pick up generated files. all: $(MAKE) generate @@ -106,10 +114,14 @@ endef $(foreach dir,$(SRCDIRS),$(eval $(call CPPRULE,$(dir)))) +ifndef CPPUNIT_LDFLAGS + CPPUNIT_LDFLAGS := -lcppunit +endif + # Unit test plugin libraries. $(TESTDIR)/%Test.so: test/unit/%Test.cpp $(LIB_common) $(LIB_broker) mkdir -p $(dir $@) - $(CXX) -shared -o $@ $< $(CXXFLAGS) -Itest/include $(LDFLAGS) -lcppunit $(LIB_common) $(LIB_broker) + $(CXX) -shared -o $@ $< $(CXXFLAGS) -Itest/include $(LDFLAGS) $(CPPUNIT_LDFLAGS) $(LIB_common) $(LIB_broker) # Client test programs $(TESTDIR)/%: test/client/%.cpp $(LIB_common) $(LIB_client) -- cgit v1.2.1