1# 2# Copyright by The HDF Group. 3# Copyright by the Board of Trustees of the University of Illinois. 4# All rights reserved. 5# 6# This file is part of HDF5. The full HDF5 copyright notice, including 7# terms governing use, modification, and redistribution, is contained in 8# the COPYING file, which can be found at the root of the source code 9# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. 10# If you do not have access to either file, you may request a copy from 11# help@hdfgroup.org. 12## 13## Makefile.am 14## Run automake to generate a Makefile.in from this file. 15## 16# 17# HDF5 Java Library Examples Makefile(.in) 18 19include $(top_srcdir)/config/commence.am 20 21# Mark this directory as part of the JNI API 22JAVA_API=yes 23 24JAVAROOT = .classes 25 26classes: 27 test -d $(@D)/$(JAVAROOT) || $(MKDIR_P) $(@D)/$(JAVAROOT) 28 29pkgpath = examples/datatypes 30hdfjarfile = jar$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).jar 31CLASSPATH_ENV=CLASSPATH=.:$(JAVAROOT):$(top_builddir)/java/src/$(hdfjarfile):$(top_srcdir)/java/lib/slf4j-api-1.7.25.jar:$(top_srcdir)/java/lib/ext/slf4j-simple-1.7.25.jar:$$CLASSPATH 32 33jarfile = jar$(PACKAGE_TARNAME)datatypes.jar 34 35AM_JAVACFLAGS = $(H5_JAVACFLAGS) -deprecation 36 37TESTPACKAGE = 38 39noinst_JAVA = \ 40 H5Ex_T_Array.java \ 41 H5Ex_T_ArrayAttribute.java \ 42 H5Ex_T_Bit.java \ 43 H5Ex_T_BitAttribute.java \ 44 H5Ex_T_Commit.java \ 45 H5Ex_T_Compound.java \ 46 H5Ex_T_CompoundAttribute.java \ 47 H5Ex_T_Float.java \ 48 H5Ex_T_FloatAttribute.java \ 49 H5Ex_T_Integer.java \ 50 H5Ex_T_IntegerAttribute.java \ 51 H5Ex_T_ObjectReference.java \ 52 H5Ex_T_ObjectReferenceAttribute.java \ 53 H5Ex_T_Opaque.java \ 54 H5Ex_T_OpaqueAttribute.java \ 55 H5Ex_T_String.java \ 56 H5Ex_T_StringAttribute.java \ 57 H5Ex_T_VLString.java 58 59$(jarfile): classnoinst.stamp classes 60 $(JAR) cvf $@ -C $(JAVAROOT)/ $(pkgpath) 61 62noinst_DATA = $(jarfile) 63 64.PHONY: classes 65 66check_SCRIPTS = JavaDatatypeExample.sh 67TEST_SCRIPT = $(check_SCRIPTS) 68 69CLEANFILES = classnoinst.stamp $(jarfile) $(JAVAROOT)/$(pkgpath)/*.class JavaDatatypeExample.sh 70 71clean: 72 rm -rf $(JAVAROOT)/* 73 rm -f $(jarfile) 74 rm -f classnoinst.stamp 75 76include $(top_srcdir)/config/conclude.am 77