Home | History | Annotate | Download | only in java
      1 JAVAROOT = .
      2 
      3 org/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 
      9 JAVASOURCES = 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 
     21 JNIHEADERS = org_libjpegturbo_turbojpeg_TJ.h \
     22 	org_libjpegturbo_turbojpeg_TJCompressor.h \
     23 	org_libjpegturbo_turbojpeg_TJDecompressor.h \
     24 	org_libjpegturbo_turbojpeg_TJTransformer.h
     25 
     26 if WITH_JAVA
     27 
     28 nodist_noinst_JAVA = ${JAVASOURCES} org/libjpegturbo/turbojpeg/TJLoader.java
     29 
     30 JAVA_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 
     43 all: all-am turbojpeg.jar
     44 
     45 turbojpeg.jar: $(JAVA_CLASSES) ${srcdir}/MANIFEST.MF
     46 	$(JAR) cfm turbojpeg.jar ${srcdir}/MANIFEST.MF $(JAVA_CLASSES)
     47 
     48 clean-local:
     49 	rm -f turbojpeg.jar
     50 
     51 install-exec-local: turbojpeg.jar
     52 	mkdir -p $(DESTDIR)/$(datadir)/classes
     53 	$(INSTALL) -m 644 turbojpeg.jar $(DESTDIR)/$(datadir)/classes/
     54 
     55 uninstall-local:
     56 	rm -f $(DESTDIR)/$(datadir)/classes/turbojpeg.jar
     57 	if [ -d $(DESTDIR)/$(datadir)/classes ]; then rmdir $(DESTDIR)/$(datadir)/classes; fi
     58 
     59 headers: 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 
     65 docs: all
     66 	mkdir -p ${srcdir}/doc; \
     67 	javadoc -notimestamp -d ${srcdir}/doc -sourcepath ${srcdir} org.libjpegturbo.turbojpeg
     68 
     69 endif
     70 
     71 EXTRA_DIST = MANIFEST.MF ${JAVASOURCES} ${JNIHEADERS} doc CMakeLists.txt \
     72 	org/libjpegturbo/turbojpeg/TJLoader.java.tmpl \
     73 	org/libjpegturbo/turbojpeg/TJLoader.java.in
     74