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 = \
43 libsigrok_la_SOURCES += \
45 input/chronovu_la8.c \
52 libsigrok_la_SOURCES += \
57 output/chronovu_la8.c \
67 # Hardware (common files)
68 libsigrok_la_SOURCES += \
69 hardware/common/scpi.c \
70 hardware/common/scpi_tcp.c \
71 hardware/common/scpi_usbtmc.c
73 libsigrok_la_SOURCES += \
74 hardware/common/scpi_vxi.c \
75 hardware/common/vxi_clnt.c \
76 hardware/common/vxi_xdr.c \
80 libsigrok_la_SOURCES += \
81 hardware/common/serial.c \
82 hardware/common/scpi_serial.c
85 libsigrok_la_SOURCES += \
86 hardware/common/ezusb.c \
87 hardware/common/usb.c \
88 hardware/common/scpi_usbtmc_libusb.c
91 libsigrok_la_SOURCES += \
92 hardware/common/scpi_visa.c
95 # Hardware (DMM parsers)
96 libsigrok_la_SOURCES += \
97 hardware/common/dmm/es519xx.c \
98 hardware/common/dmm/fs9721.c \
99 hardware/common/dmm/fs9922.c \
100 hardware/common/dmm/m2110.c \
101 hardware/common/dmm/metex14.c \
102 hardware/common/dmm/rs9lcd.c
106 libsigrok_la_SOURCES += \
107 hardware/agilent-dmm/api.c \
108 hardware/agilent-dmm/agilent-dmm.h \
109 hardware/agilent-dmm/sched.c
112 libsigrok_la_SOURCES += \
113 hardware/alsa/protocol.h \
114 hardware/alsa/protocol.c \
118 libsigrok_la_SOURCES += \
119 hardware/appa-55ii/protocol.h \
120 hardware/appa-55ii/protocol.c \
121 hardware/appa-55ii/api.c
124 libsigrok_la_SOURCES += \
125 hardware/asix-sigma/asix-sigma.h \
126 hardware/asix-sigma/asix-sigma.c
129 libsigrok_la_SOURCES += \
130 hardware/atten-pps3xxx/protocol.h \
131 hardware/atten-pps3xxx/protocol.c \
132 hardware/atten-pps3xxx/api.c
135 libsigrok_la_SOURCES += \
136 hardware/brymen-bm86x/protocol.h \
137 hardware/brymen-bm86x/protocol.c \
138 hardware/brymen-bm86x/api.c
141 libsigrok_la_SOURCES += \
142 hardware/brymen-dmm/parser.c \
143 hardware/brymen-dmm/protocol.h \
144 hardware/brymen-dmm/protocol.c \
145 hardware/brymen-dmm/api.c
148 libsigrok_la_SOURCES += \
149 hardware/cem-dt-885x/protocol.h \
150 hardware/cem-dt-885x/protocol.c \
151 hardware/cem-dt-885x/api.c
154 libsigrok_la_SOURCES += \
155 hardware/center-3xx/protocol.h \
156 hardware/center-3xx/protocol.c \
157 hardware/center-3xx/api.c
160 libsigrok_la_SOURCES += \
161 hardware/chronovu-la8/protocol.h \
162 hardware/chronovu-la8/protocol.c \
163 hardware/chronovu-la8/api.c
166 libsigrok_la_SOURCES += \
167 hardware/colead-slm/protocol.h \
168 hardware/colead-slm/protocol.c \
169 hardware/colead-slm/api.c
171 if HW_CONRAD_DIGI_35_CPU
172 libsigrok_la_SOURCES += \
173 hardware/conrad-digi-35-cpu/protocol.h \
174 hardware/conrad-digi-35-cpu/protocol.c \
175 hardware/conrad-digi-35-cpu/api.c
178 libsigrok_la_SOURCES += \
182 libsigrok_la_SOURCES += \
183 hardware/fluke-dmm/fluke-dmm.h \
184 hardware/fluke-dmm/fluke.c \
185 hardware/fluke-dmm/api.c
188 libsigrok_la_SOURCES += \
189 hardware/fx2lafw/protocol.h \
190 hardware/fx2lafw/protocol.c \
191 hardware/fx2lafw/api.c
194 libsigrok_la_SOURCES += \
195 hardware/gmc-mh-1x-2x/protocol.h \
196 hardware/gmc-mh-1x-2x/protocol.c \
197 hardware/gmc-mh-1x-2x/api.c
200 libsigrok_la_SOURCES += \
201 hardware/hameg-hmo/protocol.h \
202 hardware/hameg-hmo/protocol.c \
203 hardware/hameg-hmo/api.c
206 libsigrok_la_SOURCES += \
207 hardware/hantek-dso/dso.h \
208 hardware/hantek-dso/dso.c \
209 hardware/hantek-dso/api.c
211 if HW_IKALOGIC_SCANALOGIC2
212 libsigrok_la_SOURCES += \
213 hardware/ikalogic-scanalogic2/protocol.h \
214 hardware/ikalogic-scanalogic2/protocol.c \
215 hardware/ikalogic-scanalogic2/api.c
217 if HW_IKALOGIC_SCANAPLUS
218 libsigrok_la_SOURCES += \
219 hardware/ikalogic-scanaplus/protocol.h \
220 hardware/ikalogic-scanaplus/protocol.c \
221 hardware/ikalogic-scanaplus/api.c
223 if HW_KECHENG_KC_330B
224 libsigrok_la_SOURCES += \
225 hardware/kecheng-kc-330b/protocol.h \
226 hardware/kecheng-kc-330b/protocol.c \
227 hardware/kecheng-kc-330b/api.c
230 libsigrok_la_SOURCES += \
231 hardware/lascar-el-usb/protocol.h \
232 hardware/lascar-el-usb/protocol.c \
233 hardware/lascar-el-usb/api.c
236 libsigrok_la_SOURCES += \
237 hardware/link-mso19/protocol.h \
238 hardware/link-mso19/protocol.c \
239 hardware/link-mso19/api.c
242 libsigrok_la_SOURCES += \
243 hardware/mic-985xx/protocol.h \
244 hardware/mic-985xx/protocol.c \
245 hardware/mic-985xx/api.c
248 libsigrok_la_SOURCES += \
249 hardware/norma-dmm/protocol.h \
250 hardware/norma-dmm/protocol.c \
251 hardware/norma-dmm/api.c
254 libsigrok_la_SOURCES += \
255 hardware/openbench-logic-sniffer/protocol.h \
256 hardware/openbench-logic-sniffer/protocol.c \
257 hardware/openbench-logic-sniffer/api.c
260 libsigrok_la_SOURCES += \
261 hardware/rigol-ds/protocol.h \
262 hardware/rigol-ds/protocol.c \
263 hardware/rigol-ds/api.c
266 libsigrok_la_SOURCES += \
267 hardware/saleae-logic16/protocol.h \
268 hardware/saleae-logic16/protocol.c \
269 hardware/saleae-logic16/api.c
272 libsigrok_la_SOURCES += \
273 hardware/serial-dmm/protocol.h \
274 hardware/serial-dmm/protocol.c \
275 hardware/serial-dmm/api.c
278 libsigrok_la_SOURCES += \
279 hardware/sysclk-lwla/lwla.h \
280 hardware/sysclk-lwla/lwla.c \
281 hardware/sysclk-lwla/protocol.h \
282 hardware/sysclk-lwla/protocol.c \
283 hardware/sysclk-lwla/api.c
286 libsigrok_la_SOURCES += \
287 hardware/teleinfo/protocol.h \
288 hardware/teleinfo/protocol.c \
289 hardware/teleinfo/api.c
292 libsigrok_la_SOURCES += \
293 hardware/tondaj-sl-814/protocol.h \
294 hardware/tondaj-sl-814/protocol.c \
295 hardware/tondaj-sl-814/api.c
298 libsigrok_la_SOURCES += \
299 hardware/uni-t-dmm/protocol.h \
300 hardware/uni-t-dmm/protocol.c \
301 hardware/uni-t-dmm/api.c
304 libsigrok_la_SOURCES += \
305 hardware/uni-t-ut32x/protocol.h \
306 hardware/uni-t-ut32x/protocol.c \
307 hardware/uni-t-ut32x/api.c
310 libsigrok_la_SOURCES += \
311 hardware/victor-dmm/protocol.h \
312 hardware/victor-dmm/protocol.c \
313 hardware/victor-dmm/api.c
315 if HW_ZEROPLUS_LOGIC_CUBE
316 libsigrok_la_SOURCES += \
317 hardware/zeroplus-logic-cube/analyzer.c \
318 hardware/zeroplus-logic-cube/analyzer.h \
319 hardware/zeroplus-logic-cube/gl_usb.h \
320 hardware/zeroplus-logic-cube/gl_usb.c \
321 hardware/zeroplus-logic-cube/protocol.h \
322 hardware/zeroplus-logic-cube/protocol.c \
323 hardware/zeroplus-logic-cube/api.c
326 libsigrok_la_LIBADD = $(LIBOBJS)
328 libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS)
330 library_includedir = $(includedir)/libsigrok
331 library_include_HEADERS = libsigrok.h proto.h version.h
332 noinst_HEADERS = libsigrok-internal.h
334 pkgconfigdir = $(libdir)/pkgconfig
335 pkgconfig_DATA = libsigrok.pc
341 contrib/gnuplot_chronovu_la8.gpi \
342 contrib/gnuplot_rigol_ds1xx2.gpi \
343 contrib/gnuplot_usbeesx.gpi \
344 contrib/gnuplot_usbeedx8.gpi \
345 contrib/gnuplot_usbeedx16.gpi \
346 contrib/sigrok-logo-notext.png \
347 contrib/z60_libsigrok.rules
351 TESTS = tests/check_main
353 check_PROGRAMS = ${TESTS}
355 tests_check_main_SOURCES = \
361 tests/check_input_all.c \
362 tests/check_input_binary.c \
363 tests/check_output_all.c \
364 tests/check_strutil.c \
365 tests/check_version.c \
366 tests/check_driver_all.c
368 tests_check_main_CFLAGS = @check_CFLAGS@
370 tests_check_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@
374 MAINTAINERCLEANFILES = ChangeLog
378 git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog