From 2b36b0c508af42e4d092342ca1b530e2e911267a Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Fri, 17 Dec 2010 13:37:18 -0500 Subject: More fixes for VPATH-based builds Reported by Tony Garnock-Jones. --- tools/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/Makefile.am b/tools/Makefile.am index ccd36ca..6fa1e4b 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -2,7 +2,11 @@ SUBDIRS=doc bin_PROGRAMS = amqp-publish amqp-get amqp-consume amqp-declare-queue amqp-delete-queue -AM_CFLAGS = -I$(top_srcdir)/librabbitmq -I$(srcdir)/$(PLATFORM_DIR) +# The -I to srcdir's librabbitmq is for the main amqp header +# files. The -I to builddir's librabbitmq is less obvious; it's for +# VPATH-based builds: the amqp_framing.h gets generated into the +# *build* directory, not the source directory. +AM_CFLAGS = -I$(top_srcdir)/librabbitmq -I$(srcdir)/$(PLATFORM_DIR) -I$(top_builddir)/librabbitmq AM_LDFLAGS = $(top_builddir)/librabbitmq/librabbitmq.la LDADD=$(LIBPOPT) -- cgit v1.2.1