1#
2# HDF Java native interface (JNI) Library Test Makefile(.in)
3
4include $(top_srcdir)/config/commence.am
5
6# Mark this directory as part of the JNI API
7JAVA_API=yes
8
9JAVAROOT = .classes
10
11classes:
12	test -d $(@D)/$(JAVAROOT) || $(MKDIR_P) $(@D)/$(JAVAROOT)
13
14pkgpath = test
15hdfjarfile = jar$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).jar
16CLASSPATH_ENV=CLASSPATH=.:$(JAVAROOT):$(top_builddir)/java/src/$(hdfjarfile):$(top_srcdir)/java/lib/junit.jar:$(top_srcdir)/java/lib/hamcrest-core.jar:$(top_srcdir)/java/lib/slf4j-api-1.7.25.jar:$(top_srcdir)/java/lib/ext/slf4j-simple-1.7.25.jar:$$CLASSPATH
17
18jarfile = jar$(PACKAGE_TARNAME)test.jar
19
20AM_JAVACFLAGS = $(H4_JAVACFLAGS) -deprecation
21
22noinst_JAVA = \
23	TestH4.java \
24	TestH4ANparams.java \
25	TestH4DFparams.java \
26	TestH4DFPparams.java \
27	TestH4DFRparams.java \
28	TestH4GRparams.java \
29	TestH4HCparams.java \
30	TestH4SDparams.java \
31	TestH4Vparams.java \
32	TestH4VSparams.java
33
34$(jarfile): classnoinst.stamp classes
35	$(JAR) cvf $@ -C $(JAVAROOT)/ $(pkgpath)
36
37noinst_DATA = $(jarfile)
38
39.PHONY: classes
40
41check_SCRIPTS = junit.sh
42TEST_SCRIPT = $(check_SCRIPTS)
43
44CLEANFILES = classnoinst.stamp $(jarfile) $(JAVAROOT)/$(pkgpath)/*.class junit.sh
45
46clean:
47	rm -rf $(JAVAROOT)/*
48	rm -f $(jarfile)
49	rm -f classnoinst.stamp
50
51include $(top_srcdir)/config/conclude.am
52