diff options
| author | Alan Conway <aconway@apache.org> | 2008-06-20 21:23:23 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-06-20 21:23:23 +0000 |
| commit | d843260b5ca7b8945144c27e584777c9b6da276a (patch) | |
| tree | 74e36abc6518fccd631057cbdb991d7680b8e00d /qpid/cpp/examples/makedist.mk | |
| parent | e34a577698e195c576d168480dafcc524e41fa24 (diff) | |
| download | qpid-python-d843260b5ca7b8945144c27e584777c9b6da276a.tar.gz | |
Patch from Manuel Teira: https://issues.apache.org/jira/secure/CommentAssignIssue!default.jspa?action=5&id=12398038
- Use standard automake makefiles to build cpp/examples.
- Rationalize examples directory structure.
Additions to patch:
- Fix for VPATH builds.
- Fix make distcheck (finally!)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@670066 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/makedist.mk')
| -rw-r--r-- | qpid/cpp/examples/makedist.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/qpid/cpp/examples/makedist.mk b/qpid/cpp/examples/makedist.mk new file mode 100644 index 0000000000..c6d59039df --- /dev/null +++ b/qpid/cpp/examples/makedist.mk @@ -0,0 +1,20 @@ +# Settings to build the examples in automake +AM_CXXFLAGS = $(WARNING_CFLAGS) +INCLUDES = -I$(abs_top_srcdir)/src -I$(abs_top_srcdir)/src/gen -I$(abs_top_builddir)/src -I$(abs_top_builddir)/src/gen +CLIENT_LIB=$(abs_top_builddir)/src/libqpidclient.la + +# Generate a simple non-automake Makefile for distribution. +MAKEDIST=.libs/Makefile + +$(MAKEDIST): Makefile + @$(MKDIR_P) .libs + @$(ECHO) CXX=$(CXX) > $(MAKEDIST) + @$(ECHO) CXXFLAGS=$(CXXFLAGS) >> $(MAKEDIST) + @$(ECHO) LDFLAGS=-lqpidclient >> $(MAKEDIST) + @$(ECHO) >> $(MAKEDIST) + @$(ECHO) all: $(noinst_PROGRAMS) >> $(MAKEDIST) + @$(ECHO) >> $(MAKEDIST) + @$(ECHO) clean: >> $(MAKEDIST) + @$(ECHO) " rm -f $(noinst_PROGRAMS)" >> $(MAKEDIST) + + |
