From 0f3c0ff17bad8da9dcb504560ad691db8294f6c9 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 21 Sep 2014 16:46:39 +0100 Subject: gallium/softpipe,llvmpipe: add automake target 'templates' Rather than duplicating the libdeps, extra define... all over the targets, define them only once and use when applicable. Signed-off-by: Emil Velikov Acked-by: Matt Turner --- src/gallium/targets/dri/Makefile.am | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'src/gallium/targets/dri/Makefile.am') diff --git a/src/gallium/targets/dri/Makefile.am b/src/gallium/targets/dri/Makefile.am index fe9624fa301..b74c29e5547 100644 --- a/src/gallium/targets/dri/Makefile.am +++ b/src/gallium/targets/dri/Makefile.am @@ -84,25 +84,8 @@ include $(top_srcdir)/src/gallium/drivers/freedreno/Automake.inc include $(top_srcdir)/src/gallium/drivers/vc4/Automake.inc -if HAVE_GALLIUM_SOFTPIPE -MEGADRIVERS += swrast -STATIC_TARGET_CPPFLAGS += -DGALLIUM_SOFTPIPE -STATIC_TARGET_LIB_DEPS += \ - $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la \ - $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la - -if HAVE_DRI2 -MEGADRIVERS += kms_swrast -STATIC_TARGET_LIB_DEPS += \ - $(top_builddir)/src/gallium/winsys/sw/kms-dri/libswkmsdri.la -endif -endif - -if HAVE_GALLIUM_LLVMPIPE -STATIC_TARGET_CPPFLAGS += -DGALLIUM_LLVMPIPE -STATIC_TARGET_LIB_DEPS += \ - $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la -endif +include $(top_srcdir)/src/gallium/drivers/softpipe/Automake.inc +include $(top_srcdir)/src/gallium/drivers/llvmpipe/Automake.inc if HAVE_GALLIUM_STATIC_TARGETS -- cgit v1.2.3