X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcommon%2FMakefile.am;h=308430642a109b0cc7358d620f99bcd5be464a09;hb=d3b38ad389a6186e2822d62b20b9f0d9d9e7c21c;hp=e8a708f31e899b3acb3f7864e8e25eb26e6faad7;hpb=340f6e7aeaf0c6cbbb27c5b535787bd09407994b;p=libsigrok.git diff --git a/hardware/common/Makefile.am b/hardware/common/Makefile.am index e8a708f3..30843064 100644 --- a/hardware/common/Makefile.am +++ b/hardware/common/Makefile.am @@ -17,14 +17,25 @@ ## along with this program. If not, see . ## +SUBDIRS = dmm + # 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 = usb.c + +if NEED_EZUSB +libsigrokhwcommon_la_SOURCES += ezusb.c +endif + +if NEED_SERIAL +libsigrokhwcommon_la_SOURCES += serial.c +endif + +libsigrokhwcommon_la_LIBADD = + +libsigrokhwcommon_la_LIBADD += dmm/libsigrok_hw_common_dmm.la libsigrokhwcommon_la_CFLAGS = \ - -I$(top_srcdir)/libsigrok + -I$(top_srcdir)