From: Uwe Hermann Date: Sat, 8 Jan 2011 19:06:32 +0000 (+0100) Subject: Only build specific source files if needed. X-Git-Tag: libsigrok-0.1.0~467 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=af812219f655b286f5a2a0146846d9b97e25435c;p=libsigrok.git Only build specific source files if needed. --- 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