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