]> git.ipfire.org Git - thirdparty/squid.git/blob - lib/Makefile.am
Merged from trunk.
[thirdparty/squid.git] / lib / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 #
3 # $Id$
4 #
5
6 SUBDIRS =
7
8 if USE_LOADABLE_MODULES
9 SUBDIRS += libLtdl
10 endif
11
12 if USE_ESI
13 SUBDIRS += libTrie
14 endif
15
16 CLEANFILES =
17
18
19 install: all
20 install-strip: all
21
22 AM_CFLAGS = @SQUID_CFLAGS@
23 AM_CXXFLAGS = @SQUID_CXXFLAGS@
24
25 if ENABLE_XPROF_STATS
26 XPROF_STATS_SOURCE = Profiler.c
27 else
28 XPROF_STATS_SOURCE =
29 endif
30
31 if NEED_OWN_STRSEP
32 STRSEPSOURCE=strsep.c
33 else
34 STRSEPSOURCE=
35 endif
36 if NEED_OWN_STRTOLL
37 STRTOLLSOURCE=strtoll.c
38 else
39 STRTOLLSOURCE=
40 endif
41
42 if ENABLE_WIN32SPECIFIC
43 LIBSSPWIN32=libsspwin32.a
44 WIN32SRC = win32lib.c
45 else
46 LIBSSPWIN32=
47 WIN32SRC=
48 endif
49
50 EXTRA_LIBRARIES = \
51 libsspwin32.a
52 noinst_LIBRARIES = \
53 libmiscutil.a \
54 libntlmauth.a \
55 $(LIBSSPWIN32)
56
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 xusleep.c \
94 $(XPROF_STATS_SOURCE) \
95 $(WIN32SRC)
96 libmiscutil_a_LIBADD = @LIBOBJS@
97
98 # $(top_srcdir)/include/version.h should be a dependency
99 libntlmauth_a_SOURCES = \
100 ntlmauth.c
101 libntlmauth_a_LIBADD = \
102 @LIBOBJS@
103 libsspwin32_a_SOURCES = \
104 sspwin32.c
105
106 INCLUDES = \
107 -I$(top_srcdir) \
108 -I$(top_builddir)/include \
109 -I$(top_srcdir)/include \
110 @SQUID_CPPUNIT_INC@
111 ##FIXME - set these in configure.in and reuse
112
113 check_PROGRAMS= \
114 testHeaders \
115 tests/testAll
116 TESTS=$(check_PROGRAMS)
117
118 ## Special Universal .h dependency test script
119 ## aborts if error encountered
120 testHeaders: $(top_srcdir)/include/*.h
121 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/include" || exit 1
122
123 ## No such file...
124 testHeaders.c:
125 touch testHeaders.c
126 CLEANFILES += testHeaders.c
127
128 tests_testAll_SOURCES= \
129 tests/testArray.h \
130 tests/testArray.cc \
131 tests/testRFC1035.h \
132 tests/testRFC1035.cc \
133 tests/testMain.cc \
134 $(XPROF_STATS_SOURCE) \
135 $(WIN32SRC) \
136 util.c
137
138 tests_testAll_LDADD= @SQUID_CPPUNIT_LA@ @SQUID_CPPUNIT_LIBS@
139
140 tests_testAll_LDFLAGS = $(LIBADD_DL)
141