summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/Makefile.am
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-04-14 16:38:02 +0000
committerAlan Conway <aconway@apache.org>2007-04-14 16:38:02 +0000
commit1b3168902f3e3c03288860e55ba02e5200606cff (patch)
tree1d7215ec8a0c762d86104df93acb62d18d8da0db /qpid/cpp/src/Makefile.am
parentf50d67546eda00e1b0ea875ea4043770405ce7b6 (diff)
downloadqpid-python-1b3168902f3e3c03288860e55ba02e5200606cff.tar.gz
* Moved code generation into top-level gen/ dir with own Makefile.am
to correctly install generated headers. * Fixed gen-src.mk/Makefile dependency loop, bootstrap no longer needs to pre-create gen-src.mk. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@528835 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/Makefile.am')
-rw-r--r--qpid/cpp/src/Makefile.am55
1 files changed, 8 insertions, 47 deletions
diff --git a/qpid/cpp/src/Makefile.am b/qpid/cpp/src/Makefile.am
index 5e713425af..d6f0c387fd 100644
--- a/qpid/cpp/src/Makefile.am
+++ b/qpid/cpp/src/Makefile.am
@@ -1,21 +1,16 @@
-include gen/gen-src.mk
-
-BUILT_SOURCES = $(generated_sources) $(generated_headers)
-
SUBDIRS = . tests
AM_CXXFLAGS = $(WARNING_CFLAGS) $(APR_CXXFLAGS)
-gen = gen/qpid/framing
+gen_framing = $(top_builddir)/gen/qpid/framing
framing= qpid/framing
broker = qpid/broker
client = qpid/client
apr = qpid/sys/apr
posix = qpid/sys/posix
-
# -I top_builddir for config.h
-INCLUDES = -I$(top_builddir) -I$(srcdir)/qpid -Igen
+INCLUDES = -I$(top_builddir) -I$(top_builddir)/gen
qpidd_LDADD = \
libqpidbroker.la \
@@ -95,10 +90,10 @@ libqpidcommon_la_SOURCES = \
$(framing)/Correlator.cpp \
$(framing)/Value.cpp \
$(framing)/Proxy.cpp \
- $(gen)/AMQP_ClientProxy.cpp \
- $(gen)/AMQP_HighestVersion.h \
- $(gen)/AMQP_MethodVersionMap.cpp \
- $(gen)/AMQP_ServerProxy.cpp \
+ $(gen_framing)/AMQP_ClientProxy.cpp \
+ $(gen_framing)/AMQP_HighestVersion.h \
+ $(gen_framing)/AMQP_MethodVersionMap.cpp \
+ $(gen_framing)/AMQP_ServerProxy.cpp \
qpid/Exception.cpp \
qpid/ExceptionHolder.cpp \
qpid/QpidError.cpp \
@@ -158,7 +153,6 @@ libqpidclient_la_SOURCES = \
$(client)/ResponseHandler.cpp \
$(client)/ReturnedMessageHandler.cpp
-include_HEADERS = gen/qpid
nobase_include_HEADERS = \
$(platform_hdr) \
$(broker)/AccumulatedAck.h \
@@ -284,38 +278,5 @@ nobase_include_HEADERS = \
qpid/SharedObject.h \
qpid/shared_ptr.h
-# Distribute the generated sources, at least for now, since
-# the generator code is in java.
-EXTRA_DIST += $(BUILT_SOURCES)
-
-# Don't attempt to run the code generator unless configure has set
-# CAN_GENERATE_CODE, indicating that the amqp.xml and tools needed
-# to run the code generator are available.
-#
-if CAN_GENERATE_CODE
-
-gentools_dir = $(srcdir)/../gentools
-spec_dir = $(srcdir)/../../specs
-spec = $(spec_dir)/amqp.0-9.xml $(spec_dir)/amqp-errata.0-9.xml
-gentools_srcdir = $(gentools_dir)/src/org/apache/qpid/gentools
-
-$(BUILT_SOURCES) $(gen): $(spec) $(java_sources) $(cxx_templates) Makefile.am
- rm -rf $(gen)
- mkdir -p $(gen)
- cd $(gentools_srcdir) && rm -f *.class && $(JAVAC) *.java
- $(JAVA) -cp $(gentools_dir)/src org.apache.qpid.gentools.Main \
- -c -o $(gen) -t $(gentools_dir)/templ.cpp $(spec)
- touch $(gen)
-
-gen/gen-src.mk: $(gen)
- ./make-gen-src-mk.sh $(gentools_dir) $(gentools_srcdir) $(gen) > $@-t
- mv $@-t $@
-
-endif
-
-maintainer-clean:
- rm -f $(gentools_srcdir)/*.class
- rm -f $(gen)
-
-# Force build during dist phase so help2man will work.
-dist-hook: $(lib_LTLIBRARIES) $(sbin_PROGRAMS)
+# Force build of qpidd during dist phase so help2man will work.
+dist-hook: qpidd