build: pass client flags to test programs
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 3 Feb 2014 11:12:33 +0000 (13:12 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 3 Feb 2014 17:54:22 +0000 (09:54 -0800)
commitcca3a06cab2622da0f81b360d336270f34cb19d8
tree2610bea2135239725913abe351985eccb61ac716
parent304d40d61565153488b84a6d3a225472dffc4d98
build: pass client flags to test programs

Fix build failures of the kind:

  CC       tests/bad-buffer-test.o
In file included from tests/weston-test-client-helper.h:28:0,
                 from tests/bad-buffer-test.c:28:
./protocol/wayland-test-client-protocol.h:35:28: fatal error: wayland-client.h: No such file or directory
compilation terminated.
make[1]: *** [tests/bad-buffer-test.o] Error 1

These are only triggerable if libwayland has not been installed
system-wide, but only in a custom prefix.

Since the Makefile already uses AM_CPPFLAGS, simply add
TEST_CLIENT_CFLAGS to test programs instead of dropping AM_CPPFLAGS.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Makefile.am