]> git.ipfire.org Git - thirdparty/squid.git/blame - lib/Makefile.am
3.1 Cleanups pt 1: Add testheaders.sh script
[thirdparty/squid.git] / lib / Makefile.am
CommitLineData
a2794549 1## Process this file with automake to produce Makefile.in
2#
cc192b50 3# $Id: Makefile.am,v 1.33 2007/12/14 23:11:44 amosjeffries Exp $
a2794549 4#
5
63d03edb 6DIST_SUBDIRS = libTrie
7SUBDIRS= libTrie
43ae1d95 8
fa467ef0 9install: all
10install-strip: all
11
b6012c1a 12AM_CFLAGS = @SQUID_CFLAGS@
13AM_CXXFLAGS = @SQUID_CXXFLAGS@
14
88bfe092 15if ENABLE_XPROF_STATS
16XPROF_STATS_SOURCE = Profiler.c
17else
18XPROF_STATS_SOURCE =
19endif
20
1cd53467 21if NEED_OWN_STRSEP
22STRSEPSOURCE=strsep.c
23else
24STRSEPSOURCE=
25endif
2733d426 26if NEED_OWN_STRTOLL
27STRTOLLSOURCE=strtoll.c
28else
29STRTOLLSOURCE=
30endif
c3d0c8b5 31
6e785d85 32if ENABLE_WIN32SPECIFIC
33LIBSSPWIN32=libsspwin32.a
62045984 34WIN32SRC = win32lib.c
6e785d85 35else
36LIBSSPWIN32=
62045984 37WIN32SRC=
6e785d85 38endif
39
3dff197f 40EXTRA_LIBRARIES = \
6e785d85 41 libregex.a \
42 libsspwin32.a
3dff197f 43noinst_LIBRARIES = \
3dff197f 44 libmiscutil.a \
45 libntlmauth.a \
6e785d85 46 $(LIBSSPWIN32) \
3dff197f 47 @LIBREGEX@
48EXTRA_libmiscutil_a_SOURCES = \
49 md5.c \
88bfe092 50 Profiler.c \
62045984 51 strsep.c \
2733d426 52 strtoll.c \
62045984 53 win32lib.c
3dff197f 54libmiscutil_a_SOURCES = \
b001e822 55 MemPool.cc \
3dff197f 56 base64.c \
57 getfullhostname.c \
58 hash.c \
59 heap.c \
60 html_quote.c \
41d93087 61 IPAddress.cc \
3dff197f 62 iso3307.c \
3d4022fa 63 md5.c \
3dff197f 64 radix.c \
65 rfc1035.c \
66 rfc1123.c \
67 rfc1738.c \
68 rfc2617.c \
0710cbcd 69 rfc3596.c \
3dff197f 70 $(SNPRINTFSOURCE) \
b67e2c8c 71 Splay.cc \
1cd53467 72 $(STRSEPSOURCE) \
2733d426 73 $(STRTOLLSOURCE) \
3dff197f 74 stub_memaccount.c \
75 util.c \
88bfe092 76 uudecode.c \
6a4a7312 77 assert.c \
9ece7c7c 78 xusleep.c \
62045984 79 $(XPROF_STATS_SOURCE) \
80 $(WIN32SRC)
3dff197f 81libmiscutil_a_LIBADD = \
43ae1d95 82 libTrie/src/Trie.o \
83 libTrie/src/TrieNode.o \
3dff197f 84 @LIBOBJS@
a2794549 85# $(top_srcdir)/include/version.h should be a dependency
3dff197f 86libregex_a_SOURCES = \
87 GNUregex.c
3dff197f 88libntlmauth_a_SOURCES = \
89 ntlmauth.c
90libntlmauth_a_LIBADD = \
91 @LIBOBJS@
6e785d85 92libsspwin32_a_SOURCES = \
93 sspwin32.c
a2794549 94
f5691f9c 95INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include @SQUID_CPPUNIT_INC@
96##FIXME - set these in configure.in and reuse
97
98TESTS=$(check_PROGRAMS)
e1f7507e
AJ
99check_PROGRAMS= \
100 testHeaders \
101 tests/testAll
102
103## Special Universal .h dependency test script
104## aborts if error encountered
105testHeaders: $(top_srcdir)/include/*.h
106 $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" "$(top_srcdir)/include" || exit 1
f5691f9c 107
41d93087 108tests_testAll_SOURCES= \
109 tests/testArray.h \
110 tests/testArray.cc \
111 tests/testIPAddress.h \
112 tests/testIPAddress.cc \
cc192b50 113 IPAddress.cc \
114 tests/testRFC1035.h \
115 tests/testRFC1035.cc \
41d93087 116 tests/testMain.cc \
af3004ff 117 $(XPROF_STATS_SOURCE) \
62045984 118 $(WIN32SRC) \
6ea7937b 119 util.c assert.c
f5691f9c 120
8b5e106b 121tests_testAll_LDADD= @SQUID_CPPUNIT_LA@ @SQUID_CPPUNIT_LIBS@
f5691f9c 122
123tests_testAll_LDFLAGS = $(LIBADD_DL)
e1f7507e 124