From 0e979d82d249c4c0815ea82816fcf186a6862e2a Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 17 Jun 2015 15:13:51 -0500 Subject: [PATCH] build: Build a subset of libwayland_util when not building libraries The scanner doesn't need anything but wayland-util.c/.h so we can shrink wayland-util when not building the main libraries. Signed-off-by: Derek Foreman Reviewed-by: Peter Hutterer Reviewed-by: Pekka Paalanen --- Makefile.am | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 31adc97..845c116 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,20 +34,23 @@ else wayland_scanner = wayland-scanner endif -libwayland_util_la_CFLAGS = $(FFI_CFLAGS) $(GCC_CFLAGS) +libwayland_util_la_CFLAGS = $(GCC_CFLAGS) libwayland_util_la_SOURCES = \ - src/connection.c \ src/wayland-util.c \ - src/wayland-util.h \ - src/wayland-os.c \ - src/wayland-os.h \ - src/wayland-private.h + src/wayland-util.h noinst_LTLIBRARIES = libwayland-util.la if ENABLE_LIBRARIES lib_LTLIBRARIES = libwayland-server.la libwayland-client.la +libwayland_util_la_CFLAGS += $(FFI_CFLAGS) +libwayland_util_la_SOURCES += \ + src/connection.c \ + src/wayland-os.c \ + src/wayland-os.h \ + src/wayland-private.h + include_HEADERS = \ src/wayland-util.h \ src/wayland-server.h \ -- 2.7.4