From efe88c2e1781c94d7ed8a92accbb47c78c52ee01 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 18 Nov 2013 16:59:56 +0000 Subject: [PATCH] tests: pass top_srcdir so the tests compile in distcheck --- tests/Makefile.am | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index c6123ed..88335ab 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,8 @@ include ../Makefile.am.inc +AM_CPPFLAGS = -I$(top_srcdir) + LIBJSON_LA=$(top_builddir)/libjson-c.la check_PROGRAMS = test1 test1Formatted @@ -16,14 +18,14 @@ check_PROGRAMS += test_locale test1_LDADD = $(LIBJSON_LA) test1Formatted_LDADD= $(LIBJSON_LA) -test1Formatted_SOURCES = test1.c parse_flags.c -test1Formatted_CPPFLAGS = -DTEST_FORMATTED +test1Formatted_SOURCES = test1.c parse_flags.c parse_flags.h +test1Formatted_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_FORMATTED test2_LDADD = $(LIBJSON_LA) test2Formatted_LDADD= $(LIBJSON_LA) -test2Formatted_SOURCES = test2.c parse_flags.c -test2Formatted_CPPFLAGS = -DTEST_FORMATTED +test2Formatted_SOURCES = test2.c parse_flags.c parse_flags.h +test2Formatted_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_FORMATTED test4_LDADD = $(LIBJSON_LA)