]> git.ipfire.org Git - thirdparty/squid.git/blob - lib/Makefile.am
Merge from trunk
[thirdparty/squid.git] / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #
3 # $Id$
4 #
5
6 include $(top_srcdir)/src/Common.am
7
8 SUBDIRS =
9
10 if USE_ESI
11 SUBDIRS += libTrie
12 endif
13
14
15 install: all
16 install-strip: all
17
18
19 if ENABLE_XPROF_STATS
20 XPROF_STATS_SOURCE = Profiler.c
21 else
22 XPROF_STATS_SOURCE =
23 endif
24
25 if ENABLE_WIN32SPECIFIC
26 LIBSSPWIN32=libsspwin32.a
27 WIN32SRC = win32lib.c
28 else
29 LIBSSPWIN32=
30 WIN32SRC=
31 endif
32
33 EXTRA_LIBRARIES = \
34 libsspwin32.a
35 noinst_LIBRARIES = \
36 libmiscutil.a \
37 libntlmauth.a \
38 $(LIBSSPWIN32)
39
40 #
41 # dirent.c, encrypt.c and getopt.c are needed for native Windows support.
42 #
43 EXTRA_libmiscutil_a_SOURCES = \
44 dirent.c \
45 encrypt.c \
46 getopt.c \
47 md5.c \
48 Profiler.c \
49 win32lib.c
50 libmiscutil_a_SOURCES = \
51 MemPool.cc \
52 base64.c \
53 charset.c \
54 getfullhostname.c \
55 hash.c \
56 heap.c \
57 html_quote.c \
58 iso3307.c \
59 md5.c \
60 radix.c \
61 rfc1035.c \
62 rfc1123.c \
63 rfc1738.c \
64 rfc2617.c \
65 rfc3596.c \
66 $(SNPRINTFSOURCE) \
67 Splay.cc \
68 strnstr.cc \
69 stub_memaccount.c \
70 util.c \
71 uudecode.c \
72 xusleep.c \
73 $(XPROF_STATS_SOURCE) \
74 $(WIN32SRC)
75 libmiscutil_a_LIBADD = $(LIBOBJS)
76
77 # $(top_srcdir)/include/version.h should be a dependency
78 libntlmauth_a_SOURCES = \
79 ntlmauth.c
80 libntlmauth_a_LIBADD = \
81 $(LIBOBJS)
82 libsspwin32_a_SOURCES = \
83 base64.c \
84 sspwin32.c
85 libsspwin32_a_LIBADD = \
86 $(LIBOBJS)
87
88
89 TESTS += tests/testAll
90
91 check_PROGRAMS += tests/testAll
92
93 tests_testAll_SOURCES= \
94 tests/testArray.h \
95 tests/testArray.cc \
96 tests/testRFC1035.h \
97 tests/testRFC1035.cc \
98 tests/testRFC1738.h \
99 tests/testRFC1738.cc \
100 tests/testMain.cc \
101 $(XPROF_STATS_SOURCE) \
102 $(WIN32SRC) \
103 util.c
104
105 tests_testAll_LDADD= $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS)
106
107 tests_testAll_LDFLAGS = $(LIBADD_DL)
108
109
110 ## Special Universal .h dependency test script
111 ## aborts if error encountered
112 testHeaders: $(top_srcdir)/include/*.h
113 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/include" || exit 1
114
115 TESTS += testHeaders
116 CLEANFILES += testHeaders
117 .PHONY: testHeaders