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