]> sigrok.org Git - libsigrok.git/blame - Makefile.am
Only build hardware plugins if requested by user.
[libsigrok.git] / Makefile.am
CommitLineData
62c82025 1##
a1bb33af 2## This file is part of the sigrok project.
62c82025 3##
a1bb33af 4## Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
62c82025 5##
a1bb33af
UH
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.
62c82025 10##
a1bb33af
UH
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.
62c82025 15##
a1bb33af
UH
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/>.
62c82025 18##
a1bb33af
UH
19
20AM_CPPFLAGS = -I $(top_srcdir)/libsigrok \
62c82025 21 -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"'
a1bb33af 22
a695d6c0 23lib_LTLIBRARIES = libsigrok.la
a1bb33af 24
a695d6c0 25libsigrok_la_SOURCES = \
a1bb33af
UH
26 backend.c \
27 datastore.c \
28 device.c \
29 session.c \
30 hwplugin.c \
31 filter.c \
32 hardware/common/ezusb.c \
9a5c6dcf 33 hardware/common/misc.c \
a1bb33af 34 hardware/common/serial.c \
34e4813f
BV
35 input/input_binary.c \
36 input/input.c \
1c5b9d30 37 output/output_binary.c \
a1bb33af 38 output/output_text.c \
4c9ffa83 39 output/output_vcd.c \
e2ad47b5 40 output/output_gnuplot.c \
25e7d9b1 41 output/common.c \
a1bb33af
UH
42 output/output.c
43
5b907f9b
UH
44if LA_ASIX_SIGMA
45libsigrok_la_SOURCES += \
46 hardware/asix-sigma/asix-sigma.c \
47 hardware/asix-sigma/asix-sigma.h
48else
49EXTRA_DIST = \
50 hardware/asix-sigma/asix-sigma.c \
51 hardware/asix-sigma/asix-sigma.h
52endif
53
960a75e4
UH
54if LA_OLS
55libsigrok_la_SOURCES += hardware/openbench-logic-sniffer/ols.c
56else
57EXTRA_DIST = hardware/openbench-logic-sniffer/ols.c
58endif
59
60if LA_SALEAE_LOGIC
61libsigrok_la_SOURCES += hardware/saleae-logic/saleae-logic.c
62else
63EXTRA_DIST = hardware/saleae-logic/saleae-logic.c
64endif
65
66if LA_ZEROPLUS_LOGIC_CUBE
67libsigrok_la_SOURCES += \
68 hardware/zeroplus-logic-cube/analyzer.c \
69 hardware/zeroplus-logic-cube/analyzer.h \
70 hardware/zeroplus-logic-cube/gl_usb.c \
71 hardware/zeroplus-logic-cube/gl_usb.h \
72 hardware/zeroplus-logic-cube/zeroplus.c
73else
74EXTRA_DIST = \
75 hardware/zeroplus-logic-cube/analyzer.c \
76 hardware/zeroplus-logic-cube/analyzer.h \
77 hardware/zeroplus-logic-cube/gl_usb.c \
78 hardware/zeroplus-logic-cube/gl_usb.h \
79 hardware/zeroplus-logic-cube/zeroplus.c
80endif
81
a695d6c0 82libsigrok_la_LIBADD = $(LIBOBJS)
a1bb33af
UH
83
84include_HEADERS = sigrok.h
85
d658e348
UH
86pkgconfigdir = $(libdir)/pkgconfig
87pkgconfig_DATA = libsigrok.pc
88