[PATCH:xf86-video-cirrus] Skip building xaa files when XAA is not supported

Alan Coopersmith alan.coopersmith at oracle.com
Sun Nov 17 10:24:51 PST 2013


No point building & linking empty *.o files into the drivers.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 src/Makefile.am |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index c649b3d..36b8d8b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -44,9 +44,12 @@ cirrus_alpine_la_SOURCES = \
          alp_driver.c \
          alp.h \
          alp_hwcurs.c \
-         alp_i2c.c \
+         alp_i2c.c
+if XAA
+cirrus_alpine_la_SOURCES += \
          alp_xaa.c \
          alp_xaam.c
+endif
 
 cirrus_laguna_la_LTLIBRARIES = cirrus_laguna.la
 cirrus_laguna_la_LDFLAGS = -module -avoid-version
@@ -55,6 +58,9 @@ cirrus_laguna_la_SOURCES = \
          lg_driver.c \
          lg.h \
          lg_hwcurs.c \
-         lg_i2c.c \
+         lg_i2c.c
+if XAA
+cirrus_laguna_la_SOURCES += \
          lg_xaa.c \
          lg_xaa.h
+endif
-- 
1.7.9.2



More information about the xorg-devel mailing list