]> sigrok.org Git - libsigrok.git/blob - Makefile.am
Add per-LA --enable-XXXX configure options.
[libsigrok.git] / Makefile.am
1 ##
2 ## This file is part of the sigrok project.
3 ##
4 ## Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
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 AM_CPPFLAGS = -I $(top_srcdir)/libsigrok \
21               -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"'
22
23 lib_LTLIBRARIES = libsigrok.la
24
25 libsigrok_la_SOURCES = \
26         backend.c \
27         datastore.c \
28         device.c \
29         session.c \
30         hwplugin.c \
31         filter.c \
32         hardware/common/ezusb.c \
33         hardware/common/misc.c \
34         hardware/common/serial.c \
35         hardware/openbench-logic-sniffer/ols.c \
36         hardware/saleae-logic/saleae-logic.c \
37         hardware/zeroplus-logic-cube/analyzer.c \
38         hardware/zeroplus-logic-cube/analyzer.h \
39         hardware/zeroplus-logic-cube/gl_usb.c \
40         hardware/zeroplus-logic-cube/gl_usb.h \
41         hardware/zeroplus-logic-cube/zeroplus.c \
42         input/input_binary.c \
43         input/input.c \
44         output/output_binary.c \
45         output/output_text.c \
46         output/output_vcd.c \
47         output/output_gnuplot.c \
48         output/common.c \
49         output/output.c
50
51 if LA_ASIX_SIGMA
52 libsigrok_la_SOURCES += \
53         hardware/asix-sigma/asix-sigma.c \
54         hardware/asix-sigma/asix-sigma.h
55 else
56 EXTRA_DIST = \
57         hardware/asix-sigma/asix-sigma.c \
58         hardware/asix-sigma/asix-sigma.h
59 endif
60
61 libsigrok_la_LIBADD = $(LIBOBJS)
62
63 include_HEADERS = sigrok.h
64
65 pkgconfigdir = $(libdir)/pkgconfig
66 pkgconfig_DATA = libsigrok.pc
67