import cyrus-sasl-2.1.23
[cyrus-sasl.git] / java / CyrusSasl / Makefile.am
1 # Makefile.am for the Java SASL library
2 # Rob Earhart
3 #
4 ################################################################
5 #        Copyright 1998 by Carnegie Mellon University
6 #
7 #                      All Rights Reserved
8 #
9 #Permission to use, copy, modify, and distribute this software and its
10 #documentation for any purpose and without fee is hereby granted,
11 #provided that the above copyright notice appear in all copies and that
12 #both that copyright notice and this permission notice appear in
13 #supporting documentation, and that the name of Carnegie Mellon University
14 #not be used in advertising or publicity pertaining to distribution of the
15 #software without specific, written prior permission.
16 #
17 #CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
18 #SOFTWARE, INCLUDING #ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, 
19 #IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE FOR ANY SPECIAL, 
20 #INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 
21 #LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
22 #OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23 #PERFORMANCE OF THIS SOFTWARE.
24 ################################################################
25
26 javasasl_version = 1:0:0
27
28 javasasldir = $(prefix)/lib/java/classes/sasl/CyrusSasl
29 javahtmldir = $(prefix)/html/sasl
30
31 INCLUDES=-I$(top_srcdir)/include $(JAVA_INCLUDES)
32
33 javasasl_JAVA = Sasl.java GenericClient.java \
34                 ClientFactory.java \
35                 GenericCommon.java SaslClient.java \
36                 SaslClientFactory.java SaslException.java \
37                 SaslInputStream.java SaslOutputStream.java\
38                 SaslUtils.java ServerFactory.java \
39                 SaslServerFactory.java SaslServer.java \
40                 GenericServer.java
41 EXTRA_DIST = $(javasasl_JAVA)
42 CLASSES = $(javasasl_JAVA:.java=.class)
43
44 lib_LTLIBRARIES = libjavasasl.la
45 libjavasasl_la_SOURCES = javasasl.h javasasl.c
46 libjavasasl_la_LDFLAGS = -export_dynamic -L../../lib/.libs -lsasl2 -version-info $(javasasl_version) $(wildcard ../lib/*.lo)
47 BUILT_SOURCES = javasasl.h $(CLASSES)
48
49 $(srcdir)/javasasl.c: javasasl.h
50
51 javasasl.h: $(CLASSES)
52         $(CLASSPATH_ENV) $(JAVAH) -o $@ -jni $(patsubst %.class,CyrusSasl.%,$^)
53
54 # force build of class files
55 $(CLASSES): classjavasasl.stamp
56
57 #install-data-local:
58 # xxx broken
59 #       $(mkinstalldirs) $(javahtmldir)
60 #       $(CLASSPATH_ENV) $(JAVADOC) -d $(javahtmldir) sasl
61 #       -if test ! -h $(javahtmldir)/images; \
62 #       then \
63 #         $(LN_S) $(JAVA_BASE)/docs/api/images $(javahtmldir)/images; \
64 #       fi