]> sigrok.org Git - libsigrok.git/blame - Makefile.am
Drop obsolete Linux-only usbtmc backend.
[libsigrok.git] / Makefile.am
CommitLineData
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 21ACLOCAL_AMFLAGS = -I autostuff
826938d8 22
67bd8055 23AM_CPPFLAGS = -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"'
340f6e7a 24
8a7b47cd 25lib_LTLIBRARIES = libsigrok.la
a1bb33af 26
67bd8055 27# Backend files
a695d6c0 28libsigrok_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 \
b08024a8 35 strutil.c \
787c4390 36 log.c \
29682168 37 version.c \
063e7aef
UH
38 error.c \
39 std.c
960a75e4 40
67bd8055
UH
41# Input formats
42libsigrok_la_SOURCES += \
43 input/binary.c \
44 input/chronovu_la8.c \
45 input/csv.c \
46 input/input.c \
47 input/vcd.c \
48 input/wav.c
49
50# Output formats
51libsigrok_la_SOURCES += \
dba3e682
BV
52 output/output.c \
53 output/analog.c \
54 output/ascii.c \
dbd0aeff 55 output/bits.c \
dba3e682 56 output/binary.c \
67bd8055 57 output/csv.c \
dba3e682
BV
58 output/chronovu_la8.c \
59 output/gnuplot.c \
8d3af2e8 60 output/hex.c \
dba3e682
BV
61 output/ols.c \
62 output/vcd.c
67bd8055
UH
63
64# Hardware (common files)
65libsigrok_la_SOURCES += \
66 hardware/common/scpi.c \
2fa222c7 67 hardware/common/scpi_tcp.c
67bd8055
UH
68if NEED_RPC
69libsigrok_la_SOURCES += \
70 hardware/common/scpi_vxi.c \
71 hardware/common/vxi_clnt.c \
36cf5b54
UH
72 hardware/common/vxi_xdr.c \
73 hardware/common/vxi.h
67bd8055
UH
74endif
75if NEED_SERIAL
76libsigrok_la_SOURCES += \
77 hardware/common/serial.c \
78 hardware/common/scpi_serial.c
79endif
80if NEED_USB
81libsigrok_la_SOURCES += \
82 hardware/common/ezusb.c \
83 hardware/common/usb.c \
84 hardware/common/scpi_usbtmc_libusb.c
85endif
86if NEED_VISA
87libsigrok_la_SOURCES += \
88 hardware/common/scpi_visa.c
89endif
90
91# Hardware (DMM parsers)
92libsigrok_la_SOURCES += \
93 hardware/common/dmm/es519xx.c \
94 hardware/common/dmm/fs9721.c \
95 hardware/common/dmm/fs9922.c \
96 hardware/common/dmm/m2110.c \
97 hardware/common/dmm/metex14.c \
98 hardware/common/dmm/rs9lcd.c
99
100# Hardware drivers
101if HW_AGILENT_DMM
102libsigrok_la_SOURCES += \
103 hardware/agilent-dmm/api.c \
104 hardware/agilent-dmm/agilent-dmm.h \
105 hardware/agilent-dmm/sched.c
106endif
67bd8055
UH
107if HW_APPA_55II
108libsigrok_la_SOURCES += \
109 hardware/appa-55ii/protocol.h \
110 hardware/appa-55ii/protocol.c \
111 hardware/appa-55ii/api.c
112endif
113if HW_ASIX_SIGMA
114libsigrok_la_SOURCES += \
115 hardware/asix-sigma/asix-sigma.h \
116 hardware/asix-sigma/asix-sigma.c
117endif
118if HW_ATTEN_PPS3XXX
119libsigrok_la_SOURCES += \
120 hardware/atten-pps3xxx/protocol.h \
121 hardware/atten-pps3xxx/protocol.c \
122 hardware/atten-pps3xxx/api.c
123endif
124if HW_BRYMEN_BM86X
125libsigrok_la_SOURCES += \
126 hardware/brymen-bm86x/protocol.h \
127 hardware/brymen-bm86x/protocol.c \
128 hardware/brymen-bm86x/api.c
129endif
130if HW_BRYMEN_DMM
131libsigrok_la_SOURCES += \
132 hardware/brymen-dmm/parser.c \
133 hardware/brymen-dmm/protocol.h \
134 hardware/brymen-dmm/protocol.c \
135 hardware/brymen-dmm/api.c
136endif
137if HW_CEM_DT_885X
138libsigrok_la_SOURCES += \
139 hardware/cem-dt-885x/protocol.h \
140 hardware/cem-dt-885x/protocol.c \
141 hardware/cem-dt-885x/api.c
142endif
143if HW_CENTER_3XX
144libsigrok_la_SOURCES += \
145 hardware/center-3xx/protocol.h \
146 hardware/center-3xx/protocol.c \
147 hardware/center-3xx/api.c
148endif
7b356712 149if HW_CHRONOVU_LA
67bd8055 150libsigrok_la_SOURCES += \
7b356712
UH
151 hardware/chronovu-la/protocol.h \
152 hardware/chronovu-la/protocol.c \
153 hardware/chronovu-la/api.c
67bd8055
UH
154endif
155if HW_COLEAD_SLM
156libsigrok_la_SOURCES += \
157 hardware/colead-slm/protocol.h \
158 hardware/colead-slm/protocol.c \
159 hardware/colead-slm/api.c
160endif
161if HW_CONRAD_DIGI_35_CPU
162libsigrok_la_SOURCES += \
163 hardware/conrad-digi-35-cpu/protocol.h \
164 hardware/conrad-digi-35-cpu/protocol.c \
165 hardware/conrad-digi-35-cpu/api.c
166endif
167if HW_DEMO
168libsigrok_la_SOURCES += \
169 hardware/demo/demo.c
170endif
171if HW_FLUKE_DMM
172libsigrok_la_SOURCES += \
173 hardware/fluke-dmm/fluke-dmm.h \
174 hardware/fluke-dmm/fluke.c \
175 hardware/fluke-dmm/api.c
176endif
177if HW_FX2LAFW
178libsigrok_la_SOURCES += \
179 hardware/fx2lafw/protocol.h \
180 hardware/fx2lafw/protocol.c \
181 hardware/fx2lafw/api.c
182endif
183if HW_GMC_MH_1X_2X
184libsigrok_la_SOURCES += \
185 hardware/gmc-mh-1x-2x/protocol.h \
186 hardware/gmc-mh-1x-2x/protocol.c \
187 hardware/gmc-mh-1x-2x/api.c
188endif
189if HW_HAMEG_HMO
190libsigrok_la_SOURCES += \
191 hardware/hameg-hmo/protocol.h \
192 hardware/hameg-hmo/protocol.c \
193 hardware/hameg-hmo/api.c
194endif
195if HW_HANTEK_DSO
196libsigrok_la_SOURCES += \
197 hardware/hantek-dso/dso.h \
198 hardware/hantek-dso/dso.c \
199 hardware/hantek-dso/api.c
200endif
201if HW_IKALOGIC_SCANALOGIC2
202libsigrok_la_SOURCES += \
203 hardware/ikalogic-scanalogic2/protocol.h \
204 hardware/ikalogic-scanalogic2/protocol.c \
205 hardware/ikalogic-scanalogic2/api.c
206endif
207if HW_IKALOGIC_SCANAPLUS
208libsigrok_la_SOURCES += \
209 hardware/ikalogic-scanaplus/protocol.h \
210 hardware/ikalogic-scanaplus/protocol.c \
211 hardware/ikalogic-scanaplus/api.c
212endif
213if HW_KECHENG_KC_330B
214libsigrok_la_SOURCES += \
215 hardware/kecheng-kc-330b/protocol.h \
216 hardware/kecheng-kc-330b/protocol.c \
217 hardware/kecheng-kc-330b/api.c
218endif
219if HW_LASCAR_EL_USB
220libsigrok_la_SOURCES += \
221 hardware/lascar-el-usb/protocol.h \
222 hardware/lascar-el-usb/protocol.c \
223 hardware/lascar-el-usb/api.c
224endif
225if HW_LINK_MSO19
226libsigrok_la_SOURCES += \
227 hardware/link-mso19/protocol.h \
228 hardware/link-mso19/protocol.c \
229 hardware/link-mso19/api.c
230endif
231if HW_MIC_985XX
232libsigrok_la_SOURCES += \
233 hardware/mic-985xx/protocol.h \
234 hardware/mic-985xx/protocol.c \
235 hardware/mic-985xx/api.c
236endif
237if HW_NORMA_DMM
238libsigrok_la_SOURCES += \
239 hardware/norma-dmm/protocol.h \
240 hardware/norma-dmm/protocol.c \
241 hardware/norma-dmm/api.c
242endif
243if HW_OLS
244libsigrok_la_SOURCES += \
245 hardware/openbench-logic-sniffer/protocol.h \
246 hardware/openbench-logic-sniffer/protocol.c \
247 hardware/openbench-logic-sniffer/api.c
248endif
249if HW_RIGOL_DS
250libsigrok_la_SOURCES += \
251 hardware/rigol-ds/protocol.h \
252 hardware/rigol-ds/protocol.c \
253 hardware/rigol-ds/api.c
254endif
255if HW_SALEAE_LOGIC16
256libsigrok_la_SOURCES += \
257 hardware/saleae-logic16/protocol.h \
258 hardware/saleae-logic16/protocol.c \
259 hardware/saleae-logic16/api.c
260endif
261if HW_SERIAL_DMM
262libsigrok_la_SOURCES += \
263 hardware/serial-dmm/protocol.h \
264 hardware/serial-dmm/protocol.c \
265 hardware/serial-dmm/api.c
266endif
267if HW_SYSCLK_LWLA
268libsigrok_la_SOURCES += \
269 hardware/sysclk-lwla/lwla.h \
270 hardware/sysclk-lwla/lwla.c \
271 hardware/sysclk-lwla/protocol.h \
272 hardware/sysclk-lwla/protocol.c \
273 hardware/sysclk-lwla/api.c
274endif
275if HW_TELEINFO
276libsigrok_la_SOURCES += \
277 hardware/teleinfo/protocol.h \
278 hardware/teleinfo/protocol.c \
279 hardware/teleinfo/api.c
280endif
281if HW_TONDAJ_SL_814
282libsigrok_la_SOURCES += \
283 hardware/tondaj-sl-814/protocol.h \
284 hardware/tondaj-sl-814/protocol.c \
285 hardware/tondaj-sl-814/api.c
286endif
287if HW_UNI_T_DMM
288libsigrok_la_SOURCES += \
289 hardware/uni-t-dmm/protocol.h \
290 hardware/uni-t-dmm/protocol.c \
291 hardware/uni-t-dmm/api.c
292endif
293if HW_UNI_T_UT32X
294libsigrok_la_SOURCES += \
295 hardware/uni-t-ut32x/protocol.h \
296 hardware/uni-t-ut32x/protocol.c \
297 hardware/uni-t-ut32x/api.c
298endif
299if HW_VICTOR_DMM
300libsigrok_la_SOURCES += \
301 hardware/victor-dmm/protocol.h \
302 hardware/victor-dmm/protocol.c \
303 hardware/victor-dmm/api.c
304endif
305if HW_ZEROPLUS_LOGIC_CUBE
306libsigrok_la_SOURCES += \
307 hardware/zeroplus-logic-cube/analyzer.c \
308 hardware/zeroplus-logic-cube/analyzer.h \
309 hardware/zeroplus-logic-cube/gl_usb.h \
310 hardware/zeroplus-logic-cube/gl_usb.c \
311 hardware/zeroplus-logic-cube/protocol.h \
312 hardware/zeroplus-logic-cube/protocol.c \
313 hardware/zeroplus-logic-cube/api.c
314endif
315
316libsigrok_la_LIBADD = $(LIBOBJS)
a1bb33af 317
6dddd902 318libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS)
eeebceea 319
45c59c8b
BV
320library_includedir = $(includedir)/libsigrok
321library_include_HEADERS = libsigrok.h proto.h version.h
322noinst_HEADERS = libsigrok-internal.h
a1bb33af 323
8a7b47cd
UH
324pkgconfigdir = $(libdir)/pkgconfig
325pkgconfig_DATA = libsigrok.pc
d658e348 326
67bd8055
UH
327EXTRA_DIST = \
328 Doxyfile \
329 HACKING \
330 README.devices \
331 contrib/gnuplot_chronovu_la8.gpi \
332 contrib/gnuplot_rigol_ds1xx2.gpi \
333 contrib/gnuplot_usbeesx.gpi \
334 contrib/gnuplot_usbeedx8.gpi \
335 contrib/gnuplot_usbeedx16.gpi \
336 contrib/sigrok-logo-notext.png \
337 contrib/z60_libsigrok.rules
338
339if HAVE_CHECK
340
341TESTS = tests/check_main
342
343check_PROGRAMS = ${TESTS}
344
345tests_check_main_SOURCES = \
346 libsigrok.h \
347 tests/lib.c \
348 tests/lib.h \
349 tests/check_main.c \
350 tests/check_core.c \
351 tests/check_input_all.c \
352 tests/check_input_binary.c \
353 tests/check_output_all.c \
354 tests/check_strutil.c \
355 tests/check_version.c \
356 tests/check_driver_all.c
357
358tests_check_main_CFLAGS = @check_CFLAGS@
359
360tests_check_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@
361
362endif
dd8b5f56 363
c0958408 364MAINTAINERCLEANFILES = ChangeLog
0fc12d66
UH
365
366.PHONY: ChangeLog
367ChangeLog:
bd58d8f3 368 git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog
0fc12d66
UH
369
370dist-hook: ChangeLog
371