1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
## Process this file with automake to produce Makefile.in
#====================================================================
# NeXus - Neutron & X-ray Common Data Format
#
# $Id$
#
# Makefile for NeXus Java bindings
#
# Copyright (C) 2004 Peter Peterson
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free
# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
# For further information, see <http://www.nexusformat.org>
#
# Modified after change to org.nexusformat package name change:
# Mark Koennecke, December 2006
#
#====================================================================
AM_JAVACFLAGS = -classpath .
JAVAROOT = .
nxexampledir=$(NXEXAMPLEDIR)
nxjavadocdir=$(NXDOCDIR)/java
# jar file definitions
javadir = $(datadir)/java
java_DATA = jnexus.jar
nxexample_DATA = test/TestJapi.java
nxjavadoc_DATA = README.JNEXUS COPYING.NCSA
jnexus_jar_ARCHIVE = jnexus.jar
jnexus_jar_CLASS = ncsa/hdf/hdflib/HDFException.class \
ncsa/hdf/hdflib/HDFJavaException.class \
ncsa/hdf/hdflib/HDFConstants.class \
ncsa/hdf/hdflib/HDFNativeData.class \
ncsa/hdf/hdflib/HDFArray.class \
ncsa/hdf/hdflib/HDFNotImplementedException.class \
org/nexusformat/AttributeEntry.class \
org/nexusformat/NexusException.class \
org/nexusformat/NXlink.class \
org/nexusformat/NeXusFileInterface.class \
org/nexusformat/NexusFile.class
# jni definitions
lib_LTLIBRARIES = libjnexus.la
libjnexus_la_SOURCES = native/hdfnativeImp.c \
native/hdfexceptionImp.c \
native/handle.c \
native/NexusFile.c \
native/hdfexceptionImp.h
libjnexus_la_LIBADD = $(top_builddir)/src/libNeXus.la
libjnexus_la_LDFLAGS = @SHARED_LDFLAGS@ -version-info $(NXLTVERSINFO) $(JNEXUS_LDFLAGS) -L$(top_builddir)/src/.libs
libjnexus_la_CFLAGS = -I$(top_srcdir)/include -Inative @JAVAINCLUDE@ \
@HDF4_CPPFLAGS@ @HDF5_CPPFLAGS@ $(JNEXUS_CFLAGS)
BUILT_SOURCES = native/org_nexusformat_NexusFile.h
nodist_noinst_HEADERS = native/org_nexusformat_NexusFile.h
noinst_HEADERS = native/handle.h
CLEANFILES = $(jnexus_jar_CLASS) $(jnexus_jar_ARCHIVE) $(BUILT_SOURCES) \
libjnexus.def libjnexus.dll.lib libjnexus.dll.exp jnexus.dll \
ncsa/hdf/hdflib/ArrayDescriptor.class jnexus-src.jar
noinst_JAVA = ncsa/hdf/hdflib/HDFArray.java \
ncsa/hdf/hdflib/HDFConstants.java \
ncsa/hdf/hdflib/HDFException.java \
ncsa/hdf/hdflib/HDFJavaException.java \
ncsa/hdf/hdflib/HDFNativeData.java \
ncsa/hdf/hdflib/HDFNotImplementedException.java \
org/nexusformat/AttributeEntry.java \
org/nexusformat/NXlink.java \
org/nexusformat/NeXusFileInterface.java \
org/nexusformat/NexusException.java \
org/nexusformat/NexusFile.java \
test/TestJapi.java
EXTRA_DIST = $(noinst_JAVA) README.JNEXUS COPYING.NCSA
# specific targets
# org/nexusformat/NexusFile.class: org/nexusformat/NexusFile.java
native/org_nexusformat_NexusFile.h: jnexus.jar # org/nexusformat/NexusFile.class
test -d native || mkdir native
$(JAVAH) -jni -d native -classpath . org.nexusformat.NexusFile
jnexus.jar: $(jnexus_jar_CLASS) apidoc jnexus-src.jar
$(JAR) cvf jnexus.jar $(jnexus_jar_CLASS) \
ncsa/hdf/hdflib/ArrayDescriptor.class
jnexus-src.jar:
$(JAR) cvf jnexus-src.jar org/*/*.java ncsa/*/*/*.java
SUFFIXES = .java .class
.java.class:
$(JAVAC) -d $(JAVAROOT) $(AM_JAVACFLAGS) $(JAVACFLAGS) $<
apidoc : $(noinst_JAVA)
test -d apidoc || mkdir apidoc
$(JAVADOC) -d apidoc -windowtitle jnexus -doctitle jnexus -classpath . \
-sourcepath $(srcdir) org.nexusformat ncsa.hdf.hdflib
dist-hook :
if test -d $(srcdir)/apidoc; then \
cp -r $(srcdir)/apidoc $(distdir); \
fi
install-data-local :
$(mkinstalldirs) $(DESTDIR)$(nxjavadocdir)
if test -d $(srcdir)/apidoc; then \
cp -r $(srcdir)/apidoc $(DESTDIR)$(nxjavadocdir); \
find $(DESTDIR)$(nxjavadocdir)/apidoc -type f -exec chmod 0644 {} \; ;\
find $(DESTDIR)$(nxjavadocdir)/apidoc -type d -exec chmod 0755 {} \; ;\
fi
clean-local :
rm -rf apidoc
uninstall-local :
rm -fr $(DESTDIR)$(nxjavadocdir)/apidoc
#
# Windows import library for DLL
if MINGW_MSYS
JNEXUS_CFLAGS=-D_JNI_IMPLEMENTATION_
JNEXUS_LDFLAGS=-Wl,--kill-at
msimplibdir = ${libdir}
msimplib_DATA = libjnexus.dll.lib libjnexus.dll.exp libjnexus.def
libjnexus.def: libjnexus.la
pexports .libs/libjnexus-0.dll > libjnexus.def
libjnexus.dll.exp: libjnexus.dll.lib
libjnexus.dll.lib: libjnexus.def
LIB /MACHINE:I386 /DEF:libjnexus.def /OUT:libjnexus.dll.lib
jnexusbindir = ${bindir}
jnexusbin_DATA = jnexus.dll
jnexus.dll : libjnexus.la
ln -sf .libs/libjnexus-0.dll jnexus.dll
endif
## include $(top_srcdir)/build_rules.am
|