]> git.ipfire.org Git - thirdparty/squid.git/blob - lib/Makefile.am
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / lib / Makefile.am
1 ## Copyright (C) 1996-2018 The Squid Software Foundation and contributors
2 ##
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
6 ##
7
8 include $(top_srcdir)/src/Common.am
9
10 DIST_SUBDIRS = ntlmauth profiler rfcnb smblib libTrie snmplib
11 SUBDIRS=
12 EXTRA_DIST=
13
14 if ENABLE_ESI
15 SUBDIRS += libTrie
16 endif
17 if ENABLE_SNMP
18 SUBDIRS += snmplib
19 endif
20 if ENABLE_XPROF_STATS
21 SUBDIRS += profiler
22 endif
23
24 install: all
25 install-strip: all
26
27 noinst_LTLIBRARIES = \
28 libmiscencoding.la \
29 libmisccontainers.la \
30 libmiscutil.la
31
32 #
33 # Some libraries are only available on Windows
34 # and others are unable to be built.
35 #
36 if ENABLE_WIN32SPECIFIC
37 noinst_LTLIBRARIES += libsspwin32.la
38 libsspwin32_la_SOURCES = sspwin32.cc
39 else
40 EXTRA_DIST += sspwin32.cc
41 endif
42 if ENABLE_SMBLIB
43 # smblib is the only user of the rfcnb library
44 SUBDIRS += rfcnb smblib
45 endif
46 if ENABLE_AUTH_NTLM
47 SUBDIRS += ntlmauth
48 endif
49
50 #
51 # dirent.c, encrypt.c and getopt.c are needed for native Windows support.
52 #
53 EXTRA_libmiscutil_la_SOURCES = \
54 dirent.c \
55 encrypt.c \
56 getopt.c
57
58 libmiscencoding_la_SOURCES = \
59 base64.c \
60 charset.c \
61 html_quote.c \
62 md5.c \
63 rfc1738.c \
64 rfc2617.c \
65 uudecode.c
66
67 libmisccontainers_la_SOURCES = \
68 hash.cc
69
70 libmiscutil_la_SOURCES = \
71 getfullhostname.c \
72 heap.c \
73 iso3307.c \
74 radix.c \
75 rfc1123.c \
76 $(SNPRINTFSOURCE) \
77 Splay.cc \
78 stub_memaccount.c \
79 util.c \
80 xusleep.c
81
82 TESTS += tests/testRFC1738
83
84 check_PROGRAMS += tests/testRFC1738
85
86 tests_testRFC1738_SOURCES= \
87 tests/testRFC1738.h \
88 tests/testRFC1738.cc
89
90 tests_testRFC1738_LDADD= \
91 $(top_builddir)/lib/libmiscencoding.la \
92 $(top_builddir)/lib/libmiscutil.la \
93 $(LIBCPPUNIT_LIBS) \
94 $(COMPAT_LIB)
95
96 tests_testRFC1738_LDFLAGS = $(LIBADD_DL)
97
98
99 ## Special Universal .h dependency test script
100 ## aborts if error encountered
101 testHeaders: $(top_srcdir)/include/*.h
102 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
103
104 TESTS += testHeaders
105 CLEANFILES += testHeaders
106 .PHONY: testHeaders