]> git.ipfire.org Git - thirdparty/squid.git/blob - lib/Makefile.am
6d463de9071a0b11e903740afa5da3928c7806ac
[thirdparty/squid.git] / lib / Makefile.am
1 ## Copyright (C) 1996-2022 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 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
21 install: all
22 install-strip: all
23
24 noinst_LTLIBRARIES = \
25 libmiscencoding.la \
26 libmisccontainers.la \
27 libmiscutil.la
28
29 #
30 # Some libraries are only available on Windows
31 # and others are unable to be built.
32 #
33 if ENABLE_WIN32SPECIFIC
34 noinst_LTLIBRARIES += libsspwin32.la
35 libsspwin32_la_SOURCES = sspwin32.cc
36 else
37 EXTRA_DIST += sspwin32.cc
38 endif
39 if ENABLE_SMBLIB
40 # smblib is the only user of the rfcnb library
41 SUBDIRS += rfcnb smblib
42 endif
43 if ENABLE_AUTH_NTLM
44 SUBDIRS += ntlmauth
45 endif
46
47 #
48 # dirent.c, encrypt.c and getopt.c are needed for native Windows support.
49 #
50 EXTRA_libmiscutil_la_SOURCES = \
51 dirent.c \
52 encrypt.c \
53 getopt.c
54
55 libmiscencoding_la_SOURCES = \
56 base64.c \
57 html_quote.c \
58 md5.c \
59 rfc1738.c \
60 rfc2617.c
61
62 libmisccontainers_la_SOURCES = \
63 hash.cc
64
65 libmiscutil_la_SOURCES = \
66 $(SNPRINTFSOURCE) \
67 Splay.cc \
68 getfullhostname.c \
69 heap.c \
70 radix.c \
71 util.c \
72 xusleep.c
73
74 TESTS += tests/testRFC1738
75
76 check_PROGRAMS += tests/testRFC1738
77
78 tests_testRFC1738_SOURCES = \
79 tests/testRFC1738.cc \
80 tests/testRFC1738.h
81
82 tests_testRFC1738_LDADD= \
83 $(top_builddir)/lib/libmiscencoding.la \
84 $(top_builddir)/lib/libmiscutil.la \
85 $(LIBCPPUNIT_LIBS) \
86 $(COMPAT_LIB)
87
88 tests_testRFC1738_LDFLAGS = $(LIBADD_DL)
89
90
91 ## Special Universal .h dependency test script
92 ## aborts if error encountered
93 testHeaders: $(top_srcdir)/include/*.h
94 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
95
96 TESTS += testHeaders
97 CLEANFILES += testHeaders
98 .PHONY: testHeaders