]> sigrok.org Git - libsigrok.git/blame - Makefile.am
output/ascii: Rewrite for new 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 \
62 output/text/text.c \
63 output/text/text.h \
8d3af2e8 64 output/hex.c \
6f64ebb2 65 output/ascii.c
67bd8055
UH
66
67# Hardware (common files)
68libsigrok_la_SOURCES += \
69 hardware/common/scpi.c \
70 hardware/common/scpi_tcp.c \
71 hardware/common/scpi_usbtmc.c
72if NEED_RPC
73libsigrok_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
78endif
79if NEED_SERIAL
80libsigrok_la_SOURCES += \
81 hardware/common/serial.c \
82 hardware/common/scpi_serial.c
83endif
84if NEED_USB
85libsigrok_la_SOURCES += \
86 hardware/common/ezusb.c \
87 hardware/common/usb.c \
88 hardware/common/scpi_usbtmc_libusb.c
89endif
90if NEED_VISA
91libsigrok_la_SOURCES += \
92 hardware/common/scpi_visa.c
93endif
94
95# Hardware (DMM parsers)
96libsigrok_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
105if HW_AGILENT_DMM
106libsigrok_la_SOURCES += \
107 hardware/agilent-dmm/api.c \
108 hardware/agilent-dmm/agilent-dmm.h \
109 hardware/agilent-dmm/sched.c
110endif
111if HW_ALSA
112libsigrok_la_SOURCES += \
113 hardware/alsa/protocol.h \
114 hardware/alsa/protocol.c \
115 hardware/alsa/api.c
116endif
117if HW_APPA_55II
118libsigrok_la_SOURCES += \
119 hardware/appa-55ii/protocol.h \
120 hardware/appa-55ii/protocol.c \
121 hardware/appa-55ii/api.c
122endif
123if HW_ASIX_SIGMA
124libsigrok_la_SOURCES += \
125 hardware/asix-sigma/asix-sigma.h \
126 hardware/asix-sigma/asix-sigma.c
127endif
128if HW_ATTEN_PPS3XXX
129libsigrok_la_SOURCES += \
130 hardware/atten-pps3xxx/protocol.h \
131 hardware/atten-pps3xxx/protocol.c \
132 hardware/atten-pps3xxx/api.c
133endif
134if HW_BRYMEN_BM86X
135libsigrok_la_SOURCES += \
136 hardware/brymen-bm86x/protocol.h \
137 hardware/brymen-bm86x/protocol.c \
138 hardware/brymen-bm86x/api.c
139endif
140if HW_BRYMEN_DMM
141libsigrok_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
146endif
147if HW_CEM_DT_885X
148libsigrok_la_SOURCES += \
149 hardware/cem-dt-885x/protocol.h \
150 hardware/cem-dt-885x/protocol.c \
151 hardware/cem-dt-885x/api.c
152endif
153if HW_CENTER_3XX
154libsigrok_la_SOURCES += \
155 hardware/center-3xx/protocol.h \
156 hardware/center-3xx/protocol.c \
157 hardware/center-3xx/api.c
158endif
7b356712 159if HW_CHRONOVU_LA
67bd8055 160libsigrok_la_SOURCES += \
7b356712
UH
161 hardware/chronovu-la/protocol.h \
162 hardware/chronovu-la/protocol.c \
163 hardware/chronovu-la/api.c
67bd8055
UH
164endif
165if HW_COLEAD_SLM
166libsigrok_la_SOURCES += \
167 hardware/colead-slm/protocol.h \
168 hardware/colead-slm/protocol.c \
169 hardware/colead-slm/api.c
170endif
171if HW_CONRAD_DIGI_35_CPU
172libsigrok_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
176endif
177if HW_DEMO
178libsigrok_la_SOURCES += \
179 hardware/demo/demo.c
180endif
181if HW_FLUKE_DMM
182libsigrok_la_SOURCES += \
183 hardware/fluke-dmm/fluke-dmm.h \
184 hardware/fluke-dmm/fluke.c \
185 hardware/fluke-dmm/api.c
186endif
187if HW_FX2LAFW
188libsigrok_la_SOURCES += \
189 hardware/fx2lafw/protocol.h \
190 hardware/fx2lafw/protocol.c \
191 hardware/fx2lafw/api.c
192endif
193if HW_GMC_MH_1X_2X
194libsigrok_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
198endif
199if HW_HAMEG_HMO
200libsigrok_la_SOURCES += \
201 hardware/hameg-hmo/protocol.h \
202 hardware/hameg-hmo/protocol.c \
203 hardware/hameg-hmo/api.c
204endif
205if HW_HANTEK_DSO
206libsigrok_la_SOURCES += \
207 hardware/hantek-dso/dso.h \
208 hardware/hantek-dso/dso.c \
209 hardware/hantek-dso/api.c
210endif
211if HW_IKALOGIC_SCANALOGIC2
212libsigrok_la_SOURCES += \
213 hardware/ikalogic-scanalogic2/protocol.h \
214 hardware/ikalogic-scanalogic2/protocol.c \
215 hardware/ikalogic-scanalogic2/api.c
216endif
217if HW_IKALOGIC_SCANAPLUS
218libsigrok_la_SOURCES += \
219 hardware/ikalogic-scanaplus/protocol.h \
220 hardware/ikalogic-scanaplus/protocol.c \
221 hardware/ikalogic-scanaplus/api.c
222endif
223if HW_KECHENG_KC_330B
224libsigrok_la_SOURCES += \
225 hardware/kecheng-kc-330b/protocol.h \
226 hardware/kecheng-kc-330b/protocol.c \
227 hardware/kecheng-kc-330b/api.c
228endif
229if HW_LASCAR_EL_USB
230libsigrok_la_SOURCES += \
231 hardware/lascar-el-usb/protocol.h \
232 hardware/lascar-el-usb/protocol.c \
233 hardware/lascar-el-usb/api.c
234endif
235if HW_LINK_MSO19
236libsigrok_la_SOURCES += \
237 hardware/link-mso19/protocol.h \
238 hardware/link-mso19/protocol.c \
239 hardware/link-mso19/api.c
240endif
241if HW_MIC_985XX
242libsigrok_la_SOURCES += \
243 hardware/mic-985xx/protocol.h \
244 hardware/mic-985xx/protocol.c \
245 hardware/mic-985xx/api.c
246endif
247if HW_NORMA_DMM
248libsigrok_la_SOURCES += \
249 hardware/norma-dmm/protocol.h \
250 hardware/norma-dmm/protocol.c \
251 hardware/norma-dmm/api.c
252endif
253if HW_OLS
254libsigrok_la_SOURCES += \
255 hardware/openbench-logic-sniffer/protocol.h \
256 hardware/openbench-logic-sniffer/protocol.c \
257 hardware/openbench-logic-sniffer/api.c
258endif
259if HW_RIGOL_DS
260libsigrok_la_SOURCES += \
261 hardware/rigol-ds/protocol.h \
262 hardware/rigol-ds/protocol.c \
263 hardware/rigol-ds/api.c
264endif
265if HW_SALEAE_LOGIC16
266libsigrok_la_SOURCES += \
267 hardware/saleae-logic16/protocol.h \
268 hardware/saleae-logic16/protocol.c \
269 hardware/saleae-logic16/api.c
270endif
271if HW_SERIAL_DMM
272libsigrok_la_SOURCES += \
273 hardware/serial-dmm/protocol.h \
274 hardware/serial-dmm/protocol.c \
275 hardware/serial-dmm/api.c
276endif
277if HW_SYSCLK_LWLA
278libsigrok_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
284endif
285if HW_TELEINFO
286libsigrok_la_SOURCES += \
287 hardware/teleinfo/protocol.h \
288 hardware/teleinfo/protocol.c \
289 hardware/teleinfo/api.c
290endif
291if HW_TONDAJ_SL_814
292libsigrok_la_SOURCES += \
293 hardware/tondaj-sl-814/protocol.h \
294 hardware/tondaj-sl-814/protocol.c \
295 hardware/tondaj-sl-814/api.c
296endif
297if HW_UNI_T_DMM
298libsigrok_la_SOURCES += \
299 hardware/uni-t-dmm/protocol.h \
300 hardware/uni-t-dmm/protocol.c \
301 hardware/uni-t-dmm/api.c
302endif
303if HW_UNI_T_UT32X
304libsigrok_la_SOURCES += \
305 hardware/uni-t-ut32x/protocol.h \
306 hardware/uni-t-ut32x/protocol.c \
307 hardware/uni-t-ut32x/api.c
308endif
309if HW_VICTOR_DMM
310libsigrok_la_SOURCES += \
311 hardware/victor-dmm/protocol.h \
312 hardware/victor-dmm/protocol.c \
313 hardware/victor-dmm/api.c
314endif
315if HW_ZEROPLUS_LOGIC_CUBE
316libsigrok_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
324endif
325
326libsigrok_la_LIBADD = $(LIBOBJS)
a1bb33af 327
6dddd902 328libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS)
eeebceea 329
45c59c8b
BV
330library_includedir = $(includedir)/libsigrok
331library_include_HEADERS = libsigrok.h proto.h version.h
332noinst_HEADERS = libsigrok-internal.h
a1bb33af 333
8a7b47cd
UH
334pkgconfigdir = $(libdir)/pkgconfig
335pkgconfig_DATA = libsigrok.pc
d658e348 336
67bd8055
UH
337EXTRA_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
349if HAVE_CHECK
350
351TESTS = tests/check_main
352
353check_PROGRAMS = ${TESTS}
354
355tests_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
368tests_check_main_CFLAGS = @check_CFLAGS@
369
370tests_check_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@
371
372endif
dd8b5f56 373
c0958408 374MAINTAINERCLEANFILES = ChangeLog
0fc12d66
UH
375
376.PHONY: ChangeLog
377ChangeLog:
bd58d8f3 378 git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog
0fc12d66
UH
379
380dist-hook: ChangeLog
381