summaryrefslogtreecommitdiff
path: root/cpp/examples/direct/Makefile
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-11-09 02:38:33 +0000
committerAlan Conway <aconway@apache.org>2007-11-09 02:38:33 +0000
commitefb5b0171cd6049db8fdd2aa3f9546c65be19852 (patch)
treecb22b69282fbcd204f5dad2a2795c21d58a08f9e /cpp/examples/direct/Makefile
parent976252c508b4feebef3b0811f640cd9bf0cfeeaa (diff)
downloadqpid-python-efb5b0171cd6049db8fdd2aa3f9546c65be19852.tar.gz
QPID-676: Jonathan Robie's C++ examples.
Made the following alterations for recent C++ API changes: - use arg:: namespace for Session keyword arguments. - removed trailing _ on session method names. cpp/examples/Makefile.am calls make in each example directory with flags to build examples from headers/libraries SVN checkout. Examples themselves have a plain Makefile (not automake) which will work as is if qpid is installed in standard places. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@593402 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/direct/Makefile')
-rw-r--r--cpp/examples/direct/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/cpp/examples/direct/Makefile b/cpp/examples/direct/Makefile
new file mode 100644
index 0000000000..c94e900a75
--- /dev/null
+++ b/cpp/examples/direct/Makefile
@@ -0,0 +1,20 @@
+CXX=g++
+CXXFLAGS=
+
+PROGRAMS=direct_config_queues listener direct_publisher direct_persistent_publisher
+all: $(PROGRAMS)
+
+direct_config_queues: direct_config_queues.cpp
+ $(CXX) $(CXXFLAGS) -lqpidclient -o $@ $^
+
+listener: listener.cpp
+ $(CXX) $(CXXFLAGS) -lqpidclient -o $@ $^
+
+direct_publisher: direct_publisher.cpp
+ $(CXX) $(CXXFLAGS) -lqpidclient -o $@ $^
+
+direct_persistent_publisher: direct_persistent_publisher.cpp
+ $(CXX) $(CXXFLAGS) -lqpidclient -o $@ $^
+
+clean:
+ rm -f $(PROGRAMS)