]>
Commit | Line | Data |
---|---|---|
62c82025 | 1 | ## |
50985c20 | 2 | ## This file is part of the libsigrok project. |
62c82025 | 3 | ## |
c73d2ea4 | 4 | ## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com> |
d375b3c3 | 5 | ## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com> |
62c82025 | 6 | ## |
a1bb33af UH |
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. | |
62c82025 | 11 | ## |
a1bb33af UH |
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. | |
62c82025 | 16 | ## |
a1bb33af UH |
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/>. | |
62c82025 | 19 | ## |
a1bb33af | 20 | |
d8521c93 | 21 | ACLOCAL_AMFLAGS = -I autostuff |
826938d8 | 22 | |
67bd8055 | 23 | AM_CPPFLAGS = -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' |
340f6e7a | 24 | |
8a7b47cd | 25 | lib_LTLIBRARIES = libsigrok.la |
a1bb33af | 26 | |
67bd8055 | 27 | # Backend files |
a695d6c0 | 28 | libsigrok_la_SOURCES = \ |
a1bb33af | 29 | backend.c \ |
a1bb33af UH |
30 | device.c \ |
31 | session.c \ | |
7d658874 BV |
32 | session_file.c \ |
33 | session_driver.c \ | |
c30b417f | 34 | hwdriver.c \ |
40f5ddac | 35 | filter.c \ |
b08024a8 | 36 | strutil.c \ |
787c4390 | 37 | log.c \ |
29682168 | 38 | version.c \ |
063e7aef UH |
39 | error.c \ |
40 | std.c | |
960a75e4 | 41 | |
67bd8055 UH |
42 | # Input formats |
43 | libsigrok_la_SOURCES += \ | |
44 | input/binary.c \ | |
45 | input/chronovu_la8.c \ | |
46 | input/csv.c \ | |
47 | input/input.c \ | |
48 | input/vcd.c \ | |
49 | input/wav.c | |
50 | ||
51 | # Output formats | |
52 | libsigrok_la_SOURCES += \ | |
53 | output/binary.c \ | |
54 | output/vcd.c \ | |
55 | output/ols.c \ | |
56 | output/gnuplot.c \ | |
57 | output/chronovu_la8.c \ | |
58 | output/csv.c \ | |
59 | output/analog.c \ | |
60 | output/output.c \ | |
61 | output/text/text.c \ | |
62 | output/text/text.h \ | |
63 | output/text/bits.c \ | |
64 | output/text/hex.c \ | |
65 | output/text/ascii.c | |
66 | ||
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 | |
72 | if NEED_RPC | |
73 | libsigrok_la_SOURCES += \ | |
74 | hardware/common/scpi_vxi.c \ | |
75 | hardware/common/vxi_clnt.c \ | |
36cf5b54 UH |
76 | hardware/common/vxi_xdr.c \ |
77 | hardware/common/vxi.h | |
67bd8055 UH |
78 | endif |
79 | if NEED_SERIAL | |
80 | libsigrok_la_SOURCES += \ | |
81 | hardware/common/serial.c \ | |
82 | hardware/common/scpi_serial.c | |
83 | endif | |
84 | if NEED_USB | |
85 | libsigrok_la_SOURCES += \ | |
86 | hardware/common/ezusb.c \ | |
87 | hardware/common/usb.c \ | |
88 | hardware/common/scpi_usbtmc_libusb.c | |
89 | endif | |
90 | if NEED_VISA | |
91 | libsigrok_la_SOURCES += \ | |
92 | hardware/common/scpi_visa.c | |
93 | endif | |
94 | ||
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 | |
103 | ||
104 | # Hardware drivers | |
105 | if HW_AGILENT_DMM | |
106 | libsigrok_la_SOURCES += \ | |
107 | hardware/agilent-dmm/api.c \ | |
108 | hardware/agilent-dmm/agilent-dmm.h \ | |
109 | hardware/agilent-dmm/sched.c | |
110 | endif | |
111 | if HW_ALSA | |
112 | libsigrok_la_SOURCES += \ | |
113 | hardware/alsa/protocol.h \ | |
114 | hardware/alsa/protocol.c \ | |
115 | hardware/alsa/api.c | |
116 | endif | |
117 | if HW_APPA_55II | |
118 | libsigrok_la_SOURCES += \ | |
119 | hardware/appa-55ii/protocol.h \ | |
120 | hardware/appa-55ii/protocol.c \ | |
121 | hardware/appa-55ii/api.c | |
122 | endif | |
123 | if HW_ASIX_SIGMA | |
124 | libsigrok_la_SOURCES += \ | |
125 | hardware/asix-sigma/asix-sigma.h \ | |
126 | hardware/asix-sigma/asix-sigma.c | |
127 | endif | |
128 | if HW_ATTEN_PPS3XXX | |
129 | libsigrok_la_SOURCES += \ | |
130 | hardware/atten-pps3xxx/protocol.h \ | |
131 | hardware/atten-pps3xxx/protocol.c \ | |
132 | hardware/atten-pps3xxx/api.c | |
133 | endif | |
134 | if HW_BRYMEN_BM86X | |
135 | libsigrok_la_SOURCES += \ | |
136 | hardware/brymen-bm86x/protocol.h \ | |
137 | hardware/brymen-bm86x/protocol.c \ | |
138 | hardware/brymen-bm86x/api.c | |
139 | endif | |
140 | if HW_BRYMEN_DMM | |
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 | |
146 | endif | |
147 | if HW_CEM_DT_885X | |
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 | |
152 | endif | |
153 | if HW_CENTER_3XX | |
154 | libsigrok_la_SOURCES += \ | |
155 | hardware/center-3xx/protocol.h \ | |
156 | hardware/center-3xx/protocol.c \ | |
157 | hardware/center-3xx/api.c | |
158 | endif | |
7b356712 | 159 | if HW_CHRONOVU_LA |
67bd8055 | 160 | libsigrok_la_SOURCES += \ |
7b356712 UH |
161 | hardware/chronovu-la/protocol.h \ |
162 | hardware/chronovu-la/protocol.c \ | |
163 | hardware/chronovu-la/api.c | |
67bd8055 UH |
164 | endif |
165 | if HW_COLEAD_SLM | |
166 | libsigrok_la_SOURCES += \ | |
167 | hardware/colead-slm/protocol.h \ | |
168 | hardware/colead-slm/protocol.c \ | |
169 | hardware/colead-slm/api.c | |
170 | endif | |
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 | |
176 | endif | |
177 | if HW_DEMO | |
178 | libsigrok_la_SOURCES += \ | |
179 | hardware/demo/demo.c | |
180 | endif | |
181 | if HW_FLUKE_DMM | |
182 | libsigrok_la_SOURCES += \ | |
183 | hardware/fluke-dmm/fluke-dmm.h \ | |
184 | hardware/fluke-dmm/fluke.c \ | |
185 | hardware/fluke-dmm/api.c | |
186 | endif | |
187 | if HW_FX2LAFW | |
188 | libsigrok_la_SOURCES += \ | |
189 | hardware/fx2lafw/protocol.h \ | |
190 | hardware/fx2lafw/protocol.c \ | |
191 | hardware/fx2lafw/api.c | |
192 | endif | |
193 | if HW_GMC_MH_1X_2X | |
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 | |
198 | endif | |
199 | if HW_HAMEG_HMO | |
200 | libsigrok_la_SOURCES += \ | |
201 | hardware/hameg-hmo/protocol.h \ | |
202 | hardware/hameg-hmo/protocol.c \ | |
203 | hardware/hameg-hmo/api.c | |
204 | endif | |
205 | if HW_HANTEK_DSO | |
206 | libsigrok_la_SOURCES += \ | |
207 | hardware/hantek-dso/dso.h \ | |
208 | hardware/hantek-dso/dso.c \ | |
209 | hardware/hantek-dso/api.c | |
210 | endif | |
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 | |
216 | endif | |
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 | |
222 | endif | |
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 | |
228 | endif | |
229 | if HW_LASCAR_EL_USB | |
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 | |
234 | endif | |
235 | if HW_LINK_MSO19 | |
236 | libsigrok_la_SOURCES += \ | |
237 | hardware/link-mso19/protocol.h \ | |
238 | hardware/link-mso19/protocol.c \ | |
239 | hardware/link-mso19/api.c | |
240 | endif | |
241 | if HW_MIC_985XX | |
242 | libsigrok_la_SOURCES += \ | |
243 | hardware/mic-985xx/protocol.h \ | |
244 | hardware/mic-985xx/protocol.c \ | |
245 | hardware/mic-985xx/api.c | |
246 | endif | |
247 | if HW_NORMA_DMM | |
248 | libsigrok_la_SOURCES += \ | |
249 | hardware/norma-dmm/protocol.h \ | |
250 | hardware/norma-dmm/protocol.c \ | |
251 | hardware/norma-dmm/api.c | |
252 | endif | |
253 | if HW_OLS | |
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 | |
258 | endif | |
259 | if HW_RIGOL_DS | |
260 | libsigrok_la_SOURCES += \ | |
261 | hardware/rigol-ds/protocol.h \ | |
262 | hardware/rigol-ds/protocol.c \ | |
263 | hardware/rigol-ds/api.c | |
264 | endif | |
265 | if HW_SALEAE_LOGIC16 | |
266 | libsigrok_la_SOURCES += \ | |
267 | hardware/saleae-logic16/protocol.h \ | |
268 | hardware/saleae-logic16/protocol.c \ | |
269 | hardware/saleae-logic16/api.c | |
270 | endif | |
271 | if HW_SERIAL_DMM | |
272 | libsigrok_la_SOURCES += \ | |
273 | hardware/serial-dmm/protocol.h \ | |
274 | hardware/serial-dmm/protocol.c \ | |
275 | hardware/serial-dmm/api.c | |
276 | endif | |
277 | if HW_SYSCLK_LWLA | |
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 | |
284 | endif | |
285 | if HW_TELEINFO | |
286 | libsigrok_la_SOURCES += \ | |
287 | hardware/teleinfo/protocol.h \ | |
288 | hardware/teleinfo/protocol.c \ | |
289 | hardware/teleinfo/api.c | |
290 | endif | |
291 | if HW_TONDAJ_SL_814 | |
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 | |
296 | endif | |
297 | if HW_UNI_T_DMM | |
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 | |
302 | endif | |
303 | if HW_UNI_T_UT32X | |
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 | |
308 | endif | |
309 | if HW_VICTOR_DMM | |
310 | libsigrok_la_SOURCES += \ | |
311 | hardware/victor-dmm/protocol.h \ | |
312 | hardware/victor-dmm/protocol.c \ | |
313 | hardware/victor-dmm/api.c | |
314 | endif | |
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 | |
324 | endif | |
325 | ||
326 | libsigrok_la_LIBADD = $(LIBOBJS) | |
a1bb33af | 327 | |
6dddd902 | 328 | libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS) |
eeebceea | 329 | |
45c59c8b BV |
330 | library_includedir = $(includedir)/libsigrok |
331 | library_include_HEADERS = libsigrok.h proto.h version.h | |
332 | noinst_HEADERS = libsigrok-internal.h | |
a1bb33af | 333 | |
8a7b47cd UH |
334 | pkgconfigdir = $(libdir)/pkgconfig |
335 | pkgconfig_DATA = libsigrok.pc | |
d658e348 | 336 | |
67bd8055 UH |
337 | EXTRA_DIST = \ |
338 | Doxyfile \ | |
339 | HACKING \ | |
340 | README.devices \ | |
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 | |
348 | ||
349 | if HAVE_CHECK | |
350 | ||
351 | TESTS = tests/check_main | |
352 | ||
353 | check_PROGRAMS = ${TESTS} | |
354 | ||
355 | tests_check_main_SOURCES = \ | |
356 | libsigrok.h \ | |
357 | tests/lib.c \ | |
358 | tests/lib.h \ | |
359 | tests/check_main.c \ | |
360 | tests/check_core.c \ | |
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 | |
367 | ||
368 | tests_check_main_CFLAGS = @check_CFLAGS@ | |
369 | ||
370 | tests_check_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@ | |
371 | ||
372 | endif | |
dd8b5f56 | 373 | |
c0958408 | 374 | MAINTAINERCLEANFILES = ChangeLog |
0fc12d66 UH |
375 | |
376 | .PHONY: ChangeLog | |
377 | ChangeLog: | |
bd58d8f3 | 378 | git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog |
0fc12d66 UH |
379 | |
380 | dist-hook: ChangeLog | |
381 |