Drop the unneeded subdir-objects.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
-AUTOMAKE_OPTIONS = subdir-objects
+include Makefile.sources
AM_CPPFLAGS = $(DEFINES) \
$(VISIBILITY_CFLAGS) \
noinst_LTLIBRARIES = libpipe_loader.la
noinst_LTLIBRARIES += libpipe_loader_client.la
-COMMON_SOURCES = \
- pipe_loader.h \
- pipe_loader_priv.h \
- pipe_loader.c \
- pipe_loader_sw.c
-
if HAVE_DRM_LOADER_GALLIUM
AM_CFLAGS = $(LIBDRM_CFLAGS)
-COMMON_SOURCES += pipe_loader_drm.c
+COMMON_SOURCES += $(DRM_SOURCES)
COMMON_LIBADD = \
$(top_builddir)/src/loader/libloader.la
--- /dev/null
+COMMON_SOURCES := \
+ pipe_loader.c \
+ pipe_loader.h \
+ pipe_loader_priv.h \
+ pipe_loader_sw.c
+
+DRM_SOURCES := \
+ pipe_loader_drm.c