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/TJScalingFactor.java \ 14 org/libjpegturbo/turbojpeg/TJTransform.java \ 15 org/libjpegturbo/turbojpeg/TJTransformer.java \ 16 org/libjpegturbo/turbojpeg/YUVImage.java \ 17 TJExample.java \ 18 TJUnitTest.java \ 19 TJBench.java 20 21JNIHEADERS = org_libjpegturbo_turbojpeg_TJ.h \ 22 org_libjpegturbo_turbojpeg_TJCompressor.h \ 23 org_libjpegturbo_turbojpeg_TJDecompressor.h \ 24 org_libjpegturbo_turbojpeg_TJTransformer.h 25 26if WITH_JAVA 27 28nodist_noinst_JAVA = ${JAVASOURCES} org/libjpegturbo/turbojpeg/TJLoader.java 29 30JAVA_CLASSES = org/libjpegturbo/turbojpeg/TJ.class \ 31 org/libjpegturbo/turbojpeg/TJCompressor.class \ 32 org/libjpegturbo/turbojpeg/TJCustomFilter.class \ 33 org/libjpegturbo/turbojpeg/TJDecompressor.class \ 34 org/libjpegturbo/turbojpeg/TJLoader.class \ 35 org/libjpegturbo/turbojpeg/TJScalingFactor.class \ 36 org/libjpegturbo/turbojpeg/TJTransform.class \ 37 org/libjpegturbo/turbojpeg/TJTransformer.class \ 38 org/libjpegturbo/turbojpeg/YUVImage.class \ 39 TJExample.class \ 40 TJUnitTest.class \ 41 TJBench.class 42 43all: all-am turbojpeg.jar 44 45turbojpeg.jar: $(JAVA_CLASSES) ${srcdir}/MANIFEST.MF 46 $(JAR) cfm turbojpeg.jar ${srcdir}/MANIFEST.MF $(JAVA_CLASSES) 47 48clean-local: 49 rm -f turbojpeg.jar 50 51install-exec-local: turbojpeg.jar 52 mkdir -p $(DESTDIR)/$(datadir)/classes 53 $(INSTALL) -m 644 turbojpeg.jar $(DESTDIR)/$(datadir)/classes/ 54 55uninstall-local: 56 rm -f $(DESTDIR)/$(datadir)/classes/turbojpeg.jar 57 if [ -d $(DESTDIR)/$(datadir)/classes ]; then rmdir $(DESTDIR)/$(datadir)/classes; fi 58 59headers: all 60 javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJ; \ 61 javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJCompressor; \ 62 javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJDecompressor; \ 63 javah -d ${srcdir} org.libjpegturbo.turbojpeg.TJTransformer 64 65docs: all 66 mkdir -p ${srcdir}/doc; \ 67 javadoc -notimestamp -d ${srcdir}/doc -sourcepath ${srcdir} org.libjpegturbo.turbojpeg 68 69endif 70 71EXTRA_DIST = MANIFEST.MF ${JAVASOURCES} ${JNIHEADERS} doc CMakeLists.txt \ 72 org/libjpegturbo/turbojpeg/TJLoader.java.tmpl \ 73 org/libjpegturbo/turbojpeg/TJLoader.java.in 74