~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to bindings/java/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#
19
19
# You should have received a copy of the GNU Library General Public License
20
20
# along with the file; if not, write to the Free Software
21
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
21
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
22
22
 
23
23
SWIG_SUPPORT_DIR = $(top_srcdir)/bindings/swig-support
24
24
PLPLOTCAPI_I = $(SWIG_SUPPORT_DIR)/plplotcapi.i
 
25
SWIG_JAVA_DIR = $(top_srcdir)/bindings/java
25
26
 
26
 
SWIG_CMD = $(SWIG) -I$(SWIG_SUPPORT_DIR) -DPL_DOUBLE -DSWIG_JAVA -java 
 
27
SWIG_CMD = $(SWIG) -I$(SWIG_SUPPORT_DIR) -I$(SWIG_JAVA_DIR) -DPL_DOUBLE -DSWIG_JAVA -java 
27
28
 
28
29
swigjavafiles = \
 
30
        plplotjavacJNI.java \
29
31
        SWIGTYPE_p_p_char.java \
30
 
        plplotjavac.java \
31
 
        plplotjavacJNI.java
 
32
        plplotjavac.java 
32
33
 
33
34
# This required for swig-1.3.21, but not for swig-1.3.17
34
35
swigjavafiles += plplotjavacConstants.java
38
39
swiggenfiles = $(swigjavafiles) $(swigcfiles)
39
40
 
40
41
javafiles = \
41
 
        PLStreamc.java \
 
42
        $(top_srcdir)/bindings/java/PLStream.java \
42
43
        config.java \
43
44
        $(swigjavafiles)
44
45
 
 
46
# Note : the order of these is important since there is no formal 
 
47
# dependency checking.
 
48
javaclasses = \
 
49
        config.class \
 
50
        plplotjavacJNI.class \
 
51
        SWIGTYPE_p_p_char.class\
 
52
        plplotjavacConstants.class \
 
53
        plplotjavac.class \
 
54
        PLStream.class
 
55
 
45
56
### FIXME: Brute force inclusion in dist tarball.  The files below may
46
57
### be treated in a different way for installation [RL, 2003-03-06]
47
58
EXTRA_DIST = \
48
59
        PLStream.java \
49
 
        PLStreamc.java \
50
60
        README.javaAPI \
51
 
        javabind.c \
52
61
        plplotjavac.i \
53
62
        $(swiggenfiles)
54
63
 
55
 
$(swiggenfiles): plplotjavac.i $(PLPLOTCAPI_I)
 
64
$(swiggenfiles): $(PLPLOTJAVAC_I) plplotjavac.i $(PLPLOTCAPI_I)
56
65
        $(SWIG_CMD) -package plplot.core plplotjavac.i
57
66
 
58
67
# Must have "exec" in the name.
59
 
ourexecjavadir = $(libdir)/java/plplot/core
 
68
execjavawrapperdir = $(JAVAWRAPPER_DIR)
60
69
 
61
70
libplplot = $(top_builddir)/src/libplplot$(LIB_TAG).la
62
71
 
63
 
AM_CPPFLAGS = $(INCLTDL) $(JAVAINCCMD)
 
72
AM_CPPFLAGS = -I$(top_srcdir)/include $(INCLTDL) $(JAVAINCCMD)
64
73
 
65
74
nodist_plplotjavac_wrap_la_SOURCES  = plplotjavac_wrap.c
66
75
 
67
76
# no-undefined should work on all platforms here since libplplot should
68
77
# resolve all symbols.
69
78
plplotjavac_wrap_la_LDFLAGS = \
70
 
        -rpath $(ourexecjavadir) \
 
79
        -rpath $(execjavawrapperdir) \
71
80
        -module \
72
81
        -avoid-version \
73
82
        -no-undefined \
77
86
 
78
87
# Use javaJAVA for gcj support once gcc-3.2 use becomes
79
88
# widespread.
80
 
ourexecjava_DATA = README.javaAPI $(javafiles)
81
 
 
82
 
ourexecjava_LTLIBRARIES = plplotjavac_wrap.la
 
89
 
 
90
# Can't use java support for now since jikes doesn't handle dependencies 
 
91
# properly - instead do it using DATA and with an explicit rule.
 
92
#noinst_JAVA = $(javafiles)
 
93
 
 
94
.java.class: 
 
95
        $(JAVAC) $(AM_JAVACFLAGS) $(JAVACFLAGS) $< -d . -classpath .
 
96
        cp plplot/core/$@ .
 
97
 
 
98
noinst_DATA = jar-stamp
 
99
 
 
100
jar-stamp: $(javaclasses) $(javafiles) $(top_srcdir)/bindings/java/README.javaAPI
 
101
        $(mkdir_p) plplot/core
 
102
        $(mkdir_p) plplot/core/src
 
103
        cp $(top_srcdir)/bindings/java/README.javaAPI plplot/core
 
104
        cp $(javafiles) plplot/core/src
 
105
        touch jar-stamp
 
106
 
 
107
execjavawrapper_LTLIBRARIES = plplotjavac_wrap.la
83
108
 
84
109
# if enable_java
85
110
endif
86
111
 
87
 
### Use install-hook to remove the unneeded (by java) *.a and *.la files
88
 
### and also compile the java files that have been installed.
89
 
 
 
112
# Remove unneeded *.a *.la files that are installed by Libtool
90
113
install-exec-hook:
91
114
if enable_java
92
 
        ( cd $(DESTDIR)$(ourexecjavadir) ; \
93
 
          rm -f plplotjavac_wrap*.a plplotjavac_wrap*.la ; \
94
 
          cd $(DESTDIR)$(libdir) ; \
95
 
          javac -classpath java -d java java/plplot/core/*.java)
 
115
        ( cd $(DESTDIR)$(execjavawrapperdir) ; \
 
116
          rm -f *.a *.la )
96
117
endif
97
118
 
 
119
clean-local:
 
120
        rm -rf plplot
 
121
 
 
122
CLEANFILES = $(javaclasses) jar-stamp
 
123
 
98
124
MAINTAINERCLEANFILES = $(swiggenfiles)