summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-17 10:19:41 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-22 22:00:33 -0800
commitf0d278b48a659d4811f5494bf7de4a84e9c5880f (patch)
treeb4d93dd5e4c4a1941597c48d76cfcd04b98aa96b /src/Makefile.am
parent6504929481eab616f064b5d661a057de74b8b488 (diff)
Skip building xaa files when XAA is not supported
No point building & linking empty *.o files into the drivers. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am10
1 files 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