summaryrefslogtreecommitdiff
path: root/qpid/cpp/test/client/Makefile.cppclient.examples
diff options
context:
space:
mode:
authorSteven Shaw <steshaw@apache.org>2006-11-21 19:38:36 +0000
committerSteven Shaw <steshaw@apache.org>2006-11-21 19:38:36 +0000
commitd9e6c789ae66a340bf8fd1b4053fe30401fd80bf (patch)
tree27644b00a3db9bb8912ad9f35ce149713aa77cce /qpid/cpp/test/client/Makefile.cppclient.examples
parentfc6215f5a468f5ccb20e43dcee34e1d68c30d7f7 (diff)
downloadqpid-python-d9e6c789ae66a340bf8fd1b4053fe30401fd80bf.tar.gz
QPID-121 Added a makefile for use by users after release.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@477842 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/test/client/Makefile.cppclient.examples')
-rw-r--r--qpid/cpp/test/client/Makefile.cppclient.examples56
1 files changed, 56 insertions, 0 deletions
diff --git a/qpid/cpp/test/client/Makefile.cppclient.examples b/qpid/cpp/test/client/Makefile.cppclient.examples
new file mode 100644
index 0000000000..57968839f4
--- /dev/null
+++ b/qpid/cpp/test/client/Makefile.cppclient.examples
@@ -0,0 +1,56 @@
+#
+# This Makefile is intended to work in the RHEL3 release structure.
+# It is a simple example to get users up and running.
+#
+
+CXXFLAGS := -DNDEBUG -DUSE_APR -MMD -fpic
+
+#
+# Configure Boost.
+#
+BOOST_LOCATION := ../lib/boost-1.33.1
+BOOST_CFLAGS := -I$(BOOST_LOCATION)/include/boost-1_33_1
+
+CXXFLAGS := $(CXXFLAGS) $(BOOST_CFLAGS)
+
+#
+# Configure APR.
+#
+APR_LOCATION := ../lib/apr-1.2.7
+APR_CFLAGS := -I$(APR_LOCATION)/include
+APR_LDFLAGS := $(shell $(APR_LOCATION)/bin/apr-1-config --libs) -L$(APR_LOCATION)/lib -lapr-1
+
+CXXFLAGS := $(CXXFLAGS) $(APR_CFLAGS)
+LDFLAGS := $(LDFLAGS) $(APR_LDFLAGS)
+
+#
+# Configure Qpid cpp client.
+#
+
+QPID_CLIENT_LDFLAGS := ../lib/libqpid_common.so.1.0 ../lib/libqpid_client.so.1.0
+QPID_CLIENT_CFLAGS := -I../include
+
+CXXFLAGS := $(CXXFLAGS) $(QPID_CLIENT_CFLAGS)
+LDFLAGS := $(LDFLAGS) $(QPID_CLIENT_LDFLAGS)
+
+CXX := g++
+
+#
+# Add rule to build examples.
+#
+.SUFFIX: .cpp
+%: %.cpp
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) $< -o $@
+
+#
+# Define targets.
+#
+
+EXAMPLES := client_test topic_listener topic_publisher
+
+.PHONY:
+all: $(EXAMPLES)
+
+.PHONY:
+clean:
+ -rm $(EXAMPLES)