• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1JAVAROOT = .
2
3org/libjpegturbo/turbojpeg/TJLoader.java: $(srcdir)/org/libjpegturbo/turbojpeg/TJLoader.java.tmpl
4	mkdir -p org/libjpegturbo/turbojpeg; \
5	cat $(srcdir)/org/libjpegturbo/turbojpeg/TJLoader.java.tmpl | \
6		sed s@%{__libdir}@$(libdir)@g > org/libjpegturbo/turbojpeg/TJLoader.java
7
8
9JAVASOURCES = org/libjpegturbo/turbojpeg/TJ.java \
10	org/libjpegturbo/turbojpeg/TJCompressor.java \
11	org/libjpegturbo/turbojpeg/TJCustomFilter.java \
12	org/libjpegturbo/turbojpeg/TJDecompressor.java \
13	org/libjpegturbo/turbojpeg/TJException.java \
14	org/libjpegturbo/turbojpeg/TJScalingFactor.java \
15	org/libjpegturbo/turbojpeg/TJTransform.java \
16	org/libjpegturbo/turbojpeg/TJTransformer.java \
17	org/libjpegturbo/turbojpeg/YUVImage.java \
18	TJExample.java \
19	TJUnitTest.java \
20	TJBench.java
21
22JNIHEADERS = org_libjpegturbo_turbojpeg_TJ.h \
23	org_libjpegturbo_turbojpeg_TJCompressor.h \
24	org_libjpegturbo_turbojpeg_TJDecompressor.h \
25	org_libjpegturbo_turbojpeg_TJTransformer.h
26
27if WITH_JAVA
28
29nodist_noinst_JAVA = ${JAVASOURCES} org/libjpegturbo/turbojpeg/TJLoader.java
30
31JAVA_CLASSES = org/libjpegturbo/turbojpeg/TJ.class \
32	org/libjpegturbo/turbojpeg/TJCompressor.class \
33	org/libjpegturbo/turbojpeg/TJCustomFilter.class \
34	org/libjpegturbo/turbojpeg/TJDecompressor.class \
35	org/libjpegturbo/turbojpeg/TJException.class \
36	org/libjpegturbo/turbojpeg/TJLoader.class \
37	org/libjpegturbo/turbojpeg/TJScalingFactor.class \
38	org/libjpegturbo/turbojpeg/TJTransform.class \
39	org/libjpegturbo/turbojpeg/TJTransformer.class \
40	org/libjpegturbo/turbojpeg/YUVImage.class \
41	TJExample.class \
42	TJUnitTest.class \
43	TJBench.class
44
45all: all-am turbojpeg.jar
46
47turbojpeg.jar: classnoinst.stamp ${srcdir}/MANIFEST.MF
48	$(JAR) cfm turbojpeg.jar ${srcdir}/MANIFEST.MF $(JAVA_CLASSES)
49
50clean-local:
51	rm -f turbojpeg.jar
52
53install-exec-local: turbojpeg.jar
54	mkdir -p $(DESTDIR)/$(datadir)/classes
55	$(INSTALL) -m 644 turbojpeg.jar $(DESTDIR)/$(datadir)/classes/
56
57uninstall-local:
58	rm -f $(DESTDIR)/$(datadir)/classes/turbojpeg.jar
59	if [ -d $(DESTDIR)/$(datadir)/classes ]; then rmdir $(DESTDIR)/$(datadir)/classes; fi
60
61headers: all
62	javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJ; \
63	javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJCompressor; \
64	javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJDecompressor; \
65	javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJTransformer
66
67docs: all
68	mkdir -p ${srcdir}/doc; \
69	javadoc -notimestamp -d ${srcdir}/doc -sourcepath ${srcdir} org.libjpegturbo.turbojpeg
70
71endif
72
73EXTRA_DIST = MANIFEST.MF ${JAVASOURCES} ${JNIHEADERS} doc CMakeLists.txt \
74	org/libjpegturbo/turbojpeg/TJLoader.java.tmpl \
75	org/libjpegturbo/turbojpeg/TJLoader.java.in
76