]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - lib/Makefile.am
SourceFormat Enforcement
[thirdparty/squid.git] / lib / Makefile.am
index f474316568fd6c068c1975793f509cba37dac2c2..d73181d2318efa58877ebc694fe8dadb7b8ddf02 100644 (file)
-## Process this file with automake to produce Makefile.in
-#
-#  $Id$
-#
+## 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
 
-SUBDIRS =
+AUTOMAKE_OPTIONS = subdir-objects
+
+DIST_SUBDIRS = ntlmauth profiler rfcnb smblib libTrie snmplib
+SUBDIRS=
+EXTRA_DIST=
 
 if USE_ESI
 SUBDIRS += libTrie
 endif
-
+if ENABLE_SNMP
+SUBDIRS += snmplib
+endif
+if ENABLE_XPROF_STATS
+SUBDIRS += profiler
+endif
 
 install: all
 install-strip: all
 
+noinst_LTLIBRARIES = \
+       libmiscencoding.la \
+       libmisccontainers.la \
+       libmiscutil.la
 
-if ENABLE_XPROF_STATS
-XPROF_STATS_SOURCE = Profiler.c
-else
-XPROF_STATS_SOURCE = 
-endif
-
+#
+# Some libraries are only available on Windows
+# and others are unable to be built.
+#
 if ENABLE_WIN32SPECIFIC
-LIBSSPWIN32=libsspwin32.a
-WIN32SRC = win32lib.c
+noinst_LTLIBRARIES += libsspwin32.la
+libsspwin32_la_SOURCES = sspwin32.cc
 else
-LIBSSPWIN32=
-WIN32SRC=
+SUBDIRS += rfcnb smblib
+EXTRA_DIST += sspwin32.cc
+endif
+if ENABLE_AUTH_NTLM
+SUBDIRS += ntlmauth
 endif
-
-EXTRA_LIBRARIES = \
-       libsspwin32.a
-noinst_LIBRARIES = \
-       libmiscutil.a \
-       $(LIBSSPWIN32)
 
 #
 # dirent.c, encrypt.c and getopt.c are needed for native Windows support.
 #
-EXTRA_libmiscutil_a_SOURCES = \
+EXTRA_libmiscutil_la_SOURCES = \
        dirent.c \
        encrypt.c \
-       getopt.c \
-       md5.c \
-       Profiler.c \
-       win32lib.c
-libmiscutil_a_SOURCES = \
-       MemPool.cc \
-       MemPoolChunked.cc \
-       MemPoolMalloc.cc \
+       getopt.c
+
+libmiscencoding_la_SOURCES = \
        base64.c \
        charset.c \
+       html_quote.c \
+       md5.c \
+       rfc1738.c \
+       rfc2617.c \
+       uudecode.c
+
+libmisccontainers_la_SOURCES = \
+       hash.cc
+
+libmiscutil_la_SOURCES = \
        getfullhostname.c \
-       hash.c \
        heap.c \
-       html_quote.c \
        iso3307.c \
-       md5.c \
        radix.c \
        rfc1035.c \
        rfc1123.c \
-       rfc1738.c \
-       rfc2617.c \
+       rfc2671.c \
        rfc3596.c \
        $(SNPRINTFSOURCE) \
        Splay.cc \
-       strnstr.cc \
        stub_memaccount.c \
        util.c \
-       uudecode.c \
-       xusleep.c \
-       $(XPROF_STATS_SOURCE) \
-       $(WIN32SRC)
-libmiscutil_a_LIBADD = $(LIBOBJS)
-
-# $(top_srcdir)/include/version.h should be a dependency
-libsspwin32_a_SOURCES = \
-       base64.c \
-       sspwin32.c
-libsspwin32_a_LIBADD = \
-       $(LIBOBJS)
+       xusleep.c
 
+TESTS += tests/testRFC1035 tests/testRFC1738
 
-TESTS += tests/testAll
+check_PROGRAMS += tests/testRFC1035 tests/testRFC1738
 
-check_PROGRAMS += tests/testAll
-
-tests_testAll_SOURCES= \
-       tests/testArray.h \
-       tests/testArray.cc \
+tests_testRFC1035_SOURCES= \
        tests/testRFC1035.h \
-       tests/testRFC1035.cc \
+       tests/testRFC1035.cc
+
+tests_testRFC1035_LDADD= \
+       $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS) \
+       $(top_builddir)/lib/libmiscencoding.la \
+       $(top_builddir)/lib/libmiscutil.la \
+       $(COMPAT_LIB)
+
+tests_testRFC1035_LDFLAGS = $(LIBADD_DL)
+
+tests_testRFC1738_SOURCES= \
        tests/testRFC1738.h \
-       tests/testRFC1738.cc \
-       tests/testMain.cc \
-       $(XPROF_STATS_SOURCE) \
-       $(WIN32SRC) \
-       util.c
+       tests/testRFC1738.cc
 
-tests_testAll_LDADD= $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS)
+tests_testRFC1738_LDADD= \
+       $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS) \
+       $(top_builddir)/lib/libmiscencoding.la \
+       $(top_builddir)/lib/libmiscutil.la \
+       $(COMPAT_LIB)
 
-tests_testAll_LDFLAGS = $(LIBADD_DL)
+tests_testRFC1738_LDFLAGS = $(LIBADD_DL)
 
 
 ## Special Universal .h dependency test script
 ## aborts if error encountered
 testHeaders: $(top_srcdir)/include/*.h
-       $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/include" || exit 1
+       $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
 
 TESTS += testHeaders
 CLEANFILES += testHeaders