diff --git a/src/xwayland/Makefile.am b/src/xwayland/Makefile.am index 77124ffdb..3a26cbd63 100644 --- a/src/xwayland/Makefile.am +++ b/src/xwayland/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/shared \ + -I$(top_builddir)/src \ -DDATADIR='"$(datadir)"' \ -DMODULEDIR='"$(moduledir)"' \ -DLIBEXECDIR='"$(libexecdir)"' \ diff --git a/tests/Makefile.am b/tests/Makefile.am index 8bdcfde39..e0f004a3f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -34,6 +34,7 @@ AM_CFLAGS = $(GCC_CFLAGS) AM_CPPFLAGS = \ -I$(top_srcdir)/src \ -I$(top_srcdir)/shared \ + -I$(top_builddir)/src \ -DUNIT_TEST \ $(COMPOSITOR_CFLAGS) AM_LDFLAGS = -module -avoid-version -rpath $(libdir)