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