aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/Automake.inc
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-09-21 15:20:11 +0100
committerEmil Velikov <[email protected]>2014-09-24 10:44:00 +0100
commit0e59153229f6e04296ee938d084e9d6f522fd146 (patch)
treeee397c07118c6382ec8b73ee0eea9c20de02e3ee /src/gallium/drivers/nouveau/Automake.inc
parent6e1f846ce09e93d2a6157da1587b546080e48211 (diff)
gallium/nouveau: 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 <[email protected]> Acked-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/Automake.inc')
-rw-r--r--src/gallium/drivers/nouveau/Automake.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/Automake.inc b/src/gallium/drivers/nouveau/Automake.inc
new file mode 100644
index 00000000000..1d383fcb7b1
--- /dev/null
+++ b/src/gallium/drivers/nouveau/Automake.inc
@@ -0,0 +1,11 @@
+if HAVE_GALLIUM_NOUVEAU
+
+TARGET_DRIVERS += nouveau
+TARGET_CPPFLAGS += -DGALLIUM_NOUVEAU
+TARGET_LIB_DEPS += \
+ $(top_builddir)/src/gallium/winsys/nouveau/drm/libnouveaudrm.la \
+ $(top_builddir)/src/gallium/drivers/nouveau/libnouveau.la \
+ $(NOUVEAU_LIBS) \
+ $(LIBDRM_LIBS)
+
+endif