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 = \
44 libsigrok_la_SOURCES += \
46 input/chronovu_la8.c \
53 libsigrok_la_SOURCES += \
60 output/chronovu_la8.c \
66 # Hardware (common files)
67 libsigrok_la_SOURCES += \
68 hardware/common/scpi.c \
69 hardware/common/scpi_tcp.c
71 libsigrok_la_SOURCES += \
72 hardware/common/scpi_vxi.c \
73 hardware/common/vxi_clnt.c \
74 hardware/common/vxi_xdr.c \
78 libsigrok_la_SOURCES += \
79 hardware/common/serial.c \
80 hardware/common/scpi_serial.c
83 libsigrok_la_SOURCES += \
84 hardware/common/ezusb.c \
85 hardware/common/usb.c \
86 hardware/common/scpi_usbtmc_libusb.c
89 libsigrok_la_SOURCES += \
90 hardware/common/scpi_visa.c
93 # Hardware (DMM parsers)
94 libsigrok_la_SOURCES += \
95 hardware/common/dmm/es519xx.c \
96 hardware/common/dmm/fs9721.c \
97 hardware/common/dmm/fs9922.c \
98 hardware/common/dmm/m2110.c \
99 hardware/common/dmm/metex14.c \
100 hardware/common/dmm/rs9lcd.c
104 libsigrok_la_SOURCES += \
105 hardware/agilent-dmm/api.c \
106 hardware/agilent-dmm/agilent-dmm.h \
107 hardware/agilent-dmm/sched.c
110 libsigrok_la_SOURCES += \
111 hardware/appa-55ii/protocol.h \
112 hardware/appa-55ii/protocol.c \
113 hardware/appa-55ii/api.c
116 libsigrok_la_SOURCES += \
117 hardware/asix-sigma/asix-sigma.h \
118 hardware/asix-sigma/asix-sigma.c
121 libsigrok_la_SOURCES += \
122 hardware/atten-pps3xxx/protocol.h \
123 hardware/atten-pps3xxx/protocol.c \
124 hardware/atten-pps3xxx/api.c
127 libsigrok_la_SOURCES += \
128 hardware/brymen-bm86x/protocol.h \
129 hardware/brymen-bm86x/protocol.c \
130 hardware/brymen-bm86x/api.c
133 libsigrok_la_SOURCES += \
134 hardware/brymen-dmm/parser.c \
135 hardware/brymen-dmm/protocol.h \
136 hardware/brymen-dmm/protocol.c \
137 hardware/brymen-dmm/api.c
140 libsigrok_la_SOURCES += \
141 hardware/cem-dt-885x/protocol.h \
142 hardware/cem-dt-885x/protocol.c \
143 hardware/cem-dt-885x/api.c
146 libsigrok_la_SOURCES += \
147 hardware/center-3xx/protocol.h \
148 hardware/center-3xx/protocol.c \
149 hardware/center-3xx/api.c
152 libsigrok_la_SOURCES += \
153 hardware/chronovu-la/protocol.h \
154 hardware/chronovu-la/protocol.c \
155 hardware/chronovu-la/api.c
158 libsigrok_la_SOURCES += \
159 hardware/colead-slm/protocol.h \
160 hardware/colead-slm/protocol.c \
161 hardware/colead-slm/api.c
163 if HW_CONRAD_DIGI_35_CPU
164 libsigrok_la_SOURCES += \
165 hardware/conrad-digi-35-cpu/protocol.h \
166 hardware/conrad-digi-35-cpu/protocol.c \
167 hardware/conrad-digi-35-cpu/api.c
170 libsigrok_la_SOURCES += \
174 libsigrok_la_SOURCES += \
175 hardware/fluke-dmm/fluke-dmm.h \
176 hardware/fluke-dmm/fluke.c \
177 hardware/fluke-dmm/api.c
180 libsigrok_la_SOURCES += \
181 hardware/fx2lafw/protocol.h \
182 hardware/fx2lafw/protocol.c \
183 hardware/fx2lafw/api.c
186 libsigrok_la_SOURCES += \
187 hardware/gmc-mh-1x-2x/protocol.h \
188 hardware/gmc-mh-1x-2x/protocol.c \
189 hardware/gmc-mh-1x-2x/api.c
192 libsigrok_la_SOURCES += \
193 hardware/hameg-hmo/protocol.h \
194 hardware/hameg-hmo/protocol.c \
195 hardware/hameg-hmo/api.c
198 libsigrok_la_SOURCES += \
199 hardware/hantek-dso/dso.h \
200 hardware/hantek-dso/dso.c \
201 hardware/hantek-dso/api.c
203 if HW_IKALOGIC_SCANALOGIC2
204 libsigrok_la_SOURCES += \
205 hardware/ikalogic-scanalogic2/protocol.h \
206 hardware/ikalogic-scanalogic2/protocol.c \
207 hardware/ikalogic-scanalogic2/api.c
209 if HW_IKALOGIC_SCANAPLUS
210 libsigrok_la_SOURCES += \
211 hardware/ikalogic-scanaplus/protocol.h \
212 hardware/ikalogic-scanaplus/protocol.c \
213 hardware/ikalogic-scanaplus/api.c
215 if HW_KECHENG_KC_330B
216 libsigrok_la_SOURCES += \
217 hardware/kecheng-kc-330b/protocol.h \
218 hardware/kecheng-kc-330b/protocol.c \
219 hardware/kecheng-kc-330b/api.c
222 libsigrok_la_SOURCES += \
223 hardware/lascar-el-usb/protocol.h \
224 hardware/lascar-el-usb/protocol.c \
225 hardware/lascar-el-usb/api.c
228 libsigrok_la_SOURCES += \
229 hardware/mic-985xx/protocol.h \
230 hardware/mic-985xx/protocol.c \
231 hardware/mic-985xx/api.c
234 libsigrok_la_SOURCES += \
235 hardware/motech-lps-30x/protocol.h \
236 hardware/motech-lps-30x/protocol.c \
237 hardware/motech-lps-30x/api.c
240 libsigrok_la_SOURCES += \
241 hardware/norma-dmm/protocol.h \
242 hardware/norma-dmm/protocol.c \
243 hardware/norma-dmm/api.c
246 libsigrok_la_SOURCES += \
247 hardware/openbench-logic-sniffer/protocol.h \
248 hardware/openbench-logic-sniffer/protocol.c \
249 hardware/openbench-logic-sniffer/api.c
252 libsigrok_la_SOURCES += \
253 hardware/rigol-ds/protocol.h \
254 hardware/rigol-ds/protocol.c \
255 hardware/rigol-ds/api.c
258 libsigrok_la_SOURCES += \
259 hardware/saleae-logic16/protocol.h \
260 hardware/saleae-logic16/protocol.c \
261 hardware/saleae-logic16/api.c
264 libsigrok_la_SOURCES += \
265 hardware/serial-dmm/protocol.h \
266 hardware/serial-dmm/protocol.c \
267 hardware/serial-dmm/api.c
270 libsigrok_la_SOURCES += \
271 hardware/sysclk-lwla/lwla.h \
272 hardware/sysclk-lwla/lwla.c \
273 hardware/sysclk-lwla/protocol.h \
274 hardware/sysclk-lwla/protocol.c \
275 hardware/sysclk-lwla/api.c
278 libsigrok_la_SOURCES += \
279 hardware/teleinfo/protocol.h \
280 hardware/teleinfo/protocol.c \
281 hardware/teleinfo/api.c
284 libsigrok_la_SOURCES += \
285 hardware/tondaj-sl-814/protocol.h \
286 hardware/tondaj-sl-814/protocol.c \
287 hardware/tondaj-sl-814/api.c
290 libsigrok_la_SOURCES += \
291 hardware/uni-t-dmm/protocol.h \
292 hardware/uni-t-dmm/protocol.c \
293 hardware/uni-t-dmm/api.c
296 libsigrok_la_SOURCES += \
297 hardware/uni-t-ut32x/protocol.h \
298 hardware/uni-t-ut32x/protocol.c \
299 hardware/uni-t-ut32x/api.c
302 libsigrok_la_SOURCES += \
303 hardware/victor-dmm/protocol.h \
304 hardware/victor-dmm/protocol.c \
305 hardware/victor-dmm/api.c
307 if HW_ZEROPLUS_LOGIC_CUBE
308 libsigrok_la_SOURCES += \
309 hardware/zeroplus-logic-cube/analyzer.c \
310 hardware/zeroplus-logic-cube/analyzer.h \
311 hardware/zeroplus-logic-cube/gl_usb.h \
312 hardware/zeroplus-logic-cube/gl_usb.c \
313 hardware/zeroplus-logic-cube/protocol.h \
314 hardware/zeroplus-logic-cube/protocol.c \
315 hardware/zeroplus-logic-cube/api.c
318 libsigrok_la_LIBADD = $(LIBOBJS)
320 libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS)
322 library_includedir = $(includedir)/libsigrok
323 library_include_HEADERS = libsigrok.h proto.h version.h
324 noinst_HEADERS = libsigrok-internal.h
326 pkgconfigdir = $(libdir)/pkgconfig
327 pkgconfig_DATA = libsigrok.pc
333 contrib/gnuplot_chronovu_la8.gpi \
334 contrib/gnuplot_rigol_ds1xx2.gpi \
335 contrib/gnuplot_usbeesx.gpi \
336 contrib/gnuplot_usbeedx8.gpi \
337 contrib/gnuplot_usbeedx16.gpi \
338 contrib/sigrok-logo-notext.png \
339 contrib/z60_libsigrok.rules
343 TESTS = tests/check_main
345 check_PROGRAMS = ${TESTS}
347 tests_check_main_SOURCES = \
353 tests/check_input_all.c \
354 tests/check_input_binary.c \
355 tests/check_output_all.c \
356 tests/check_strutil.c \
357 tests/check_version.c \
358 tests/check_driver_all.c
360 tests_check_main_CFLAGS = @check_CFLAGS@
362 tests_check_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@
366 MAINTAINERCLEANFILES = ChangeLog
370 git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog