test: Fix out-of-tree builds
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 31 Jan 2012 00:15:04 +0000 (19:15 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 31 Jan 2012 00:17:52 +0000 (19:17 -0500)
tests/Makefile.am

index 9facc8e..ff64060 100644 (file)
@@ -6,10 +6,10 @@ endif
 
 
 AM_CFLAGS = $(GCC_CFLAGS)
-AM_CPPFLAGS = -I../src -DUNIT_TEST $(COMPOSITOR_CFLAGS)
+AM_CPPFLAGS = -I$(top_srcdir)/src -DUNIT_TEST $(COMPOSITOR_CFLAGS)
 
 matrix_test_SOURCES =                          \
        matrix-test.c                           \
-       ../src/matrix.c                         \
-       ../src/matrix.h
+       $(top_srcdir)/src/matrix.c              \
+       $(top_srcdir)/src/matrix.h
 matrix_test_LDADD = -lm -lrt