]> sigrok.org Git - libsigrok.git/blobdiff - hardware/common/Makefile.am
sr: convert session load/save code to use sr_dev_inst
[libsigrok.git] / hardware / common / Makefile.am
index e8a708f31e899b3acb3f7864e8e25eb26e6faad7..e8d670ce28733a704dbb40259a3b44a9b8e9b939 100644 (file)
 # Local lib, this is NOT meant to be installed!
 noinst_LTLIBRARIES = libsigrokhwcommon.la
 
-libsigrokhwcommon_la_SOURCES = \
-       ezusb.c \
-       misc.c \
-       serial.c
+libsigrokhwcommon_la_SOURCES =
+
+if NEED_EZUSB
+libsigrokhwcommon_la_SOURCES += ezusb.c
+endif
+
+if NEED_SERIAL
+libsigrokhwcommon_la_SOURCES += serial.c
+endif
 
 libsigrokhwcommon_la_CFLAGS = \
-       -I$(top_srcdir)/libsigrok
+       -I$(top_srcdir)