From efb5b0171cd6049db8fdd2aa3f9546c65be19852 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 9 Nov 2007 02:38:33 +0000 Subject: 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 --- cpp/examples/direct/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cpp/examples/direct/Makefile (limited to 'cpp/examples/direct/Makefile') 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) -- cgit v1.2.1