]>
Commit | Line | Data |
---|---|---|
f70aedc4 | 1 | ## Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
0545caaa AJ |
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 | ||
ee342e0b AJ |
8 | include $(top_srcdir)/src/Common.am |
9 | ||
316fd866 | 10 | DIST_SUBDIRS = ntlmauth rfcnb smblib libTrie snmplib |
ae64d121 | 11 | SUBDIRS= |
25f98340 | 12 | EXTRA_DIST= |
87420606 | 13 | |
8aafbbc1 | 14 | if ENABLE_ESI |
c41d7e69 AR |
15 | SUBDIRS += libTrie |
16 | endif | |
ae64d121 AJ |
17 | if ENABLE_SNMP |
18 | SUBDIRS += snmplib | |
19 | endif | |
c41d7e69 | 20 | |
fa467ef0 | 21 | install: all |
22 | install-strip: all | |
23 | ||
25f98340 AJ |
24 | noinst_LTLIBRARIES = \ |
25 | libmiscencoding.la \ | |
26 | libmisccontainers.la \ | |
60bb8210 AJ |
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 | |
d6054896 | 35 | libsspwin32_la_SOURCES = sspwin32.cc |
60bb8210 | 36 | else |
d6054896 | 37 | EXTRA_DIST += sspwin32.cc |
60bb8210 | 38 | endif |
8d06d869 AJ |
39 | if ENABLE_SMBLIB |
40 | # smblib is the only user of the rfcnb library | |
41 | SUBDIRS += rfcnb smblib | |
42 | endif | |
60bb8210 AJ |
43 | if ENABLE_AUTH_NTLM |
44 | SUBDIRS += ntlmauth | |
45 | endif | |
cc937513 | 46 | |
63b81f13 | 47 | # |
1dcf8e5d | 48 | # dirent.c, encrypt.c and getopt.c are needed for native Windows support. |
63b81f13 | 49 | # |
25f98340 | 50 | EXTRA_libmiscutil_la_SOURCES = \ |
63b81f13 GS |
51 | dirent.c \ |
52 | encrypt.c \ | |
0a1238e7 | 53 | getopt.c |
2ccf2eb2 | 54 | |
25f98340 AJ |
55 | libmiscencoding_la_SOURCES = \ |
56 | base64.c \ | |
25f98340 AJ |
57 | html_quote.c \ |
58 | md5.c \ | |
59 | rfc1738.c \ | |
4cb75d28 | 60 | rfc2617.c |
25f98340 AJ |
61 | |
62 | libmisccontainers_la_SOURCES = \ | |
209663bb | 63 | hash.cc |
25f98340 AJ |
64 | |
65 | libmiscutil_la_SOURCES = \ | |
aa5639dc | 66 | $(SNPRINTFSOURCE) \ |
67 | Splay.cc \ | |
3dff197f | 68 | getfullhostname.c \ |
3dff197f | 69 | heap.c \ |
3dff197f | 70 | iso3307.c \ |
3dff197f | 71 | radix.c \ |
3dff197f | 72 | rfc1123.c \ |
3dff197f | 73 | stub_memaccount.c \ |
74 | util.c \ | |
0a1238e7 | 75 | xusleep.c |
c41d7e69 | 76 | |
4a3b98d7 | 77 | TESTS += tests/testRFC1738 |
f5691f9c | 78 | |
4a3b98d7 | 79 | check_PROGRAMS += tests/testRFC1738 |
7f861c77 | 80 | |
aa5639dc | 81 | tests_testRFC1738_SOURCES = \ |
82 | tests/testRFC1738.cc \ | |
83 | tests/testRFC1738.h | |
f5691f9c | 84 | |
7f861c77 | 85 | tests_testRFC1738_LDADD= \ |
25f98340 AJ |
86 | $(top_builddir)/lib/libmiscencoding.la \ |
87 | $(top_builddir)/lib/libmiscutil.la \ | |
d93bf055 | 88 | $(LIBCPPUNIT_LIBS) \ |
25f98340 | 89 | $(COMPAT_LIB) |
f5691f9c | 90 | |
7f861c77 | 91 | tests_testRFC1738_LDFLAGS = $(LIBADD_DL) |
e1f7507e | 92 | |
ee342e0b AJ |
93 | |
94 | ## Special Universal .h dependency test script | |
95 | ## aborts if error encountered | |
96 | testHeaders: $(top_srcdir)/include/*.h | |
a0fdc9bf | 97 | $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1 |
ee342e0b AJ |
98 | |
99 | TESTS += testHeaders | |
100 | CLEANFILES += testHeaders | |
101 | .PHONY: testHeaders |