]> sigrok.org Git - libsigrok.git/blame_incremental - Makefile.am
libsigrok.h: add new type of device: ELECTRONIC_LOAD.
[libsigrok.git] / Makefile.am
... / ...
CommitLineData
1##
2## This file is part of the libsigrok project.
3##
4## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
5## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
6##
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.
11##
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.
16##
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/>.
19##
20
21ACLOCAL_AMFLAGS = -I autostuff
22
23AM_CPPFLAGS = -I$(srcdir)/src -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"'
24
25lib_LTLIBRARIES = libsigrok.la
26
27# Backend files
28libsigrok_la_SOURCES = \
29 src/backend.c \
30 src/device.c \
31 src/session.c \
32 src/session_file.c \
33 src/session_driver.c \
34 src/drivers.c \
35 src/hwdriver.c \
36 src/trigger.c \
37 src/soft-trigger.c \
38 src/analog.c \
39 src/fallback.c \
40 src/strutil.c \
41 src/log.c \
42 src/version.c \
43 src/error.c \
44 src/std.c
45
46# Input modules
47libsigrok_la_SOURCES += \
48 src/input/input.c \
49 src/input/binary.c \
50 src/input/chronovu_la8.c \
51 src/input/csv.c \
52 src/input/vcd.c \
53 src/input/wav.c
54
55# Output modules
56libsigrok_la_SOURCES += \
57 src/output/output.c \
58 src/output/analog.c \
59 src/output/ascii.c \
60 src/output/bits.c \
61 src/output/binary.c \
62 src/output/csv.c \
63 src/output/chronovu_la8.c \
64 src/output/wav.c \
65 src/output/gnuplot.c \
66 src/output/hex.c \
67 src/output/ols.c \
68 src/output/srzip.c \
69 src/output/vcd.c
70
71# Transform modules
72libsigrok_la_SOURCES += \
73 src/transform/transform.c \
74 src/transform/nop.c \
75 src/transform/scale.c \
76 src/transform/invert.c
77
78# SCPI support
79libsigrok_la_SOURCES += \
80 src/scpi/scpi.c \
81 src/scpi/scpi_tcp.c
82if NEED_RPC
83libsigrok_la_SOURCES += \
84 src/scpi/scpi_vxi.c \
85 src/scpi/vxi_clnt.c \
86 src/scpi/vxi_xdr.c \
87 src/scpi/vxi.h
88endif
89if NEED_SERIAL
90libsigrok_la_SOURCES += \
91 src/serial.c \
92 src/scpi/scpi_serial.c
93endif
94if NEED_USB
95libsigrok_la_SOURCES += \
96 src/ezusb.c \
97 src/usb.c \
98 src/scpi/scpi_usbtmc_libusb.c
99endif
100if NEED_VISA
101libsigrok_la_SOURCES += \
102 src/scpi/scpi_visa.c
103endif
104if NEED_GPIB
105libsigrok_la_SOURCES += \
106 src/scpi/scpi_libgpib.c
107endif
108
109# modbus support
110libsigrok_la_SOURCES += \
111 src/modbus/modbus.c
112if NEED_SERIAL
113libsigrok_la_SOURCES += \
114 src/modbus/modbus_serial_rtu.c
115endif
116
117# Hardware (DMM chip parsers)
118libsigrok_la_SOURCES += \
119 src/dmm/es519xx.c \
120 src/dmm/fs9721.c \
121 src/dmm/fs9922.c \
122 src/dmm/m2110.c \
123 src/dmm/metex14.c \
124 src/dmm/rs9lcd.c \
125 src/dmm/bm25x.c \
126 src/dmm/ut71x.c \
127 src/dmm/ut372.c \
128 src/dmm/vc870.c
129
130# Hardware (LCR chip parsers)
131if NEED_SERIAL
132libsigrok_la_SOURCES += \
133 src/lcr/es51919.c
134endif
135
136# Hardware drivers
137if HW_AGILENT_DMM
138libsigrok_la_SOURCES += \
139 src/hardware/agilent-dmm/api.c \
140 src/hardware/agilent-dmm/agilent-dmm.h \
141 src/hardware/agilent-dmm/sched.c
142endif
143if HW_APPA_55II
144libsigrok_la_SOURCES += \
145 src/hardware/appa-55ii/protocol.h \
146 src/hardware/appa-55ii/protocol.c \
147 src/hardware/appa-55ii/api.c
148endif
149if HW_ASIX_SIGMA
150libsigrok_la_SOURCES += \
151 src/hardware/asix-sigma/asix-sigma.h \
152 src/hardware/asix-sigma/asix-sigma.c
153endif
154if HW_ATTEN_PPS3XXX
155libsigrok_la_SOURCES += \
156 src/hardware/atten-pps3xxx/protocol.h \
157 src/hardware/atten-pps3xxx/protocol.c \
158 src/hardware/atten-pps3xxx/api.c
159endif
160if HW_BAYLIBRE_ACME
161libsigrok_la_SOURCES += \
162 src/hardware/baylibre-acme/protocol.h \
163 src/hardware/baylibre-acme/protocol.c \
164 src/hardware/baylibre-acme/api.c \
165 src/hardware/baylibre-acme/gpio.h \
166 src/hardware/baylibre-acme/gpio.c
167endif
168if HW_BEAGLELOGIC
169libsigrok_la_SOURCES += \
170 src/hardware/beaglelogic/beaglelogic.h \
171 src/hardware/beaglelogic/protocol.h \
172 src/hardware/beaglelogic/protocol.c \
173 src/hardware/beaglelogic/api.c
174endif
175if HW_BRYMEN_BM86X
176libsigrok_la_SOURCES += \
177 src/hardware/brymen-bm86x/protocol.h \
178 src/hardware/brymen-bm86x/protocol.c \
179 src/hardware/brymen-bm86x/api.c
180endif
181if HW_BRYMEN_DMM
182libsigrok_la_SOURCES += \
183 src/hardware/brymen-dmm/parser.c \
184 src/hardware/brymen-dmm/protocol.h \
185 src/hardware/brymen-dmm/protocol.c \
186 src/hardware/brymen-dmm/api.c
187endif
188if HW_CEM_DT_885X
189libsigrok_la_SOURCES += \
190 src/hardware/cem-dt-885x/protocol.h \
191 src/hardware/cem-dt-885x/protocol.c \
192 src/hardware/cem-dt-885x/api.c
193endif
194if HW_CENTER_3XX
195libsigrok_la_SOURCES += \
196 src/hardware/center-3xx/protocol.h \
197 src/hardware/center-3xx/protocol.c \
198 src/hardware/center-3xx/api.c
199endif
200if HW_CHRONOVU_LA
201libsigrok_la_SOURCES += \
202 src/hardware/chronovu-la/protocol.h \
203 src/hardware/chronovu-la/protocol.c \
204 src/hardware/chronovu-la/api.c
205endif
206if HW_COLEAD_SLM
207libsigrok_la_SOURCES += \
208 src/hardware/colead-slm/protocol.h \
209 src/hardware/colead-slm/protocol.c \
210 src/hardware/colead-slm/api.c
211endif
212if HW_CONRAD_DIGI_35_CPU
213libsigrok_la_SOURCES += \
214 src/hardware/conrad-digi-35-cpu/protocol.h \
215 src/hardware/conrad-digi-35-cpu/protocol.c \
216 src/hardware/conrad-digi-35-cpu/api.c
217endif
218if HW_DEMO
219libsigrok_la_SOURCES += \
220 src/hardware/demo/demo.c
221endif
222if HW_DEREE_DE5000
223libsigrok_la_SOURCES += \
224 src/hardware/deree-de5000/api.c
225endif
226if HW_FLUKE_DMM
227libsigrok_la_SOURCES += \
228 src/hardware/fluke-dmm/fluke-dmm.h \
229 src/hardware/fluke-dmm/fluke.c \
230 src/hardware/fluke-dmm/api.c
231endif
232if HW_FX2LAFW
233libsigrok_la_SOURCES += \
234 src/hardware/fx2lafw/protocol.h \
235 src/hardware/fx2lafw/protocol.c \
236 src/hardware/fx2lafw/api.c \
237 src/hardware/fx2lafw/dslogic.c \
238 src/hardware/fx2lafw/dslogic.h
239endif
240if HW_GMC_MH_1X_2X
241libsigrok_la_SOURCES += \
242 src/hardware/gmc-mh-1x-2x/protocol.h \
243 src/hardware/gmc-mh-1x-2x/protocol.c \
244 src/hardware/gmc-mh-1x-2x/api.c
245endif
246if HW_HAMEG_HMO
247libsigrok_la_SOURCES += \
248 src/hardware/hameg-hmo/protocol.h \
249 src/hardware/hameg-hmo/protocol.c \
250 src/hardware/hameg-hmo/api.c
251endif
252if HW_HANTEK_DSO
253libsigrok_la_SOURCES += \
254 src/hardware/hantek-dso/dso.h \
255 src/hardware/hantek-dso/dso.c \
256 src/hardware/hantek-dso/api.c
257endif
258if HW_IKALOGIC_SCANALOGIC2
259libsigrok_la_SOURCES += \
260 src/hardware/ikalogic-scanalogic2/protocol.h \
261 src/hardware/ikalogic-scanalogic2/protocol.c \
262 src/hardware/ikalogic-scanalogic2/api.c
263endif
264if HW_IKALOGIC_SCANAPLUS
265libsigrok_la_SOURCES += \
266 src/hardware/ikalogic-scanaplus/protocol.h \
267 src/hardware/ikalogic-scanaplus/protocol.c \
268 src/hardware/ikalogic-scanaplus/api.c
269endif
270if HW_KECHENG_KC_330B
271libsigrok_la_SOURCES += \
272 src/hardware/kecheng-kc-330b/protocol.h \
273 src/hardware/kecheng-kc-330b/protocol.c \
274 src/hardware/kecheng-kc-330b/api.c
275endif
276if HW_LASCAR_EL_USB
277libsigrok_la_SOURCES += \
278 src/hardware/lascar-el-usb/protocol.h \
279 src/hardware/lascar-el-usb/protocol.c \
280 src/hardware/lascar-el-usb/api.c
281endif
282if HW_MANSON_HCS_3XXX
283libsigrok_la_SOURCES += \
284 src/hardware/manson-hcs-3xxx/protocol.h \
285 src/hardware/manson-hcs-3xxx/protocol.c \
286 src/hardware/manson-hcs-3xxx/api.c
287endif
288if HW_MIC_985XX
289libsigrok_la_SOURCES += \
290 src/hardware/mic-985xx/protocol.h \
291 src/hardware/mic-985xx/protocol.c \
292 src/hardware/mic-985xx/api.c
293endif
294if HW_MOTECH_LPS_30X
295libsigrok_la_SOURCES += \
296 src/hardware/motech-lps-30x/protocol.h \
297 src/hardware/motech-lps-30x/protocol.c \
298 src/hardware/motech-lps-30x/api.c
299endif
300if HW_NORMA_DMM
301libsigrok_la_SOURCES += \
302 src/hardware/norma-dmm/protocol.h \
303 src/hardware/norma-dmm/protocol.c \
304 src/hardware/norma-dmm/api.c
305endif
306if HW_OPENBENCH_LOGIC_SNIFFER
307libsigrok_la_SOURCES += \
308 src/hardware/openbench-logic-sniffer/protocol.h \
309 src/hardware/openbench-logic-sniffer/protocol.c \
310 src/hardware/openbench-logic-sniffer/api.c
311endif
312if HW_PIPISTRELLO_OLS
313libsigrok_la_SOURCES += \
314 src/hardware/pipistrello-ols/protocol.h \
315 src/hardware/pipistrello-ols/protocol.c \
316 src/hardware/pipistrello-ols/api.c
317endif
318if HW_RIGOL_DS
319libsigrok_la_SOURCES += \
320 src/hardware/rigol-ds/protocol.h \
321 src/hardware/rigol-ds/protocol.c \
322 src/hardware/rigol-ds/api.c
323endif
324if HW_SALEAE_LOGIC16
325libsigrok_la_SOURCES += \
326 src/hardware/saleae-logic16/protocol.h \
327 src/hardware/saleae-logic16/protocol.c \
328 src/hardware/saleae-logic16/api.c
329endif
330if HW_SCPI_PPS
331libsigrok_la_SOURCES += \
332 src/hardware/scpi-pps/protocol.h \
333 src/hardware/scpi-pps/protocol.c \
334 src/hardware/scpi-pps/profiles.c \
335 src/hardware/scpi-pps/api.c
336endif
337if HW_SERIAL_DMM
338libsigrok_la_SOURCES += \
339 src/hardware/serial-dmm/protocol.h \
340 src/hardware/serial-dmm/protocol.c \
341 src/hardware/serial-dmm/api.c
342endif
343if HW_SYSCLK_LWLA
344libsigrok_la_SOURCES += \
345 src/hardware/sysclk-lwla/lwla.h \
346 src/hardware/sysclk-lwla/lwla.c \
347 src/hardware/sysclk-lwla/protocol.h \
348 src/hardware/sysclk-lwla/protocol.c \
349 src/hardware/sysclk-lwla/api.c
350endif
351if HW_TELEINFO
352libsigrok_la_SOURCES += \
353 src/hardware/teleinfo/protocol.h \
354 src/hardware/teleinfo/protocol.c \
355 src/hardware/teleinfo/api.c
356endif
357if HW_TESTO
358libsigrok_la_SOURCES += \
359 src/hardware/testo/protocol.h \
360 src/hardware/testo/protocol.c \
361 src/hardware/testo/api.c
362endif
363if HW_TONDAJ_SL_814
364libsigrok_la_SOURCES += \
365 src/hardware/tondaj-sl-814/protocol.h \
366 src/hardware/tondaj-sl-814/protocol.c \
367 src/hardware/tondaj-sl-814/api.c
368endif
369if HW_UNI_T_DMM
370libsigrok_la_SOURCES += \
371 src/hardware/uni-t-dmm/protocol.h \
372 src/hardware/uni-t-dmm/protocol.c \
373 src/hardware/uni-t-dmm/api.c
374endif
375if HW_UNI_T_UT32X
376libsigrok_la_SOURCES += \
377 src/hardware/uni-t-ut32x/protocol.h \
378 src/hardware/uni-t-ut32x/protocol.c \
379 src/hardware/uni-t-ut32x/api.c
380endif
381if HW_VICTOR_DMM
382libsigrok_la_SOURCES += \
383 src/hardware/victor-dmm/protocol.h \
384 src/hardware/victor-dmm/protocol.c \
385 src/hardware/victor-dmm/api.c
386endif
387if HW_YOKOGAWA_DLM
388libsigrok_la_SOURCES += \
389 src/hardware/yokogawa-dlm/protocol.h \
390 src/hardware/yokogawa-dlm/protocol.c \
391 src/hardware/yokogawa-dlm/protocol_wrappers.h \
392 src/hardware/yokogawa-dlm/protocol_wrappers.c \
393 src/hardware/yokogawa-dlm/api.c
394endif
395if HW_ZEROPLUS_LOGIC_CUBE
396libsigrok_la_SOURCES += \
397 src/hardware/zeroplus-logic-cube/analyzer.c \
398 src/hardware/zeroplus-logic-cube/analyzer.h \
399 src/hardware/zeroplus-logic-cube/gl_usb.h \
400 src/hardware/zeroplus-logic-cube/gl_usb.c \
401 src/hardware/zeroplus-logic-cube/protocol.h \
402 src/hardware/zeroplus-logic-cube/protocol.c \
403 src/hardware/zeroplus-logic-cube/api.c
404endif
405
406libsigrok_la_LIBADD = $(LIBOBJS)
407
408libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS)
409
410libsigrok_la_LDFLAGS += -no-undefined
411
412library_includedir = $(includedir)/libsigrok
413library_include_HEADERS = \
414 include/libsigrok/libsigrok.h \
415 include/libsigrok/proto.h \
416 include/libsigrok/version.h
417noinst_HEADERS = src/libsigrok-internal.h
418
419pkgconfigdir = $(libdir)/pkgconfig
420pkgconfig_DATA = libsigrok.pc
421
422EXTRA_DIST = \
423 Doxyfile \
424 HACKING \
425 README.devices \
426 contrib/gnuplot_chronovu_la8.gpi \
427 contrib/gnuplot_rigol_ds1xx2.gpi \
428 contrib/gnuplot_usbeesx.gpi \
429 contrib/gnuplot_usbeedx8.gpi \
430 contrib/gnuplot_usbeedx16.gpi \
431 contrib/sigrok-logo-notext.png \
432 contrib/z60_libsigrok.rules
433
434if HAVE_CHECK
435
436TESTS = tests/main
437
438check_PROGRAMS = ${TESTS}
439
440tests_main_SOURCES = \
441 include/libsigrok/libsigrok.h \
442 tests/lib.c \
443 tests/lib.h \
444 tests/main.c \
445 tests/core.c \
446 tests/input_all.c \
447 tests/input_binary.c \
448 tests/output_all.c \
449 tests/transform_all.c \
450 tests/session.c \
451 tests/strutil.c \
452 tests/version.c \
453 tests/driver_all.c \
454 tests/device.c \
455 tests/trigger.c
456
457tests_main_CFLAGS = @check_CFLAGS@
458
459tests_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@
460
461endif
462
463BUILD_EXTRA =
464INSTALL_EXTRA =
465CLEAN_EXTRA =
466
467if BINDINGS_CXX
468
469lib_LTLIBRARIES += bindings/cxx/libsigrokcxx.la
470
471bindings_cxx_libsigrokcxx_la_SOURCES = bindings/cxx/classes.cpp
472
473bindings_cxx_libsigrokcxx_la_LIBADD = libsigrok.la $(glibmm_LIBS)
474
475bindings_cxx_libsigrokcxx_la_LDFLAGS = $(SR_LIB_LDFLAGS)
476
477bindings_cxx_libsigrokcxx_la_LDFLAGS += -no-undefined
478
479bindings_cxx_libsigrokcxx_la_includedir = $(includedir)/libsigrokcxx
480bindings_cxx_libsigrokcxx_la_include_HEADERS = \
481 bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp \
482 bindings/cxx/include/libsigrokcxx/enums.hpp
483
484pkgconfig_DATA += bindings/cxx/libsigrokcxx.pc
485
486doxy/xml/index.xml: include/libsigrok/libsigrok.h
487 $(AM_V_GEN)cd $(srcdir) && BUILDDIR=$(abs_builddir)/ doxygen Doxyfile 2>/dev/null
488
489bindings/cxx/enums.cpp: bindings/cxx/enums.timestamp
490
491bindings/cxx/include/libsigrokcxx/enums.hpp: bindings/cxx/enums.timestamp
492
493bindings/cxx/enums.timestamp: $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml \
494 bindings/cxx/ConfigKey_methods.cpp bindings/cxx/QuantityFlag_methods.cpp
495 $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml
496 $(AM_V_at)touch $@
497
498bindings/cxx/classes.lo: bindings/cxx/classes.cpp bindings/cxx/enums.cpp \
499 $(library_include_HEADERS)
500
501cxx-clean:
502 rm -rf doxy/
503 rm -rf bindings/cxx/doxy/
504 rm -f bindings/cxx/enums.cpp
505 rm -f bindings/cxx/include/libsigrokcxx/enums.hpp
506 rm -f bindings/cxx/enums.timestamp
507
508CLEAN_EXTRA += cxx-clean
509
510endif
511
512CPPXMLDOC = bindings/cxx/doxy/xml/index.xml
513
514$(CPPXMLDOC): bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp \
515 bindings/cxx/enums.timestamp
516 $(AM_V_GEN)cd $(srcdir)/bindings/cxx && BUILDDIR=$(abs_builddir)/bindings/cxx/ doxygen Doxyfile 2>/dev/null
517
518if BINDINGS_PYTHON
519
520PDIR = bindings/python
521PDOC = bindings/python/sigrok/core/doc.i
522
523$(PDOC): bindings/swig/doc.py $(CPPXMLDOC)
524 $(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core
525 $(AM_V_GEN)$(PYTHON) $< python $(CPPXMLDOC) > $@
526
527python-build: $(PDIR)/timestamp
528
529python-quietclean:
530 $(AM_V_at)cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet clean --all 3>&1 1>&2 2>&3 \
531 | grep -v "can.t clean it"; true
532
533$(PDIR)/timestamp: bindings/cxx/libsigrokcxx.la $(PDIR)/sigrok/core/classes.i \
534 bindings/swig/classes.i $(PDOC) $(library_include_HEADERS)
535 $(AM_V_at)$(MAKE) python-quietclean
536 $(AM_V_GEN)cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet build 3>&1 1>&2 2>&3 \
537 | grep -v "command line option.*Wstrict-prototypes"; true
538 $(AM_V_at)touch $(PDIR)/timestamp
539
540$(DESTDIR)$(prefix):
541 $(MKDIR_P) $@
542
543python-install: $(DESTDIR)$(prefix)
544 cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet install --prefix $(prefix) `test "$(DESTDIR)" && echo --root=$(DESTDIR)`
545
546python-clean:
547 $(AM_V_at)$(MAKE) python-quietclean
548 $(AM_V_at)rm -f $(PDIR)/timestamp
549 $(AM_V_at)rm -rf $(PDIR)/doxy/
550
551python-doc:
552 $(AM_V_at)cd $(srcdir)/$(PDIR) && BUILDDIR=$(abs_builddir)/$(PDIR)/ doxygen Doxyfile 2>/dev/null
553
554BUILD_EXTRA += python-build
555INSTALL_EXTRA += python-install
556CLEAN_EXTRA += python-clean
557
558endif
559
560if BINDINGS_JAVA
561
562JDIR = bindings/java
563JPKG = org/sigrok/core
564JCLS = $(JDIR)/$(JPKG)/classes
565JINT = $(JDIR)/$(JPKG)/interfaces
566JSRC = $(JCLS)/*.java $(srcdir)/$(JINT)/*.java
567JSWG = $(JCLS)/classes.i
568JDOC = $(JCLS)/doc.i
569JCXX = $(JCLS)/classes_wrap.cxx
570JLIB = $(JDIR)/libsigrok_java_core_classes.so
571JJAR = $(JDIR)/sigrok-core.jar
572
573java-build: $(JJAR) $(JLIB)
574
575$(JDOC): bindings/swig/doc.py $(CPPXMLDOC)
576 $(AM_V_at)test -d $(JCLS) || $(MKDIR_P) $(JCLS)
577 $(AM_V_GEN)python $< java $(CPPXMLDOC) > $@
578
579$(JCXX): $(JSWG) $(JDOC) bindings/swig/classes.i $(library_include_HEADERS)
580 $(AM_V_at)make java-clean
581 $(AM_V_GEN)swig -c++ -java -package org.sigrok.core.classes \
582 -I$(srcdir)/include -I$(srcdir)/bindings/cxx/include -I$(srcdir) -I$(JCLS) -Ibindings/cxx/include -outdir $(JCLS) -o $@ $<
583
584$(JJAR): $(JCXX)
585 $(AM_V_GEN)$(JAVAC) -sourcepath $(JDIR) -d $(JDIR) $(JSRC)
586 $(AM_V_at)jar cf $(JJAR) -C $(JDIR) $(JPKG)
587
588$(JLIB): $(JCXX) bindings/cxx/libsigrokcxx.la $(library_include_HEADERS)
589 $(AM_V_GEN)$(CXXCOMPILE) -L.libs -Lbindings/cxx/.libs \
590 -fno-strict-aliasing -fPIC -shared $(JCLS)/classes_wrap.cxx \
591 -lsigrokcxx -o $(JLIB)
592
593java-install:
594 $(INSTALL) -d $(libdir)/jni
595 $(INSTALL) $(JLIB) -t $(libdir)/jni
596 $(INSTALL) -d $(datadir)/java
597 $(INSTALL) $(JJAR) -t $(datadir)/java
598
599java-clean:
600 $(AM_V_at)rm -f $(JCXX)
601 $(AM_V_at)rm -f $(JCLS)/*.java
602 $(AM_V_at)rm -f $(JCLS)/*.class
603 $(AM_V_at)rm -f $(JINT)/*.class
604 $(AM_V_at)rm -f $(JJAR)
605 $(AM_V_at)rm -f $(JLIB)
606 $(AM_V_at)rm -rf $(JDIR)/doxy/
607
608java-doc:
609 $(AM_V_at)cd $(srcdir)/$(JDIR) && BUILDDIR=$(abs_builddir)/$(JDIR)/ doxygen Doxyfile 2>/dev/null
610
611BUILD_EXTRA += java-build
612INSTALL_EXTRA += java-install
613CLEAN_EXTRA += java-clean
614
615endif
616
617all-local: $(BUILD_EXTRA)
618install-exec-local: $(INSTALL_EXTRA)
619clean-local: $(CLEAN_EXTRA)
620
621MAINTAINERCLEANFILES = ChangeLog
622
623.PHONY: ChangeLog
624ChangeLog:
625 git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog
626
627dist-hook: ChangeLog
628