summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2015-04-04 10:35:14 +0200
committerUli Schlachter <psychon@znc.in>2015-04-04 10:37:05 +0200
commit9f93cefb40104828049e6de82f98c1f110a684a5 (patch)
treef34e2785e32dcbd12a85109900318dc8a03a06a0
parent40fdc28891137fb153ee098505a4954fdea50718 (diff)
Fix test suite compilation
This didn't find xcb_errors.h for out-of-tree builds. Fix this by using $(srcdir) correctly. Also, the test suite makes use of libxcb and thus should link against it. Signed-off-by: Uli Schlachter <psychon@znc.in>
-rw-r--r--Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 4703f74..746cde3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,8 +30,8 @@ pkgconfig_DATA = xcb-errors.pc
TESTS = tests/test
check_PROGRAMS = tests/test
tests_test_SOURCE = tests/test.c
-tests_test_CPPFLAGS = -Isrc/
-tests_test_LDADD = libxcb-errors.la
+tests_test_CPPFLAGS = -I$(srcdir)/src/ $(XCB_CFLAGS)
+tests_test_LDADD = libxcb-errors.la $(XCB_LIBS)
CLEANFILES = src/extensions.c