X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcommon%2FMakefile.am;h=805586c1ad6485e40fe9bfe9a37d681ac42fe4c3;hb=9edfee3ee31bc6cd7657392f2c9ac28ccf7a7dce;hp=e8a708f31e899b3acb3f7864e8e25eb26e6faad7;hpb=340f6e7aeaf0c6cbbb27c5b535787bd09407994b;p=libsigrok.git diff --git a/hardware/common/Makefile.am b/hardware/common/Makefile.am index e8a708f3..805586c1 100644 --- a/hardware/common/Makefile.am +++ b/hardware/common/Makefile.am @@ -20,11 +20,16 @@ # 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 LA_FX2LAFW +libsigrokhwcommon_la_SOURCES += ezusb.c +endif + +if LA_OLS +libsigrokhwcommon_la_SOURCES += serial.c +endif libsigrokhwcommon_la_CFLAGS = \ - -I$(top_srcdir)/libsigrok + -I$(top_srcdir)