+## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+##
+## Squid software is distributed under GPLv2+ license and includes
+## contributions from numerous individuals and organizations.
+## Please see the COPYING and CONTRIBUTORS files for details.
+##
+
include $(top_srcdir)/src/Common.am
-EXTRA_DIST = README COPYING config.test
+EXTRA_DIST = README required.m4 negotiate_kerberos_auth.8
SUBDIRS =
libexec_PROGRAMS = negotiate_kerberos_auth negotiate_kerberos_auth_test
-SOURCE = negotiate_kerberos_auth.cc base64.cc base64.h
-SOURCE_test = negotiate_kerberos_auth_test.cc base64.cc base64.h
-SPNEGO = \
- spnegohelp/derparse.cc spnegohelp/derparse.h \
- spnegohelp/spnego.cc spnegohelp/spnego.h \
- spnegohelp/spnegohelp.cc spnegohelp/spnegohelp.h \
- spnegohelp/spnegoparse.cc spnegohelp/spnegoparse.h
-
-if HAVE_SPNEGO
-negotiate_kerberos_auth_SOURCES = $(SOURCE)
-AM_CPPFLAGS = $(INCLUDES) -I$(srcdir)
-else
-negotiate_kerberos_auth_SOURCES = $(SOURCE) $(SPNEGO)
-AM_CPPFLAGS = $(INCLUDES) -I$(srcdir)/spnegohelp -I$(srcdir)
-endif
-negotiate_kerberos_auth_test_SOURCES = $(SOURCE_test)
-
+AM_CPPFLAGS += -I$(srcdir)
+negotiate_kerberos_auth_SOURCES = negotiate_kerberos_auth.cc negotiate_kerberos_pac.cc negotiate_kerberos.h
negotiate_kerberos_auth_LDFLAGS =
-negotiate_kerberos_auth_LDADD = $(COMPAT_LIB) $(XTRA_LIBS) @KRB5LIBS@
+negotiate_kerberos_auth_LDADD = \
+ $(top_builddir)/lib/libmiscencoding.la \
+ $(COMPAT_LIB) \
+ $(NETTLELIB) \
+ $(KRB5LIBS) \
+ $(XTRA_LIBS)
+
+negotiate_kerberos_auth_test_SOURCES = negotiate_kerberos_auth_test.cc
negotiate_kerberos_auth_test_LDFLAGS =
-negotiate_kerberos_auth_test_LDADD = $(COMPAT_LIB) $(XTRA_LIBS) @KRB5LIBS@
+negotiate_kerberos_auth_test_LDADD = \
+ $(top_builddir)/lib/libmiscencoding.la \
+ $(COMPAT_LIB) \
+ $(NETTLELIB) \
+ $(KRB5LIBS) \
+ $(XTRA_LIBS)
+
+man_MANS = negotiate_kerberos_auth.8