]> git.ipfire.org Git - thirdparty/squid.git/blob - lib/Makefile.am
Moved snmplib to lib/
[thirdparty/squid.git] / lib / Makefile.am
1 include $(top_srcdir)/src/Common.am
2
3 DIST_SUBDIRS = ntlmauth profiler rfcnb smblib libTrie snmplib
4 SUBDIRS=$(makesnmplib)
5 EXTRA_DIST=
6
7 if USE_ESI
8 SUBDIRS += libTrie
9 endif
10 if ENABLE_XPROF_STATS
11 SUBDIRS += profiler
12 endif
13
14 install: all
15 install-strip: all
16
17 noinst_LTLIBRARIES = \
18 libmiscencoding.la \
19 libmisccontainers.la \
20 libmiscutil.la
21
22 #
23 # Some libraries are only available on Windows
24 # and others are unable to be built.
25 #
26 if ENABLE_WIN32SPECIFIC
27 noinst_LTLIBRARIES += libsspwin32.la
28 libsspwin32_la_SOURCES = sspwin32.cc
29 else
30 SUBDIRS += rfcnb smblib
31 EXTRA_DIST += sspwin32.cc
32 endif
33 if ENABLE_AUTH_NTLM
34 SUBDIRS += ntlmauth
35 endif
36
37 #
38 # dirent.c, encrypt.c and getopt.c are needed for native Windows support.
39 #
40 EXTRA_libmiscutil_la_SOURCES = \
41 dirent.c \
42 encrypt.c \
43 getopt.c
44
45 libmiscencoding_la_SOURCES = \
46 base64.c \
47 charset.c \
48 html_quote.c \
49 md5.c \
50 rfc1738.c \
51 rfc2617.c \
52 uudecode.c
53
54 libmisccontainers_la_SOURCES = \
55 hash.cc
56
57 libmiscutil_la_SOURCES = \
58 malloc_trace.cc \
59 MemPool.cc \
60 MemPoolChunked.cc \
61 MemPoolMalloc.cc \
62 getfullhostname.c \
63 heap.c \
64 iso3307.c \
65 radix.c \
66 rfc1035.c \
67 rfc1123.c \
68 rfc2671.c \
69 rfc3596.c \
70 $(SNPRINTFSOURCE) \
71 Splay.cc \
72 stub_memaccount.c \
73 util.c \
74 xusleep.c
75
76 TESTS += tests/testAll
77
78 check_PROGRAMS += tests/testAll
79
80 tests_testAll_SOURCES= \
81 tests/testRFC1035.h \
82 tests/testRFC1035.cc \
83 tests/testRFC1738.h \
84 tests/testRFC1738.cc \
85 tests/testMain.cc
86
87 tests_testAll_LDADD= \
88 $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS) \
89 $(top_builddir)/lib/libmiscencoding.la \
90 $(top_builddir)/lib/libmiscutil.la \
91 $(COMPAT_LIB)
92
93 tests_testAll_LDFLAGS = $(LIBADD_DL)
94
95
96 ## Special Universal .h dependency test script
97 ## aborts if error encountered
98 testHeaders: $(top_srcdir)/include/*.h
99 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
100
101 TESTS += testHeaders
102 CLEANFILES += testHeaders
103 .PHONY: testHeaders