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