diff --git a/clients/Makefile.am b/clients/Makefile.am index 84d29d0c..9839b84e 100644 --- a/clients/Makefile.am +++ b/clients/Makefile.am @@ -16,8 +16,8 @@ noinst_LTLIBRARIES = libtoytoolkit.la AM_CFLAGS = $(GCC_CFLAGS) AM_CPPFLAGS = \ -DDATADIR='"$(datadir)"' \ - -I$(top_srcdir)/wayland \ -I$(top_builddir)/wayland \ + -I$(top_srcdir)/wayland \ $(CLIENT_CFLAGS) libtoytoolkit_la_SOURCES = \ diff --git a/compositor/Makefile.am b/compositor/Makefile.am index 89ea4434..d2baa437 100644 --- a/compositor/Makefile.am +++ b/compositor/Makefile.am @@ -1,12 +1,12 @@ noinst_PROGRAMS = compositor -INCLUDES = \ - -I$(top_srcdir)/wayland \ +AM_CPPFLAGS = \ + -DDATADIR='"$(datadir)"' \ -I$(top_builddir)/wayland \ + -I$(top_srcdir)/wayland \ $(COMPOSITOR_CFLAGS) AM_CFLAGS = $(GCC_CFLAGS) -AM_CPPFLAGS = -DDATADIR='"$(datadir)"' compositor_LDADD = \ $(top_builddir)/wayland/libwayland-server.la \ diff --git a/wayland/Makefile.am b/wayland/Makefile.am index 18140647..7b3cec42 100644 --- a/wayland/Makefile.am +++ b/wayland/Makefile.am @@ -29,7 +29,7 @@ libwayland_client_la_SOURCES = \ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = wayland-client.pc wayland-server.pc -INCLUDES = $(FFI_CFLAGS) +AM_CPPFLAGS = $(FFI_CFLAGS) AM_CFLAGS = $(GCC_CFLAGS) include $(top_srcdir)/wayland/scanner.mk