From af812219f655b286f5a2a0146846d9b97e25435c Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 8 Jan 2011 20:06:32 +0100 Subject: [PATCH] Only build specific source files if needed. --- hardware/common/Makefile.am | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hardware/common/Makefile.am b/hardware/common/Makefile.am index e8a708f3..7a0428d2 100644 --- a/hardware/common/Makefile.am +++ b/hardware/common/Makefile.am @@ -21,9 +21,15 @@ noinst_LTLIBRARIES = libsigrokhwcommon.la libsigrokhwcommon_la_SOURCES = \ - ezusb.c \ - misc.c \ - serial.c + misc.c + +if LA_SALEAE_LOGIC +libsigrokhwcommon_la_SOURCES += ezusb.c +endif + +if LA_OLS +libsigrokhwcommon_la_SOURCES += serial.c +endif libsigrokhwcommon_la_CFLAGS = \ -I$(top_srcdir)/libsigrok