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>
This commit is contained in:
Uli Schlachter 2015-04-04 10:35:14 +02:00
parent 40fdc28891
commit 9f93cefb40

View file

@ -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