From f0d278b48a659d4811f5494bf7de4a84e9c5880f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 17 Nov 2013 10:19:41 -0800 Subject: Skip building xaa files when XAA is not supported No point building & linking empty *.o files into the drivers. Signed-off-by: Alan Coopersmith Reviewed-by: Adam Jackson --- src/Makefile.am | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3