1AUTOMAKE_OPTIONS = 1.7
2sbin_PROGRAMS	= saslauthd testsaslauthd
3EXTRA_PROGRAMS  = saslcache
4
5LTLIBOBJS = @LTLIBOBJS@
6LTLIBOBJS_FULL = $(addprefix ${top_srcdir}/lib/,${LTLIBOBJS})
7CRYPTO_COMPAT_OBJS = $(top_builddir)/common/libcrypto_compat.la
8if AUTH_SASLDB
9LIBSASLDB_OBJS = $(top_builddir)/sasldb/libsasldb.la
10else
11LIBSASLDB_OBJS =
12endif
13
14saslauthd_SOURCES = mechanisms.c globals.h \
15		    mechanisms.h auth_dce.c auth_dce.h auth_getpwent.c \
16		    auth_getpwent.h auth_krb5.c auth_krb5.h auth_krb4.c \
17		    auth_krb4.h auth_pam.c auth_pam.h auth_rimap.c auth_httpform.c \
18		    auth_rimap.h auth_shadow.c auth_shadow.h auth_sia.c auth_httpform.h \
19		    auth_sia.h auth_sasldb.c auth_sasldb.h lak.c lak.h \
20		    auth_ldap.c auth_ldap.h cache.c cache.h cfile.c cfile.h \
21		    krbtf.c krbtf.h utils.c utils.h \
22                    ipc_unix.c ipc_doors.c saslauthd-main.c saslauthd-main.h \
23		    md5.c saslauthd_md5.h
24EXTRA_saslauthd_sources = getaddrinfo.c getnameinfo.c
25saslauthd_DEPENDENCIES = saslauthd-main.o $(LTLIBOBJS_FULL)
26saslauthd_LDADD	= @SASL_KRB_LIB@ \
27		  @GSSAPIBASE_LIBS@ @LIB_CRYPT@ @LIB_SIA@ \
28		  @LIB_SOCKET@ @SASL_DB_LIB@ @LIB_PAM@ @LDAP_LIBS@ $(LTLIBOBJS_FULL) $(CRYPTO_COMPAT_OBJS) $(LIBSASLDB_OBJS)
29
30testsaslauthd_SOURCES = testsaslauthd.c utils.c
31testsaslauthd_LDADD = @LIB_SOCKET@
32
33saslcache_SOURCES = saslcache.c
34
35EXTRA_DIST	= testsaslauthd.8 saslauthd.mdoc include \
36		  getnameinfo.c getaddrinfo.c LDAP_SASLAUTHD
37AM_CPPFLAGS	= -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_builddir)/common -I$(top_srcdir)/common
38DEFS            = @DEFS@ -DSASLAUTHD_CONF_FILE_DEFAULT=\"@sysconfdir@/saslauthd.conf\" -I. -I$(srcdir) -I..
39
40
41dist-hook: saslauthd.mdoc testsaslauthd.8
42
43install-data-local: saslauthd.mdoc testsaslauthd.8
44	$(mkinstalldirs) $(DESTDIR)$(mandir)/man8
45	$(INSTALL_DATA) $(srcdir)/saslauthd.mdoc $(DESTDIR)$(mandir)/man8/saslauthd.8
46	$(INSTALL_DATA) $(srcdir)/testsaslauthd.8 $(DESTDIR)$(mandir)/man8/testsaslauthd.8
47
48uninstall-local:
49	-rm -rf $(DESTDIR)$(mandir)/man8/saslauthd.8
50	-rm -rf $(DESTDIR)$(mandir)/man8/testsaslauthd.8
51