2 ## This file is part of the libsigrok project.
4 ## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
5 ## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
7 ## This program is free software: you can redistribute it and/or modify
8 ## it under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation, either version 3 of the License, or
10 ## (at your option) any later version.
12 ## This program is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU General Public License for more details.
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
21 ACLOCAL_AMFLAGS = -I autostuff
23 AM_CPPFLAGS = -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"'
25 lib_LTLIBRARIES = libsigrok.la
28 libsigrok_la_SOURCES = \
42 libsigrok_la_SOURCES += \
44 input/chronovu_la8.c \
51 libsigrok_la_SOURCES += \
57 output/chronovu_la8.c \
64 # Hardware (common files)
65 libsigrok_la_SOURCES += \
66 hardware/common/scpi.c \
67 hardware/common/scpi_tcp.c \
68 hardware/common/scpi_usbtmc.c
70 libsigrok_la_SOURCES += \
71 hardware/common/scpi_vxi.c \
72 hardware/common/vxi_clnt.c \
73 hardware/common/vxi_xdr.c \
77 libsigrok_la_SOURCES += \
78 hardware/common/serial.c \
79 hardware/common/scpi_serial.c
82 libsigrok_la_SOURCES += \
83 hardware/common/ezusb.c \
84 hardware/common/usb.c \
85 hardware/common/scpi_usbtmc_libusb.c
88 libsigrok_la_SOURCES += \
89 hardware/common/scpi_visa.c
92 # Hardware (DMM parsers)
93 libsigrok_la_SOURCES += \
94 hardware/common/dmm/es519xx.c \
95 hardware/common/dmm/fs9721.c \
96 hardware/common/dmm/fs9922.c \
97 hardware/common/dmm/m2110.c \
98 hardware/common/dmm/metex14.c \
99 hardware/common/dmm/rs9lcd.c
103 libsigrok_la_SOURCES += \
104 hardware/agilent-dmm/api.c \
105 hardware/agilent-dmm/agilent-dmm.h \
106 hardware/agilent-dmm/sched.c
109 libsigrok_la_SOURCES += \
110 hardware/appa-55ii/protocol.h \
111 hardware/appa-55ii/protocol.c \
112 hardware/appa-55ii/api.c
115 libsigrok_la_SOURCES += \
116 hardware/asix-sigma/asix-sigma.h \
117 hardware/asix-sigma/asix-sigma.c
120 libsigrok_la_SOURCES += \
121 hardware/atten-pps3xxx/protocol.h \
122 hardware/atten-pps3xxx/protocol.c \
123 hardware/atten-pps3xxx/api.c
126 libsigrok_la_SOURCES += \
127 hardware/brymen-bm86x/protocol.h \
128 hardware/brymen-bm86x/protocol.c \
129 hardware/brymen-bm86x/api.c
132 libsigrok_la_SOURCES += \
133 hardware/brymen-dmm/parser.c \
134 hardware/brymen-dmm/protocol.h \
135 hardware/brymen-dmm/protocol.c \
136 hardware/brymen-dmm/api.c
139 libsigrok_la_SOURCES += \
140 hardware/cem-dt-885x/protocol.h \
141 hardware/cem-dt-885x/protocol.c \
142 hardware/cem-dt-885x/api.c
145 libsigrok_la_SOURCES += \
146 hardware/center-3xx/protocol.h \
147 hardware/center-3xx/protocol.c \
148 hardware/center-3xx/api.c
151 libsigrok_la_SOURCES += \
152 hardware/chronovu-la/protocol.h \
153 hardware/chronovu-la/protocol.c \
154 hardware/chronovu-la/api.c
157 libsigrok_la_SOURCES += \
158 hardware/colead-slm/protocol.h \
159 hardware/colead-slm/protocol.c \
160 hardware/colead-slm/api.c
162 if HW_CONRAD_DIGI_35_CPU
163 libsigrok_la_SOURCES += \
164 hardware/conrad-digi-35-cpu/protocol.h \
165 hardware/conrad-digi-35-cpu/protocol.c \
166 hardware/conrad-digi-35-cpu/api.c
169 libsigrok_la_SOURCES += \
173 libsigrok_la_SOURCES += \
174 hardware/fluke-dmm/fluke-dmm.h \
175 hardware/fluke-dmm/fluke.c \
176 hardware/fluke-dmm/api.c
179 libsigrok_la_SOURCES += \
180 hardware/fx2lafw/protocol.h \
181 hardware/fx2lafw/protocol.c \
182 hardware/fx2lafw/api.c
185 libsigrok_la_SOURCES += \
186 hardware/gmc-mh-1x-2x/protocol.h \
187 hardware/gmc-mh-1x-2x/protocol.c \
188 hardware/gmc-mh-1x-2x/api.c
191 libsigrok_la_SOURCES += \
192 hardware/hameg-hmo/protocol.h \
193 hardware/hameg-hmo/protocol.c \
194 hardware/hameg-hmo/api.c
197 libsigrok_la_SOURCES += \
198 hardware/hantek-dso/dso.h \
199 hardware/hantek-dso/dso.c \
200 hardware/hantek-dso/api.c
202 if HW_IKALOGIC_SCANALOGIC2
203 libsigrok_la_SOURCES += \
204 hardware/ikalogic-scanalogic2/protocol.h \
205 hardware/ikalogic-scanalogic2/protocol.c \
206 hardware/ikalogic-scanalogic2/api.c
208 if HW_IKALOGIC_SCANAPLUS
209 libsigrok_la_SOURCES += \
210 hardware/ikalogic-scanaplus/protocol.h \
211 hardware/ikalogic-scanaplus/protocol.c \
212 hardware/ikalogic-scanaplus/api.c
214 if HW_KECHENG_KC_330B
215 libsigrok_la_SOURCES += \
216 hardware/kecheng-kc-330b/protocol.h \
217 hardware/kecheng-kc-330b/protocol.c \
218 hardware/kecheng-kc-330b/api.c
221 libsigrok_la_SOURCES += \
222 hardware/lascar-el-usb/protocol.h \
223 hardware/lascar-el-usb/protocol.c \
224 hardware/lascar-el-usb/api.c
227 libsigrok_la_SOURCES += \
228 hardware/link-mso19/protocol.h \
229 hardware/link-mso19/protocol.c \
230 hardware/link-mso19/api.c
233 libsigrok_la_SOURCES += \
234 hardware/mic-985xx/protocol.h \
235 hardware/mic-985xx/protocol.c \
236 hardware/mic-985xx/api.c
239 libsigrok_la_SOURCES += \
240 hardware/norma-dmm/protocol.h \
241 hardware/norma-dmm/protocol.c \
242 hardware/norma-dmm/api.c
245 libsigrok_la_SOURCES += \
246 hardware/openbench-logic-sniffer/protocol.h \
247 hardware/openbench-logic-sniffer/protocol.c \
248 hardware/openbench-logic-sniffer/api.c
251 libsigrok_la_SOURCES += \
252 hardware/rigol-ds/protocol.h \
253 hardware/rigol-ds/protocol.c \
254 hardware/rigol-ds/api.c
257 libsigrok_la_SOURCES += \
258 hardware/saleae-logic16/protocol.h \
259 hardware/saleae-logic16/protocol.c \
260 hardware/saleae-logic16/api.c
263 libsigrok_la_SOURCES += \
264 hardware/serial-dmm/protocol.h \
265 hardware/serial-dmm/protocol.c \
266 hardware/serial-dmm/api.c
269 libsigrok_la_SOURCES += \
270 hardware/sysclk-lwla/lwla.h \
271 hardware/sysclk-lwla/lwla.c \
272 hardware/sysclk-lwla/protocol.h \
273 hardware/sysclk-lwla/protocol.c \
274 hardware/sysclk-lwla/api.c
277 libsigrok_la_SOURCES += \
278 hardware/teleinfo/protocol.h \
279 hardware/teleinfo/protocol.c \
280 hardware/teleinfo/api.c
283 libsigrok_la_SOURCES += \
284 hardware/tondaj-sl-814/protocol.h \
285 hardware/tondaj-sl-814/protocol.c \
286 hardware/tondaj-sl-814/api.c
289 libsigrok_la_SOURCES += \
290 hardware/uni-t-dmm/protocol.h \
291 hardware/uni-t-dmm/protocol.c \
292 hardware/uni-t-dmm/api.c
295 libsigrok_la_SOURCES += \
296 hardware/uni-t-ut32x/protocol.h \
297 hardware/uni-t-ut32x/protocol.c \
298 hardware/uni-t-ut32x/api.c
301 libsigrok_la_SOURCES += \
302 hardware/victor-dmm/protocol.h \
303 hardware/victor-dmm/protocol.c \
304 hardware/victor-dmm/api.c
306 if HW_ZEROPLUS_LOGIC_CUBE
307 libsigrok_la_SOURCES += \
308 hardware/zeroplus-logic-cube/analyzer.c \
309 hardware/zeroplus-logic-cube/analyzer.h \
310 hardware/zeroplus-logic-cube/gl_usb.h \
311 hardware/zeroplus-logic-cube/gl_usb.c \
312 hardware/zeroplus-logic-cube/protocol.h \
313 hardware/zeroplus-logic-cube/protocol.c \
314 hardware/zeroplus-logic-cube/api.c
317 libsigrok_la_LIBADD = $(LIBOBJS)
319 libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS)
321 library_includedir = $(includedir)/libsigrok
322 library_include_HEADERS = libsigrok.h proto.h version.h
323 noinst_HEADERS = libsigrok-internal.h
325 pkgconfigdir = $(libdir)/pkgconfig
326 pkgconfig_DATA = libsigrok.pc
332 contrib/gnuplot_chronovu_la8.gpi \
333 contrib/gnuplot_rigol_ds1xx2.gpi \
334 contrib/gnuplot_usbeesx.gpi \
335 contrib/gnuplot_usbeedx8.gpi \
336 contrib/gnuplot_usbeedx16.gpi \
337 contrib/sigrok-logo-notext.png \
338 contrib/z60_libsigrok.rules
342 TESTS = tests/check_main
344 check_PROGRAMS = ${TESTS}
346 tests_check_main_SOURCES = \
352 tests/check_input_all.c \
353 tests/check_input_binary.c \
354 tests/check_output_all.c \
355 tests/check_strutil.c \
356 tests/check_version.c \
357 tests/check_driver_all.c
359 tests_check_main_CFLAGS = @check_CFLAGS@
361 tests_check_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@
365 MAINTAINERCLEANFILES = ChangeLog
369 git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog