From 34d117afb4e07bc060426e6843ca1341c2431b49 Mon Sep 17 00:00:00 2001 From: Janne Huttunen Date: Mon, 13 Oct 2014 18:51:32 +0300 Subject: [PATCH] Allow building libsigrok without libserialport. Since the DER EE DE-5000 driver is currently the only user of the es51919 module and it depends on the libserialport, compile the module only if the DER EE DE-5000 driver is enabled. This allows libsigrok to be built without libserialport again. --- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.am b/Makefile.am index ca70c4db..10c0400f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -107,8 +107,10 @@ libsigrok_la_SOURCES += \ src/dmm/bm25x.c # Hardware (LCR chip parsers) +if HW_DEREE_DE5000 libsigrok_la_SOURCES += \ src/lcr/es51919.c +endif # Hardware drivers if HW_AGILENT_DMM