import cyrus-sasl-2.1.23
[cyrus-sasl.git] / utils / Makefile.am
1 # Makefile.am for the SASL utilities
2 # Rob Earhart
3 #
4 ################################################################
5 # Copyright (c) 2000 Carnegie Mellon University.  All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
9 # are met:
10 #
11 # 1. Redistributions of source code must retain the above copyright
12 #    notice, this list of conditions and the following disclaimer. 
13 #
14 # 2. Redistributions in binary form must reproduce the above copyright
15 #    notice, this list of conditions and the following disclaimer in
16 #    the documentation and/or other materials provided with the
17 #    distribution.
18 #
19 # 3. The name "Carnegie Mellon University" must not be used to
20 #    endorse or promote products derived from this software without
21 #    prior written permission. For permission or any other legal
22 #    details, please contact  
23 #      Office of Technology Transfer
24 #      Carnegie Mellon University
25 #      5000 Forbes Avenue
26 #      Pittsburgh, PA  15213-3890
27 #      (412) 268-4387, fax: (412) 268-7395
28 #      tech-transfer@andrew.cmu.edu
29 #
30 # 4. Redistributions of any form whatsoever must retain the following
31 #    acknowledgment:
32 #    "This product includes software developed by Computing Services
33 #     at Carnegie Mellon University (http://www.cmu.edu/computing/)."
34 #
35 # CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO
36 # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37 # AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE
38 # FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
39 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
40 # AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
41 # OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
42 #
43 ################################################################
44
45 all_sasl_libs = ../lib/libsasl2.la $(SASL_DB_LIB) $(LIB_SOCKET)
46 all_sasl_static_libs = ../lib/.libs/libsasl2.a $(SASL_DB_LIB) $(LIB_SOCKET) $(GSSAPIBASE_LIBS) $(GSSAPI_LIBS) $(SASL_KRB_LIB) $(LIB_DES) $(PLAIN_LIBS) $(SRP_LIBS) $(LIB_MYSQL) $(LIB_PGSQL) $(LIB_SQLITE)
47
48 sbin_PROGRAMS = @SASL_DB_UTILS@ @SMTPTEST_PROGRAM@ pluginviewer
49 EXTRA_PROGRAMS = saslpasswd2 sasldblistusers2 testsuite testsuitestatic smtptest pluginviewer
50
51 noinst_PROGRAMS = dbconverter-2
52
53 if NO_SASL_DB_MANS
54 man_MANS = 
55 else
56 man_MANS = saslpasswd2.8 sasldblistusers2.8 pluginviewer.8
57 endif
58
59 saslpasswd2_LDADD = ../sasldb/libsasldb.la $(all_sasl_libs)
60 saslpasswd2_SOURCES = saslpasswd.c
61 sasldblistusers2_LDADD = ../sasldb/libsasldb.la $(all_sasl_libs)
62 sasldblistusers2_SOURCES = sasldblistusers.c
63 dbconverter_2_LDADD = ../sasldb/libsasldb.la $(all_sasl_libs)
64 pluginviewer_LDADD = $(all_sasl_libs)
65 pluginviewer_SOURCES = pluginviewer.c
66
67 testsuite_LDADD = $(all_sasl_libs) @DMALLOC_LIBS@
68
69 CLEANFILES=$(EXTRA_PROGRAMS)
70
71 testsuitestatic_SOURCES = testsuite.c
72 testsuitestatic_LDADD = $(all_sasl_static_libs) @DMALLOC_LIBS@ @SASL_DL_LIB@
73 testsuitestatic_DEPENDENCIES = ../lib/.libs/libsasl2.a
74
75 smtptest_SOURCES =
76 smtptest_DEPENDENCIES = ./smtptest.lo ./libsfsasl2.la
77 smtptest_LDADD = ./smtptest.lo ./libsfsasl2.la @SFIO_LIB_FLAGS@ @DMALLOC_LIBS@ $(all_sasl_libs)
78
79 saslincludedir = $(includedir)/sasl
80
81 saslinclude_HEADERS = @SASL_UTIL_HEADERS_EXTRA@
82 EXTRA_HEADERS = sfsasl.h
83
84 # Note: we explicitly do *not* link to libsfio, as people will need to
85 # link to that anyway if they want to use this. 
86 lib_LTLIBRARIES = @SASL_UTIL_LIBS_EXTRA@
87 EXTRA_LTLIBRARIES = libsfsasl2.la
88 libsfsasl2_la_SOURCES = 
89 libsfsasl2_la_LIBADD = sfsasl.lo
90 libsfsasl2_la_LDFLAGS = -version-info 1:0:0 -export-dynamic -rpath $(libdir)
91
92 INCLUDES=-I$(top_srcdir)/include -I$(top_builddir)/include @SASL_DB_INC@
93 EXTRA_DIST = saslpasswd2.8 sasldblistusers2.8 pluginviewer.8 sfsasl.h sfsasl.c smtptest.c testsuite.c pluginviewer.c NTMakefile
94
95 sfsasl.lo: sfsasl.c
96         $(LIBTOOL) --mode=compile $(COMPILE) @SFIO_INC_FLAGS@ -c $(srcdir)/sfsasl.c
97
98 smtptest.lo: smtptest.c
99         $(LIBTOOL) --mode=compile $(COMPILE) @SFIO_INC_FLAGS@ -c $(srcdir)/smtptest.c