]> sigrok.org Git - libsigrok.git/blob - hardware/common/Makefile.am
scpi_usbtmc_libusb.c: Fix two error checks.
[libsigrok.git] / hardware / common / Makefile.am
1 ##
2 ## This file is part of the libsigrok project.
3 ##
4 ## Copyright (C) 2011 Uwe Hermann <uwe@hermann-uwe.de>
5 ##
6 ## This program is free software: you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, either version 3 of the License, or
9 ## (at your option) any later version.
10 ##
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 ##
19
20 SUBDIRS = dmm
21
22 # Local lib, this is NOT meant to be installed!
23 noinst_LTLIBRARIES = libsigrok_hw_common.la
24
25 libsigrok_hw_common_la_SOURCES = scpi.c scpi_tcp.c scpi_usbtmc.c
26
27 if NEED_RPC
28 libsigrok_hw_common_la_SOURCES += scpi_vxi.c vxi_clnt.c vxi_xdr.c
29 endif
30
31 if NEED_SERIAL
32 libsigrok_hw_common_la_SOURCES += serial.c scpi_serial.c
33 endif
34
35 if NEED_USB
36 libsigrok_hw_common_la_SOURCES += ezusb.c usb.c scpi_usbtmc_libusb.c
37 endif
38
39 if NEED_VISA
40 libsigrok_hw_common_la_SOURCES += scpi_visa.c
41 endif
42
43 libsigrok_hw_common_la_LIBADD = dmm/libsigrok_hw_common_dmm.la
44
45 libsigrok_hw_common_la_CFLAGS = \
46         -I$(top_srcdir)
47