diff options
author | Steven Shaw <steshaw@apache.org> | 2006-11-21 19:38:36 +0000 |
---|---|---|
committer | Steven Shaw <steshaw@apache.org> | 2006-11-21 19:38:36 +0000 |
commit | 4ac1fb1bc85fbad989deca30410d18eefb727837 (patch) | |
tree | 6018538fbdd5b300927ea492784cb8f2ecfa82f6 /cpp/test | |
parent | f71389d39b73c7e7fef7b7e81aa6d7da397ff286 (diff) | |
download | qpid-python-4ac1fb1bc85fbad989deca30410d18eefb727837.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/qpid@477842 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/test')
-rw-r--r-- | cpp/test/client/Makefile.cppclient.examples | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/cpp/test/client/Makefile.cppclient.examples b/cpp/test/client/Makefile.cppclient.examples new file mode 100644 index 0000000000..57968839f4 --- /dev/null +++ b/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) |