gallium/i915: add automake target 'template'
Rather than duplicating the libdeps, extra define... all over the targets, define them only once and use when applicable. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
if HAVE_GALLIUM_I915
|
||||
|
||||
TARGET_DRIVERS += i915
|
||||
TARGET_CPPFLAGS += -DGALLIUM_I915
|
||||
TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/i915/libi915.la \
|
||||
$(INTEL_LIBS) \
|
||||
$(LIBDRM_LIBS)
|
||||
|
||||
endif
|
||||
@@ -68,14 +68,7 @@ TARGET_DRIVERS =
|
||||
TARGET_CPPFLAGS =
|
||||
TARGET_LIB_DEPS =
|
||||
|
||||
if HAVE_GALLIUM_I915
|
||||
MEGADRIVERS += i915
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_I915
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/i915/libi915.la \
|
||||
$(INTEL_LIBS)
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_ILO
|
||||
MEGADRIVERS += ilo
|
||||
|
||||
@@ -161,13 +161,7 @@ TARGET_DRIVERS =
|
||||
TARGET_CPPFLAGS =
|
||||
TARGET_LIB_DEPS =
|
||||
|
||||
if HAVE_GALLIUM_I915
|
||||
egl_gallium_la_CPPFLAGS += -DGALLIUM_I915
|
||||
egl_gallium_la_LIBADD += \
|
||||
$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/i915/libi915.la \
|
||||
$(INTEL_LIBS)
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_ILO
|
||||
egl_gallium_la_CPPFLAGS += -DGALLIUM_ILO
|
||||
|
||||
@@ -60,13 +60,7 @@ TARGET_DRIVERS =
|
||||
TARGET_CPPFLAGS =
|
||||
TARGET_LIB_DEPS =
|
||||
|
||||
if HAVE_GALLIUM_I915
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_I915
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/i915/libi915.la \
|
||||
$(INTEL_LIBS)
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_ILO
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_ILO
|
||||
|
||||
@@ -61,13 +61,7 @@ TARGET_DRIVERS =
|
||||
TARGET_CPPFLAGS =
|
||||
TARGET_LIB_DEPS =
|
||||
|
||||
if HAVE_GALLIUM_I915
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_I915
|
||||
STATIC_TARGET_LIB_DEPS += \
|
||||
$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
|
||||
$(top_builddir)/src/gallium/drivers/i915/libi915.la \
|
||||
$(INTEL_LIBS)
|
||||
endif
|
||||
include $(top_srcdir)/src/gallium/drivers/i915/Automake.inc
|
||||
|
||||
if HAVE_GALLIUM_ILO
|
||||
STATIC_TARGET_CPPFLAGS += -DGALLIUM_ILO
|
||||
|
||||
Reference in New Issue
Block a user