From 4853a3454cf460c8c47c0a5068324f7d57077db2 Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Fri, 26 Oct 2012 13:51:59 +0200 Subject: [PATCH] Support building and testing with VPATH. --- test/bin/Makefile.am | 2 +- test/suites/api/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/bin/Makefile.am b/test/bin/Makefile.am index 346db5d..478f62b 100644 --- a/test/bin/Makefile.am +++ b/test/bin/Makefile.am @@ -1,6 +1,6 @@ check_PROGRAMS = json_process -AM_CPPFLAGS = -I$(top_srcdir)/src +AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src AM_CFLAGS = -Wall -Werror LDFLAGS = -static # for speed and Valgrind LDADD = $(top_builddir)/src/libjansson.la diff --git a/test/suites/api/Makefile.am b/test/suites/api/Makefile.am index 9e60f48..2b1746d 100644 --- a/test/suites/api/Makefile.am +++ b/test/suites/api/Makefile.am @@ -29,7 +29,7 @@ test_pack_SOURCES = test_pack.c util.h test_simple_SOURCES = test_simple.c util.h test_unpack_SOURCES = test_unpack.c util.h -AM_CPPFLAGS = -I$(top_srcdir)/src +AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src AM_CFLAGS = -Wall -Werror LDFLAGS = -static # for speed and Valgrind LDADD = $(top_builddir)/src/libjansson.la