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