]> git.ipfire.org Git - thirdparty/squid.git/blob - lib/Makefile.am
Merge from trunk rev.13907
[thirdparty/squid.git] / lib / Makefile.am
1 ## Copyright (C) 1996-2015 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 AUTOMAKE_OPTIONS = subdir-objects
11
12 DIST_SUBDIRS = ntlmauth profiler rfcnb smblib libTrie snmplib
13 SUBDIRS=
14 EXTRA_DIST=
15
16 if USE_ESI
17 SUBDIRS += libTrie
18 endif
19 if ENABLE_SNMP
20 SUBDIRS += snmplib
21 endif
22 if ENABLE_XPROF_STATS
23 SUBDIRS += profiler
24 endif
25
26 install: all
27 install-strip: all
28
29 noinst_LTLIBRARIES = \
30 libmiscencoding.la \
31 libmisccontainers.la \
32 libmiscutil.la
33
34 #
35 # Some libraries are only available on Windows
36 # and others are unable to be built.
37 #
38 if ENABLE_WIN32SPECIFIC
39 noinst_LTLIBRARIES += libsspwin32.la
40 libsspwin32_la_SOURCES = sspwin32.cc
41 else
42 SUBDIRS += rfcnb smblib
43 EXTRA_DIST += sspwin32.cc
44 endif
45 if ENABLE_AUTH_NTLM
46 SUBDIRS += ntlmauth
47 endif
48
49 #
50 # dirent.c, encrypt.c and getopt.c are needed for native Windows support.
51 #
52 EXTRA_libmiscutil_la_SOURCES = \
53 dirent.c \
54 encrypt.c \
55 getopt.c
56
57 libmiscencoding_la_SOURCES = \
58 base64.c \
59 charset.c \
60 html_quote.c \
61 md5.c \
62 rfc1738.c \
63 rfc2617.c \
64 uudecode.c
65
66 libmisccontainers_la_SOURCES = \
67 hash.cc
68
69 libmiscutil_la_SOURCES = \
70 getfullhostname.c \
71 heap.c \
72 iso3307.c \
73 radix.c \
74 rfc1123.c \
75 $(SNPRINTFSOURCE) \
76 Splay.cc \
77 stub_memaccount.c \
78 util.c \
79 xusleep.c
80
81 TESTS += tests/testRFC1738
82
83 check_PROGRAMS += tests/testRFC1738
84
85 tests_testRFC1738_SOURCES= \
86 tests/testRFC1738.h \
87 tests/testRFC1738.cc
88
89 tests_testRFC1738_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_testRFC1738_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