]> sigrok.org Git - libsigrok.git/commitdiff
Only build specific source files if needed.
authorUwe Hermann <redacted>
Sat, 8 Jan 2011 19:06:32 +0000 (20:06 +0100)
committerUwe Hermann <redacted>
Sat, 8 Jan 2011 19:58:44 +0000 (20:58 +0100)
hardware/common/Makefile.am

index e8a708f31e899b3acb3f7864e8e25eb26e6faad7..7a0428d2a89cb11ed737ea3f96739da9199c5308 100644 (file)
 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