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. --- examples/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/Makefile.am b/examples/Makefile.am index ea10f77..bde66bd 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,6 +1,10 @@ noinst_PROGRAMS = amqp_sendstring amqp_exchange_declare amqp_listen amqp_producer amqp_consumer amqp_unbind amqp_bind amqp_listenq -AM_CFLAGS = -I$(top_srcdir)/librabbitmq +# 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$(top_builddir)/librabbitmq if GCC # Because we want to build under Microsoft's C compiler (for which -- cgit v1.2.1