From: Uwe Hermann Date: Sat, 8 Jan 2011 18:15:39 +0000 (+0100) Subject: Only build hardware drivers if they're enabled. X-Git-Tag: libsigrok-0.1.0~468 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=7c17ac6cc4ecc30a1df1848ef3a3e0827351090c;p=libsigrok.git Only build hardware drivers if they're enabled. --- diff --git a/hardware/asix-sigma/Makefile.am b/hardware/asix-sigma/Makefile.am index 0413a0db..6359e25f 100644 --- a/hardware/asix-sigma/Makefile.am +++ b/hardware/asix-sigma/Makefile.am @@ -17,6 +17,8 @@ ## along with this program. If not, see . ## +if LA_ASIX_SIGMA + AM_CPPFLAGS = -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' # Local lib, this is NOT meant to be installed! @@ -29,3 +31,5 @@ libsigrokhwasixsigma_la_SOURCES = \ libsigrokhwasixsigma_la_CFLAGS = \ -I$(top_srcdir)/libsigrok +endif + diff --git a/hardware/openbench-logic-sniffer/Makefile.am b/hardware/openbench-logic-sniffer/Makefile.am index a4881f56..45daa5b1 100644 --- a/hardware/openbench-logic-sniffer/Makefile.am +++ b/hardware/openbench-logic-sniffer/Makefile.am @@ -17,6 +17,8 @@ ## along with this program. If not, see . ## +if LA_OLS + # Local lib, this is NOT meant to be installed! noinst_LTLIBRARIES = libsigrokhwols.la @@ -26,3 +28,4 @@ libsigrokhwols_la_SOURCES = \ libsigrokhwols_la_CFLAGS = \ -I$(top_srcdir)/libsigrok +endif diff --git a/hardware/saleae-logic/Makefile.am b/hardware/saleae-logic/Makefile.am index 3e7fc724..183e7ecb 100644 --- a/hardware/saleae-logic/Makefile.am +++ b/hardware/saleae-logic/Makefile.am @@ -17,6 +17,8 @@ ## along with this program. If not, see . ## +if LA_SALEAE_LOGIC + AM_CPPFLAGS = -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' # Local lib, this is NOT meant to be installed! @@ -28,3 +30,5 @@ libsigrokhwsaleaelogic_la_SOURCES = \ libsigrokhwsaleaelogic_la_CFLAGS = \ -I$(top_srcdir)/libsigrok +endif + diff --git a/hardware/zeroplus-logic-cube/Makefile.am b/hardware/zeroplus-logic-cube/Makefile.am index 17f7c122..ce4d415b 100644 --- a/hardware/zeroplus-logic-cube/Makefile.am +++ b/hardware/zeroplus-logic-cube/Makefile.am @@ -17,6 +17,8 @@ ## along with this program. If not, see . ## +if LA_ZEROPLUS_LOGIC_CUBE + # Local lib, this is NOT meant to be installed! noinst_LTLIBRARIES = libsigrokhwzeroplus.la @@ -30,3 +32,5 @@ libsigrokhwzeroplus_la_SOURCES = \ libsigrokhwzeroplus_la_CFLAGS = \ -I$(top_srcdir)/libsigrok +endif +