]> git.ipfire.org Git - thirdparty/squid.git/blob - lib/Makefile.am
1723963b39735d6c3bca698df6786ecfe885ca37
[thirdparty/squid.git] / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #
3 # $Id$
4 #
5
6 if USE_LOADABLE_MODULES
7 DIST_SUBDIRS = libLtdl
8 SUBDIRS = libLtdl
9 else
10 DIST_SUBDIRS =
11 SUBDIRS =
12 endif
13
14 DIST_SUBDIRS += libTrie
15 SUBDIRS += libTrie
16 CLEANFILES =
17
18 install: all
19 install-strip: all
20
21 AM_CFLAGS = @SQUID_CFLAGS@
22 AM_CXXFLAGS = @SQUID_CXXFLAGS@
23
24 if ENABLE_XPROF_STATS
25 XPROF_STATS_SOURCE = Profiler.c
26 else
27 XPROF_STATS_SOURCE =
28 endif
29
30 if NEED_OWN_STRSEP
31 STRSEPSOURCE=strsep.c
32 else
33 STRSEPSOURCE=
34 endif
35 if NEED_OWN_STRTOLL
36 STRTOLLSOURCE=strtoll.c
37 else
38 STRTOLLSOURCE=
39 endif
40
41 if ENABLE_WIN32SPECIFIC
42 LIBSSPWIN32=libsspwin32.a
43 WIN32SRC = win32lib.c
44 else
45 LIBSSPWIN32=
46 WIN32SRC=
47 endif
48
49 EXTRA_LIBRARIES = \
50 libregex.a \
51 libsspwin32.a
52 noinst_LIBRARIES = \
53 libmiscutil.a \
54 libntlmauth.a \
55 $(LIBSSPWIN32) \
56 @LIBREGEX@
57 #
58 # dirent.c, encrypt.c and getopt.c are needed for native Windows support.
59 #
60 EXTRA_libmiscutil_a_SOURCES = \
61 dirent.c \
62 encrypt.c \
63 getopt.c \
64 md5.c \
65 Profiler.c \
66 strsep.c \
67 strtoll.c \
68 win32lib.c
69 libmiscutil_a_SOURCES = \
70 MemPool.cc \
71 base64.c \
72 charset.c \
73 getfullhostname.c \
74 hash.c \
75 heap.c \
76 html_quote.c \
77 iso3307.c \
78 md5.c \
79 radix.c \
80 rfc1035.c \
81 rfc1123.c \
82 rfc1738.c \
83 rfc2617.c \
84 rfc3596.c \
85 $(SNPRINTFSOURCE) \
86 Splay.cc \
87 strnstr.cc \
88 $(STRSEPSOURCE) \
89 $(STRTOLLSOURCE) \
90 stub_memaccount.c \
91 util.c \
92 uudecode.c \
93 assert.c \
94 xusleep.c \
95 $(XPROF_STATS_SOURCE) \
96 $(WIN32SRC)
97 libmiscutil_a_LIBADD = \
98 libTrie/src/Trie.o \
99 libTrie/src/TrieNode.o \
100 @LIBOBJS@
101 # $(top_srcdir)/include/version.h should be a dependency
102 libregex_a_SOURCES = \
103 GNUregex.c
104 libntlmauth_a_SOURCES = \
105 ntlmauth.c
106 libntlmauth_a_LIBADD = \
107 @LIBOBJS@
108 libsspwin32_a_SOURCES = \
109 sspwin32.c
110
111 INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include @SQUID_CPPUNIT_INC@
112 ##FIXME - set these in configure.in and reuse
113
114 check_PROGRAMS= \
115 testHeaders \
116 tests/testAll
117 TESTS=$(check_PROGRAMS)
118
119 ## Special Universal .h dependency test script
120 ## aborts if error encountered
121 testHeaders: $(top_srcdir)/include/*.h
122 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/include" || exit 1
123
124 ## No such file...
125 testHeaders.c:
126 touch testHeaders.c
127 CLEANFILES += testHeaders.c
128
129 tests_testAll_SOURCES= \
130 tests/testArray.h \
131 tests/testArray.cc \
132 tests/testRFC1035.h \
133 tests/testRFC1035.cc \
134 tests/testMain.cc \
135 $(XPROF_STATS_SOURCE) \
136 $(WIN32SRC) \
137 util.c assert.c
138
139 tests_testAll_LDADD= @SQUID_CPPUNIT_LA@ @SQUID_CPPUNIT_LIBS@
140
141 tests_testAll_LDFLAGS = $(LIBADD_DL)
142