qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stes...@apache.org
Subject svn commit: r477842 - /incubator/qpid/trunk/qpid/cpp/test/client/Makefile.cppclient.examples
Date Tue, 21 Nov 2006 19:38:37 GMT
Author: steshaw
Date: Tue Nov 21 11:38:36 2006
New Revision: 477842

URL: http://svn.apache.org/viewvc?view=rev&rev=477842
Log:
QPID-121 Added a makefile for use by users after release.

Added:
    incubator/qpid/trunk/qpid/cpp/test/client/Makefile.cppclient.examples

Added: incubator/qpid/trunk/qpid/cpp/test/client/Makefile.cppclient.examples
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/test/client/Makefile.cppclient.examples?view=auto&rev=477842
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/test/client/Makefile.cppclient.examples (added)
+++ incubator/qpid/trunk/qpid/cpp/test/client/Makefile.cppclient.examples Tue Nov 21 11:38:36
2006
@@ -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)



Mime
View raw message