]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - lib/Makefile.am
Source Format Enforcement (#763)
[thirdparty/squid.git] / lib / Makefile.am
index 913013879983960b8172f6720c0ad3c1cb18f090..cc392be4c0adb981cf97ae29c899be66c58ce361 100644 (file)
@@ -1,36 +1,51 @@
+## Copyright (C) 1996-2021 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
 
-DIST_SUBDIRS = ntlmauth profiler rfcnb smblib libTrie
+DIST_SUBDIRS = ntlmauth profiler rfcnb smblib libTrie snmplib
+SUBDIRS=
 EXTRA_DIST=
 
-SUBDIRS = rfcnb smblib
-if ENABLE_AUTH_NTLM
-SUBDIRS += ntlmauth
-endif
-if USE_ESI
+if ENABLE_ESI
 SUBDIRS += libTrie
 endif
+if ENABLE_SNMP
+SUBDIRS += snmplib
+endif
 if ENABLE_XPROF_STATS
 SUBDIRS += profiler
 endif
 
-
 install: all
 install-strip: all
 
-if ENABLE_WIN32SPECIFIC
-LIBSSPWIN32=libsspwin32.la
-else
-LIBSSPWIN32=
-EXTRA_LTLIBRARIES = \
-       libsspwin32.la
-endif
-
 noinst_LTLIBRARIES = \
        libmiscencoding.la \
        libmisccontainers.la \
-       libmiscutil.la \
-       $(LIBSSPWIN32)
+       libmiscutil.la
+
+#
+# Some libraries are only available on Windows
+# and others are unable to be built.
+#
+if ENABLE_WIN32SPECIFIC
+noinst_LTLIBRARIES += libsspwin32.la
+libsspwin32_la_SOURCES = sspwin32.cc
+else
+EXTRA_DIST += sspwin32.cc
+endif
+if ENABLE_SMBLIB
+# smblib is the only user of the rfcnb library
+SUBDIRS += rfcnb smblib
+endif
+if ENABLE_AUTH_NTLM
+SUBDIRS += ntlmauth
+endif
 
 #
 # dirent.c, encrypt.c and getopt.c are needed for native Windows support.
@@ -42,59 +57,41 @@ EXTRA_libmiscutil_la_SOURCES = \
 
 libmiscencoding_la_SOURCES = \
        base64.c \
-       charset.c \
        html_quote.c \
        md5.c \
        rfc1738.c \
-       rfc2617.c \
-       uudecode.c
+       rfc2617.c
 
 libmisccontainers_la_SOURCES = \
        hash.cc
 
 libmiscutil_la_SOURCES = \
-       malloc_trace.cc \
-       MemPool.cc \
-       MemPoolChunked.cc \
-       MemPoolMalloc.cc \
+       $(SNPRINTFSOURCE) \
+       Splay.cc \
        getfullhostname.c \
        heap.c \
        iso3307.c \
        radix.c \
-       rfc1035.c \
        rfc1123.c \
-       rfc2671.c \
-       rfc3596.c \
-       $(SNPRINTFSOURCE) \
-       Splay.cc \
        stub_memaccount.c \
        util.c \
        xusleep.c
 
-# $(top_srcdir)/include/version.h should be a dependency
-libsspwin32_la_SOURCES = \
-       sspwin32.c
-
-TESTS += tests/testAll
+TESTS += tests/testRFC1738
 
-check_PROGRAMS += tests/testAll
+check_PROGRAMS += tests/testRFC1738
 
-tests_testAll_SOURCES= \
-       tests/testArray.h \
-       tests/testArray.cc \
-       tests/testRFC1035.h \
-       tests/testRFC1035.cc \
-       tests/testRFC1738.h \
+tests_testRFC1738_SOURCES = \
        tests/testRFC1738.cc \
-       tests/testMain.cc
+       tests/testRFC1738.h
 
-tests_testAll_LDADD= \
-       $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS) \
+tests_testRFC1738_LDADD= \
        $(top_builddir)/lib/libmiscencoding.la \
        $(top_builddir)/lib/libmiscutil.la \
+       $(LIBCPPUNIT_LIBS) \
        $(COMPAT_LIB)
 
-tests_testAll_LDFLAGS = $(LIBADD_DL)
+tests_testRFC1738_LDFLAGS = $(LIBADD_DL)
 
 
 ## Special Universal .h dependency test script