Alan Conway wrote:
I think we can go back to simple hand-written makefiles and still
handle platform differences and build vs. install by using make
variables appropriately.
1. remove existing examples/*/Makefile.am
2. Generate examples/makefile.mk with platform-specific settings, e.g.
# makefile.mk
CXX=g++
3. Hand-write simple examples/foo/Makefile like this:
# examples/foo/Makefile
include ../examples.mk
all: foo
foo: foo.cpp
${CXX} ${CXXFLAGS} -lqpidclient -o $@ $<
clean:
rm -f foo
4. The hand-written makefiles are designed to work as-is if qpid is
installed. To build under automake we put something like this in
examples/Makefile.am:
EXAMPLE_DIRS=direct pubsub ...
EXAMPLE_CXXFLAGS=-I$(top_srcdir)/src -I$(top_srcdir)/src/gen ...
force:
for e in ${EXAMPLE_DIRS} do ; cd $$e ; make
CXXFLAGS=$(EXAMPLE_CXXFLAGS) ; done
Make sense?
This makes a lot of sense to me.
Any objections?
Jonathan
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org