-#
-# Makefile for the Squid Object Cache server
-#
-# $Id$
-#
-# Uncomment and customize the following to suit your needs:
-#
+## 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.
+##
-libexec_PROGRAMS = ncsa_auth
-ncsa_auth_SOURCES = ncsa_auth.c crypt_md5.c crypt_md5.h
-man_MANS = ncsa_auth.8
-EXTRA_DIST = ncsa_auth.8
+include $(top_srcdir)/src/Common.am
+
+libexec_PROGRAMS = basic_ncsa_auth
+basic_ncsa_auth_SOURCES = basic_ncsa_auth.cc crypt_md5.cc crypt_md5.h
+man_MANS = basic_ncsa_auth.8
+EXTRA_DIST = basic_ncsa_auth.8 required.m4
LDADD = \
- -L$(top_builddir)/libsquid-compat/libcompat.la \
- -L$(top_builddir)/lib -lmiscutil \
+ $(top_builddir)/lib/libmisccontainers.la \
+ $(top_builddir)/lib/libmiscencoding.la \
+ $(COMPAT_LIB) \
+ $(NETTLELIB) \
$(CRYPTLIB) \
- $(XTRA_LIBS) \
- $(SSLLIB)
+ $(SSLLIB) \
+ $(XTRA_LIBS)
-INCLUDES = \
- -I$(top_srcdir) \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/src
+## we need our local files too (but avoid -I. at all costs)
+AM_CPPFLAGS += -I$(srcdir)