]>
Commit | Line | Data |
---|---|---|
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 | ||
21 | ACLOCAL_AMFLAGS = -I autostuff | |
22 | ||
23 | AM_CPPFLAGS = -Isrc -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' | |
24 | ||
25 | lib_LTLIBRARIES = libsigrok.la | |
26 | ||
27 | # Backend files | |
28 | libsigrok_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/strutil.c \ | |
39 | src/log.c \ | |
40 | src/version.c \ | |
41 | src/error.c \ | |
42 | src/std.c | |
43 | ||
44 | # Input modules | |
45 | libsigrok_la_SOURCES += \ | |
46 | src/input/binary.c \ | |
47 | src/input/chronovu_la8.c \ | |
48 | src/input/csv.c \ | |
49 | src/input/input.c \ | |
50 | src/input/vcd.c \ | |
51 | src/input/wav.c | |
52 | ||
53 | # Output modules | |
54 | libsigrok_la_SOURCES += \ | |
55 | src/output/output.c \ | |
56 | src/output/analog.c \ | |
57 | src/output/ascii.c \ | |
58 | src/output/bits.c \ | |
59 | src/output/binary.c \ | |
60 | src/output/csv.c \ | |
61 | src/output/chronovu_la8.c \ | |
62 | src/output/gnuplot.c \ | |
63 | src/output/hex.c \ | |
64 | src/output/ols.c \ | |
65 | src/output/vcd.c | |
66 | ||
67 | # SCPI support | |
68 | libsigrok_la_SOURCES += \ | |
69 | src/scpi/scpi.c \ | |
70 | src/scpi/scpi_tcp.c | |
71 | if NEED_RPC | |
72 | libsigrok_la_SOURCES += \ | |
73 | src/scpi/scpi_vxi.c \ | |
74 | src/scpi/vxi_clnt.c \ | |
75 | src/scpi/vxi_xdr.c \ | |
76 | src/scpi/vxi.h | |
77 | endif | |
78 | if NEED_SERIAL | |
79 | libsigrok_la_SOURCES += \ | |
80 | src/serial.c \ | |
81 | src/scpi/scpi_serial.c | |
82 | endif | |
83 | if NEED_USB | |
84 | libsigrok_la_SOURCES += \ | |
85 | src/ezusb.c \ | |
86 | src/usb.c \ | |
87 | src/scpi/scpi_usbtmc_libusb.c | |
88 | endif | |
89 | if NEED_VISA | |
90 | libsigrok_la_SOURCES += \ | |
91 | src/scpi/scpi_visa.c | |
92 | endif | |
93 | ||
94 | # Hardware (DMM chip parsers) | |
95 | libsigrok_la_SOURCES += \ | |
96 | src/dmm/es519xx.c \ | |
97 | src/dmm/fs9721.c \ | |
98 | src/dmm/fs9922.c \ | |
99 | src/dmm/m2110.c \ | |
100 | src/dmm/metex14.c \ | |
101 | src/dmm/rs9lcd.c | |
102 | ||
103 | # Hardware drivers | |
104 | if HW_AGILENT_DMM | |
105 | libsigrok_la_SOURCES += \ | |
106 | src/hardware/agilent-dmm/api.c \ | |
107 | src/hardware/agilent-dmm/agilent-dmm.h \ | |
108 | src/hardware/agilent-dmm/sched.c | |
109 | endif | |
110 | if HW_APPA_55II | |
111 | libsigrok_la_SOURCES += \ | |
112 | src/hardware/appa-55ii/protocol.h \ | |
113 | src/hardware/appa-55ii/protocol.c \ | |
114 | src/hardware/appa-55ii/api.c | |
115 | endif | |
116 | if HW_ASIX_SIGMA | |
117 | libsigrok_la_SOURCES += \ | |
118 | src/hardware/asix-sigma/asix-sigma.h \ | |
119 | src/hardware/asix-sigma/asix-sigma.c | |
120 | endif | |
121 | if HW_ATTEN_PPS3XXX | |
122 | libsigrok_la_SOURCES += \ | |
123 | src/hardware/atten-pps3xxx/protocol.h \ | |
124 | src/hardware/atten-pps3xxx/protocol.c \ | |
125 | src/hardware/atten-pps3xxx/api.c | |
126 | endif | |
127 | if HW_BEAGLELOGIC | |
128 | libsigrok_la_SOURCES += \ | |
129 | src/hardware/beaglelogic/protocol.h \ | |
130 | src/hardware/beaglelogic/protocol.c \ | |
131 | src/hardware/beaglelogic/api.c | |
132 | endif | |
133 | if HW_BRYMEN_BM86X | |
134 | libsigrok_la_SOURCES += \ | |
135 | src/hardware/brymen-bm86x/protocol.h \ | |
136 | src/hardware/brymen-bm86x/protocol.c \ | |
137 | src/hardware/brymen-bm86x/api.c | |
138 | endif | |
139 | if HW_BRYMEN_DMM | |
140 | libsigrok_la_SOURCES += \ | |
141 | src/hardware/brymen-dmm/parser.c \ | |
142 | src/hardware/brymen-dmm/protocol.h \ | |
143 | src/hardware/brymen-dmm/protocol.c \ | |
144 | src/hardware/brymen-dmm/api.c | |
145 | endif | |
146 | if HW_CEM_DT_885X | |
147 | libsigrok_la_SOURCES += \ | |
148 | src/hardware/cem-dt-885x/protocol.h \ | |
149 | src/hardware/cem-dt-885x/protocol.c \ | |
150 | src/hardware/cem-dt-885x/api.c | |
151 | endif | |
152 | if HW_CENTER_3XX | |
153 | libsigrok_la_SOURCES += \ | |
154 | src/hardware/center-3xx/protocol.h \ | |
155 | src/hardware/center-3xx/protocol.c \ | |
156 | src/hardware/center-3xx/api.c | |
157 | endif | |
158 | if HW_CHRONOVU_LA | |
159 | libsigrok_la_SOURCES += \ | |
160 | src/hardware/chronovu-la/protocol.h \ | |
161 | src/hardware/chronovu-la/protocol.c \ | |
162 | src/hardware/chronovu-la/api.c | |
163 | endif | |
164 | if HW_COLEAD_SLM | |
165 | libsigrok_la_SOURCES += \ | |
166 | src/hardware/colead-slm/protocol.h \ | |
167 | src/hardware/colead-slm/protocol.c \ | |
168 | src/hardware/colead-slm/api.c | |
169 | endif | |
170 | if HW_CONRAD_DIGI_35_CPU | |
171 | libsigrok_la_SOURCES += \ | |
172 | src/hardware/conrad-digi-35-cpu/protocol.h \ | |
173 | src/hardware/conrad-digi-35-cpu/protocol.c \ | |
174 | src/hardware/conrad-digi-35-cpu/api.c | |
175 | endif | |
176 | if HW_DEMO | |
177 | libsigrok_la_SOURCES += \ | |
178 | src/hardware/demo/demo.c | |
179 | endif | |
180 | if HW_FLUKE_DMM | |
181 | libsigrok_la_SOURCES += \ | |
182 | src/hardware/fluke-dmm/fluke-dmm.h \ | |
183 | src/hardware/fluke-dmm/fluke.c \ | |
184 | src/hardware/fluke-dmm/api.c | |
185 | endif | |
186 | if HW_FX2LAFW | |
187 | libsigrok_la_SOURCES += \ | |
188 | src/hardware/fx2lafw/protocol.h \ | |
189 | src/hardware/fx2lafw/protocol.c \ | |
190 | src/hardware/fx2lafw/api.c | |
191 | endif | |
192 | if HW_GMC_MH_1X_2X | |
193 | libsigrok_la_SOURCES += \ | |
194 | src/hardware/gmc-mh-1x-2x/protocol.h \ | |
195 | src/hardware/gmc-mh-1x-2x/protocol.c \ | |
196 | src/hardware/gmc-mh-1x-2x/api.c | |
197 | endif | |
198 | if HW_HAMEG_HMO | |
199 | libsigrok_la_SOURCES += \ | |
200 | src/hardware/hameg-hmo/protocol.h \ | |
201 | src/hardware/hameg-hmo/protocol.c \ | |
202 | src/hardware/hameg-hmo/api.c | |
203 | endif | |
204 | if HW_HANTEK_DSO | |
205 | libsigrok_la_SOURCES += \ | |
206 | src/hardware/hantek-dso/dso.h \ | |
207 | src/hardware/hantek-dso/dso.c \ | |
208 | src/hardware/hantek-dso/api.c | |
209 | endif | |
210 | if HW_IKALOGIC_SCANALOGIC2 | |
211 | libsigrok_la_SOURCES += \ | |
212 | src/hardware/ikalogic-scanalogic2/protocol.h \ | |
213 | src/hardware/ikalogic-scanalogic2/protocol.c \ | |
214 | src/hardware/ikalogic-scanalogic2/api.c | |
215 | endif | |
216 | if HW_IKALOGIC_SCANAPLUS | |
217 | libsigrok_la_SOURCES += \ | |
218 | src/hardware/ikalogic-scanaplus/protocol.h \ | |
219 | src/hardware/ikalogic-scanaplus/protocol.c \ | |
220 | src/hardware/ikalogic-scanaplus/api.c | |
221 | endif | |
222 | if HW_KECHENG_KC_330B | |
223 | libsigrok_la_SOURCES += \ | |
224 | src/hardware/kecheng-kc-330b/protocol.h \ | |
225 | src/hardware/kecheng-kc-330b/protocol.c \ | |
226 | src/hardware/kecheng-kc-330b/api.c | |
227 | endif | |
228 | if HW_LASCAR_EL_USB | |
229 | libsigrok_la_SOURCES += \ | |
230 | src/hardware/lascar-el-usb/protocol.h \ | |
231 | src/hardware/lascar-el-usb/protocol.c \ | |
232 | src/hardware/lascar-el-usb/api.c | |
233 | endif | |
234 | if HW_MANSON_HCS_3XXX | |
235 | libsigrok_la_SOURCES += \ | |
236 | src/hardware/manson-hcs-3xxx/protocol.h \ | |
237 | src/hardware/manson-hcs-3xxx/protocol.c \ | |
238 | src/hardware/manson-hcs-3xxx/api.c | |
239 | endif | |
240 | if HW_MIC_985XX | |
241 | libsigrok_la_SOURCES += \ | |
242 | src/hardware/mic-985xx/protocol.h \ | |
243 | src/hardware/mic-985xx/protocol.c \ | |
244 | src/hardware/mic-985xx/api.c | |
245 | endif | |
246 | if HW_MOTECH_LPS_30X | |
247 | libsigrok_la_SOURCES += \ | |
248 | src/hardware/motech-lps-30x/protocol.h \ | |
249 | src/hardware/motech-lps-30x/protocol.c \ | |
250 | src/hardware/motech-lps-30x/api.c | |
251 | endif | |
252 | if HW_NORMA_DMM | |
253 | libsigrok_la_SOURCES += \ | |
254 | src/hardware/norma-dmm/protocol.h \ | |
255 | src/hardware/norma-dmm/protocol.c \ | |
256 | src/hardware/norma-dmm/api.c | |
257 | endif | |
258 | if HW_OPENBENCH_LOGIC_SNIFFER | |
259 | libsigrok_la_SOURCES += \ | |
260 | src/hardware/openbench-logic-sniffer/protocol.h \ | |
261 | src/hardware/openbench-logic-sniffer/protocol.c \ | |
262 | src/hardware/openbench-logic-sniffer/api.c | |
263 | endif | |
264 | if HW_RIGOL_DS | |
265 | libsigrok_la_SOURCES += \ | |
266 | src/hardware/rigol-ds/protocol.h \ | |
267 | src/hardware/rigol-ds/protocol.c \ | |
268 | src/hardware/rigol-ds/api.c | |
269 | endif | |
270 | if HW_SALEAE_LOGIC16 | |
271 | libsigrok_la_SOURCES += \ | |
272 | src/hardware/saleae-logic16/protocol.h \ | |
273 | src/hardware/saleae-logic16/protocol.c \ | |
274 | src/hardware/saleae-logic16/api.c | |
275 | endif | |
276 | if HW_SERIAL_DMM | |
277 | libsigrok_la_SOURCES += \ | |
278 | src/hardware/serial-dmm/protocol.h \ | |
279 | src/hardware/serial-dmm/protocol.c \ | |
280 | src/hardware/serial-dmm/api.c | |
281 | endif | |
282 | if HW_SYSCLK_LWLA | |
283 | libsigrok_la_SOURCES += \ | |
284 | src/hardware/sysclk-lwla/lwla.h \ | |
285 | src/hardware/sysclk-lwla/lwla.c \ | |
286 | src/hardware/sysclk-lwla/protocol.h \ | |
287 | src/hardware/sysclk-lwla/protocol.c \ | |
288 | src/hardware/sysclk-lwla/api.c | |
289 | endif | |
290 | if HW_TELEINFO | |
291 | libsigrok_la_SOURCES += \ | |
292 | src/hardware/teleinfo/protocol.h \ | |
293 | src/hardware/teleinfo/protocol.c \ | |
294 | src/hardware/teleinfo/api.c | |
295 | endif | |
296 | if HW_TESTO | |
297 | libsigrok_la_SOURCES += \ | |
298 | src/hardware/testo/protocol.h \ | |
299 | src/hardware/testo/protocol.c \ | |
300 | src/hardware/testo/api.c | |
301 | endif | |
302 | if HW_TONDAJ_SL_814 | |
303 | libsigrok_la_SOURCES += \ | |
304 | src/hardware/tondaj-sl-814/protocol.h \ | |
305 | src/hardware/tondaj-sl-814/protocol.c \ | |
306 | src/hardware/tondaj-sl-814/api.c | |
307 | endif | |
308 | if HW_UNI_T_DMM | |
309 | libsigrok_la_SOURCES += \ | |
310 | src/hardware/uni-t-dmm/protocol.h \ | |
311 | src/hardware/uni-t-dmm/protocol.c \ | |
312 | src/hardware/uni-t-dmm/api.c | |
313 | endif | |
314 | if HW_UNI_T_UT32X | |
315 | libsigrok_la_SOURCES += \ | |
316 | src/hardware/uni-t-ut32x/protocol.h \ | |
317 | src/hardware/uni-t-ut32x/protocol.c \ | |
318 | src/hardware/uni-t-ut32x/api.c | |
319 | endif | |
320 | if HW_VICTOR_DMM | |
321 | libsigrok_la_SOURCES += \ | |
322 | src/hardware/victor-dmm/protocol.h \ | |
323 | src/hardware/victor-dmm/protocol.c \ | |
324 | src/hardware/victor-dmm/api.c | |
325 | endif | |
326 | if HW_ZEROPLUS_LOGIC_CUBE | |
327 | libsigrok_la_SOURCES += \ | |
328 | src/hardware/zeroplus-logic-cube/analyzer.c \ | |
329 | src/hardware/zeroplus-logic-cube/analyzer.h \ | |
330 | src/hardware/zeroplus-logic-cube/gl_usb.h \ | |
331 | src/hardware/zeroplus-logic-cube/gl_usb.c \ | |
332 | src/hardware/zeroplus-logic-cube/protocol.h \ | |
333 | src/hardware/zeroplus-logic-cube/protocol.c \ | |
334 | src/hardware/zeroplus-logic-cube/api.c | |
335 | endif | |
336 | ||
337 | libsigrok_la_LIBADD = $(LIBOBJS) | |
338 | ||
339 | libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS) | |
340 | ||
341 | library_includedir = $(includedir)/libsigrok | |
342 | library_include_HEADERS = \ | |
343 | include/libsigrok/libsigrok.h \ | |
344 | include/libsigrok/proto.h \ | |
345 | include/libsigrok/version.h | |
346 | noinst_HEADERS = src/libsigrok-internal.h | |
347 | ||
348 | pkgconfigdir = $(libdir)/pkgconfig | |
349 | pkgconfig_DATA = libsigrok.pc | |
350 | ||
351 | EXTRA_DIST = \ | |
352 | Doxyfile \ | |
353 | HACKING \ | |
354 | README.devices \ | |
355 | contrib/gnuplot_chronovu_la8.gpi \ | |
356 | contrib/gnuplot_rigol_ds1xx2.gpi \ | |
357 | contrib/gnuplot_usbeesx.gpi \ | |
358 | contrib/gnuplot_usbeedx8.gpi \ | |
359 | contrib/gnuplot_usbeedx16.gpi \ | |
360 | contrib/sigrok-logo-notext.png \ | |
361 | contrib/z60_libsigrok.rules | |
362 | ||
363 | if HAVE_CHECK | |
364 | ||
365 | TESTS = tests/check_main | |
366 | ||
367 | check_PROGRAMS = ${TESTS} | |
368 | ||
369 | tests_check_main_SOURCES = \ | |
370 | include/libsigrok/libsigrok.h \ | |
371 | tests/lib.c \ | |
372 | tests/lib.h \ | |
373 | tests/check_main.c \ | |
374 | tests/check_core.c \ | |
375 | tests/check_input_all.c \ | |
376 | tests/check_input_binary.c \ | |
377 | tests/check_output_all.c \ | |
378 | tests/check_strutil.c \ | |
379 | tests/check_version.c \ | |
380 | tests/check_driver_all.c | |
381 | ||
382 | tests_check_main_CFLAGS = @check_CFLAGS@ | |
383 | ||
384 | tests_check_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@ | |
385 | ||
386 | endif | |
387 | ||
388 | BUILD_EXTRA = | |
389 | INSTALL_EXTRA = | |
390 | CLEAN_EXTRA = | |
391 | ||
392 | if BINDINGS_CXX | |
393 | ||
394 | lib_LTLIBRARIES += bindings/cxx/libsigrokxx.la | |
395 | ||
396 | bindings_cxx_libsigrokxx_la_SOURCES = bindings/cxx/classes.cpp | |
397 | ||
398 | bindings_cxx_libsigrokxx_la_LIBADD = libsigrok.la $(glibmm_LIBS) | |
399 | ||
400 | bindings_cxx_libsigrokxx_la_LDFLAGS = $(SR_LIB_LDFLAGS) | |
401 | ||
402 | library_include_HEADERS += \ | |
403 | bindings/cxx/include/libsigrok/libsigrok.hpp \ | |
404 | bindings/cxx/include/libsigrok/enums.hpp | |
405 | ||
406 | pkgconfig_DATA += bindings/cxx/libsigrokxx.pc | |
407 | ||
408 | bindings/cxx/libsigrok.xml: include/libsigrok/libsigrok.h | |
409 | $(AM_V_GEN)gccxml $(CFLAGS) -DGLIB_DISABLE_DEPRECATION_WARNINGS $< -fxml=$@ | |
410 | ||
411 | bindings/cxx/enums.cpp: bindings/cxx/enums.timestamp | |
412 | ||
413 | bindings/cxx/include/libsigrok/enums.hpp: bindings/cxx/enums.timestamp | |
414 | ||
415 | bindings/cxx/enums.timestamp: bindings/cxx/enums.py bindings/cxx/libsigrok.xml \ | |
416 | bindings/cxx/ConfigKey_methods.cpp bindings/cxx/QuantityFlag_methods.cpp | |
417 | $(AM_V_GEN)python $< | |
418 | $(AM_V_at)touch $@ | |
419 | ||
420 | bindings/cxx/classes.lo: bindings/cxx/classes.cpp bindings/cxx/enums.cpp \ | |
421 | $(library_include_HEADERS) | |
422 | ||
423 | cxx-clean: | |
424 | rm -f bindings/cxx/libsigrok.xml | |
425 | rm -f bindings/cxx/enums.cpp | |
426 | rm -f bindings/cxx/include/libsigrok/enums.hpp | |
427 | rm -f bindings/cxx/enums.timestamp | |
428 | ||
429 | CLEAN_EXTRA += cxx-clean | |
430 | ||
431 | endif | |
432 | ||
433 | if BINDINGS_PYTHON | |
434 | ||
435 | PDIR = bindings/python | |
436 | ||
437 | python-build: $(PDIR)/timestamp | |
438 | ||
439 | python-quietclean: | |
440 | $(AM_V_at)python $(PDIR)/setup.py --quiet clean --all 3>&1 1>&2 2>&3 \ | |
441 | | grep -v "can.t clean it"; true | |
442 | ||
443 | $(PDIR)/timestamp: bindings/cxx/libsigrokxx.la $(PDIR)/sigrok/core/classes.i \ | |
444 | $(library_include_HEADERS) | |
445 | $(AM_V_at)$(MAKE) python-quietclean | |
446 | $(AM_V_GEN)cd $(PDIR) && python setup.py --quiet build 3>&1 1>&2 2>&3 \ | |
447 | | grep -v "command line option.*Wstrict-prototypes"; true | |
448 | $(AM_V_at)touch $(PDIR)/timestamp | |
449 | ||
450 | python-install: | |
451 | cd $(PDIR) && python setup.py --quiet install --prefix $(prefix) | |
452 | ||
453 | python-clean: | |
454 | $(AM_V_at)$(MAKE) python-quietclean | |
455 | $(AM_V_at)rm -f $(PDIR)/timestamp | |
456 | ||
457 | BUILD_EXTRA += python-build | |
458 | INSTALL_EXTRA += python-install | |
459 | CLEAN_EXTRA += python-clean | |
460 | ||
461 | endif | |
462 | ||
463 | if BINDINGS_JAVA | |
464 | ||
465 | JDIR = bindings/java | |
466 | JPKG = org/sigrok/core/classes | |
467 | JINT = $(JDIR)/$(JPKG)/classes.i | |
468 | JSRC = $(JDIR)/$(JPKG)/classes_wrap.cxx | |
469 | JLIB = $(JDIR)/libsigrok_java_core_classes.so | |
470 | JJAR = $(JDIR)/sigrok-core.jar | |
471 | ||
472 | java-build: $(JJAR) $(JLIB) | |
473 | ||
474 | $(JSRC): $(JINT) bindings/swig/classes.i $(library_include_HEADERS) | |
475 | $(AM_V_GEN)swig -c++ -java -package org.sigrok.core.classes \ | |
476 | -Iinclude -Ibindings/cxx/include \ | |
477 | -outdir $(JDIR)/$(JPKG) $(JINT) | |
478 | ||
479 | $(JJAR): $(JSRC) $(JDIR)/$(JPKG)/*.java | |
480 | $(AM_V_GEN)$(JAVAC) -sourcepath $(JDIR) $(JDIR)/$(JPKG)/*.java | |
481 | $(AM_V_at)jar cf $(JJAR) -C $(JDIR) $(JPKG) | |
482 | ||
483 | $(JLIB): $(JSRC) bindings/cxx/libsigrokxx.la $(library_include_HEADERS) | |
484 | $(AM_V_GEN)$(CXX) $(CXXFLAGS) -L.libs -Lbindings/cxx/.libs \ | |
485 | -fno-strict-aliasing -fPIC -shared \ | |
486 | $(JDIR)/$(JPKG)/classes_wrap.cxx -lsigrokxx \ | |
487 | -o $(JLIB) | |
488 | ||
489 | java-install: | |
490 | $(INSTALL) -d $(libdir)/jni | |
491 | $(INSTALL) $(JLIB) -t $(libdir)/jni | |
492 | $(INSTALL) -d $(datadir)/java | |
493 | $(INSTALL) $(JJAR) -t $(datadir)/java | |
494 | ||
495 | java-clean: | |
496 | rm -f $(JSRC) | |
497 | rm -f $(JDIR)/$(JPKG)/*.class | |
498 | rm -f $(JJAR) | |
499 | rm -f $(JLIB) | |
500 | ||
501 | BUILD_EXTRA += java-build | |
502 | INSTALL_EXTRA += java-install | |
503 | CLEAN_EXTRA += java-clean | |
504 | ||
505 | endif | |
506 | ||
507 | all-local: $(BUILD_EXTRA) | |
508 | install-exec-local: $(INSTALL_EXTRA) | |
509 | clean-local: $(CLEAN_EXTRA) | |
510 | ||
511 | MAINTAINERCLEANFILES = ChangeLog | |
512 | ||
513 | .PHONY: ChangeLog | |
514 | ChangeLog: | |
515 | git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog | |
516 | ||
517 | dist-hook: ChangeLog | |
518 |