]> git.ipfire.org Git - thirdparty/squid.git/blob - lib/Makefile.am
Remove unnecessary C linkage and unused code (#1677)
[thirdparty/squid.git] / lib / Makefile.am
1 ## Copyright (C) 1996-2023 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 SUBDIRS=
11 EXTRA_DIST=
12
13 if ENABLE_ESI
14 SUBDIRS += libTrie
15 endif
16 if ENABLE_SNMP
17 SUBDIRS += snmplib
18 endif
19 if ENABLE_SSPI
20 SUBDIRS += sspi
21 endif
22
23 install: all
24 install-strip: all
25
26 noinst_LTLIBRARIES = \
27 libmiscencoding.la \
28 libmisccontainers.la \
29 libmiscutil.la
30
31 if ENABLE_SMBLIB
32 # smblib is the only user of the rfcnb library
33 SUBDIRS += rfcnb smblib
34 endif
35 if ENABLE_AUTH_NTLM
36 SUBDIRS += ntlmauth
37 endif
38
39 #
40 # dirent.c, encrypt.c and getopt.c are needed for native Windows support.
41 #
42 EXTRA_libmiscutil_la_SOURCES = \
43 dirent.c \
44 encrypt.c \
45 getopt.c
46
47 libmiscencoding_la_SOURCES = \
48 base64.c \
49 md5.c \
50 rfc1738.c \
51 rfc2617.c
52
53 libmisccontainers_la_SOURCES = \
54 hash.cc
55
56 libmiscutil_la_SOURCES = \
57 $(SNPRINTFSOURCE) \
58 Splay.cc \
59 heap.c \
60 radix.c \
61 util.cc
62
63 TESTS += tests/testRFC1738
64
65 check_PROGRAMS += tests/testRFC1738
66
67 tests_testRFC1738_SOURCES = \
68 tests/testRFC1738.cc
69
70 tests_testRFC1738_LDADD= \
71 $(top_builddir)/lib/libmiscencoding.la \
72 $(top_builddir)/lib/libmiscutil.la \
73 $(LIBCPPUNIT_LIBS) \
74 $(COMPAT_LIB)
75
76 tests_testRFC1738_LDFLAGS = $(LIBADD_DL)
77
78 testHeaders: $(top_srcdir)/include/*.h