From c2b5d7024e8b348fca5f666376d07685d1a45a8c Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 24 Sep 2014 00:30:45 +0100 Subject: gallium/r300,r600,radeonsi: add automake target 'templates' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Christian König Acked-by: Matt Turner --- src/gallium/drivers/r300/Automake.inc | 13 +++++++++++++ src/gallium/drivers/r600/Automake.inc | 16 ++++++++++++++++ src/gallium/drivers/radeonsi/Automake.inc | 16 ++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 src/gallium/drivers/r300/Automake.inc create mode 100644 src/gallium/drivers/r600/Automake.inc create mode 100644 src/gallium/drivers/radeonsi/Automake.inc (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/r300/Automake.inc b/src/gallium/drivers/r300/Automake.inc new file mode 100644 index 00000000000..42614cb347b --- /dev/null +++ b/src/gallium/drivers/r300/Automake.inc @@ -0,0 +1,13 @@ +if HAVE_GALLIUM_R300 + +TARGET_DRIVERS += r300 +TARGET_CPPFLAGS += -DGALLIUM_R300 +TARGET_LIB_DEPS += \ + $(top_builddir)/src/gallium/drivers/r300/libr300.la \ + $(RADEON_LIBS) \ + $(INTEL_LIBS) + +TARGET_RADEON_WINSYS ?= \ + $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la + +endif diff --git a/src/gallium/drivers/r600/Automake.inc b/src/gallium/drivers/r600/Automake.inc new file mode 100644 index 00000000000..014f4156fe6 --- /dev/null +++ b/src/gallium/drivers/r600/Automake.inc @@ -0,0 +1,16 @@ +if HAVE_GALLIUM_R600 + +TARGET_DRIVERS += r600 +TARGET_CPPFLAGS += -DGALLIUM_R600 +TARGET_LIB_DEPS += \ + $(top_builddir)/src/gallium/drivers/r600/libr600.la \ + $(RADEON_LIBS) \ + $(LIBDRM_LIBS) + +TARGET_RADEON_WINSYS ?= \ + $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la + +TARGET_RADEON_COMMON ?= \ + $(top_builddir)/src/gallium/drivers/radeon/libradeon.la + +endif diff --git a/src/gallium/drivers/radeonsi/Automake.inc b/src/gallium/drivers/radeonsi/Automake.inc new file mode 100644 index 00000000000..3f212b39769 --- /dev/null +++ b/src/gallium/drivers/radeonsi/Automake.inc @@ -0,0 +1,16 @@ +if HAVE_GALLIUM_RADEONSI + +TARGET_DRIVERS += radeonsi +TARGET_CPPFLAGS += -DGALLIUM_RADEONSI +TARGET_LIB_DEPS += \ + $(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \ + $(RADEON_LIBS) \ + $(LIBDRM_LIBS) + +TARGET_RADEON_WINSYS ?= \ + $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la + +TARGET_RADEON_COMMON ?= \ + $(top_builddir)/src/gallium/drivers/radeon/libradeon.la + +endif -- cgit v1.2.3