summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/Makefile.am
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-02-02 10:39:04 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-02-06 11:10:51 +0000
commitffc8494db556f9e95b4bcc3d3c49d7c48b4e2f41 (patch)
tree36f67e815b6cdd348711c149953597d75ba40d5c /src/mesa/drivers/dri/Makefile.am
parent900168284615e61e13b6511c655b29e9ddb025b3 (diff)
downloadexternal_mesa3d-ffc8494db556f9e95b4bcc3d3c49d7c48b4e2f41.zip
external_mesa3d-ffc8494db556f9e95b4bcc3d3c49d7c48b4e2f41.tar.gz
external_mesa3d-ffc8494db556f9e95b4bcc3d3c49d7c48b4e2f41.tar.bz2
dri: Don't build libdricommon.la if we don't need it
Refine 80aa78142d12b21dd7d4f0edc786af98a159a80f "dri: make sure to build libdricommon.la" so we don't build libdricommon if we aren't building a dri driver which needs it (i.e. if we are just building swrast) In particular, this restores the ability to build the swrast dri driver without having to have a xf86drm.h Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'src/mesa/drivers/dri/Makefile.am')
-rw-r--r--src/mesa/drivers/dri/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/Makefile.am b/src/mesa/drivers/dri/Makefile.am
index 8b93582..48d3685 100644
--- a/src/mesa/drivers/dri/Makefile.am
+++ b/src/mesa/drivers/dri/Makefile.am
@@ -1,4 +1,8 @@
-SUBDIRS = common
+SUBDIRS =
+
+if HAVE_COMMON_DRI
+SUBDIRS+=common
+endif
if HAVE_I915_DRI
SUBDIRS+=i915