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