summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-12-07 21:52:10 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-12-07 21:52:10 +0100
commitbfef2fcd0ba590169ad46ea45da9d36dca1b5b97 (patch)
treef574d5ec1c4a33e00069464b80fffe66b7dc8a71 /examples
parenta08a72dd082e5e62f0d043c71ea7d9b6fb80b57e (diff)
autotools build system builds chat example now
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am7
-rw-r--r--examples/chat/Makefile.am11
2 files changed, 18 insertions, 0 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
new file mode 100644
index 0000000..6a76990
--- /dev/null
+++ b/examples/Makefile.am
@@ -0,0 +1,7 @@
+
+if BUILD_CHAT
+DIR_CHAT = chat
+endif
+
+SUBDIRS = $(DIR_CHAT)
+DIST_SUBDIRS = chat
diff --git a/examples/chat/Makefile.am b/examples/chat/Makefile.am
new file mode 100644
index 0000000..e14094f
--- /dev/null
+++ b/examples/chat/Makefile.am
@@ -0,0 +1,11 @@
+INCLUDES = -I$(top_builddir)/bindings/c -I$(top_builddir)/bindings/cpp
+
+noinst_PROGRAMS = display prompt
+
+display_SOURCES = display.cpp
+display_LDADD = $(top_builddir)/src/libzmq.la
+display_CXXFLAGS = -Wall -pedantic -Werror
+
+prompt_SOURCES = prompt.cpp
+prompt_LDADD = $(top_builddir)/src/libzmq.la
+prompt_CXXFLAGS = -Wall -pedantic -Werror