]>
Commit | Line | Data |
---|---|---|
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 | 6 | DIST_SUBDIRS = libTrie |
7 | SUBDIRS= libTrie | |
43ae1d95 | 8 | |
fa467ef0 | 9 | install: all |
10 | install-strip: all | |
11 | ||
b6012c1a | 12 | AM_CFLAGS = @SQUID_CFLAGS@ |
13 | AM_CXXFLAGS = @SQUID_CXXFLAGS@ | |
14 | ||
88bfe092 | 15 | if ENABLE_XPROF_STATS |
16 | XPROF_STATS_SOURCE = Profiler.c | |
17 | else | |
18 | XPROF_STATS_SOURCE = | |
19 | endif | |
20 | ||
1cd53467 | 21 | if NEED_OWN_STRSEP |
22 | STRSEPSOURCE=strsep.c | |
23 | else | |
24 | STRSEPSOURCE= | |
25 | endif | |
2733d426 | 26 | if NEED_OWN_STRTOLL |
27 | STRTOLLSOURCE=strtoll.c | |
28 | else | |
29 | STRTOLLSOURCE= | |
30 | endif | |
c3d0c8b5 | 31 | |
6e785d85 | 32 | if ENABLE_WIN32SPECIFIC |
33 | LIBSSPWIN32=libsspwin32.a | |
62045984 | 34 | WIN32SRC = win32lib.c |
6e785d85 | 35 | else |
36 | LIBSSPWIN32= | |
62045984 | 37 | WIN32SRC= |
6e785d85 | 38 | endif |
39 | ||
3dff197f | 40 | EXTRA_LIBRARIES = \ |
6e785d85 | 41 | libregex.a \ |
42 | libsspwin32.a | |
3dff197f | 43 | noinst_LIBRARIES = \ |
3dff197f | 44 | libmiscutil.a \ |
45 | libntlmauth.a \ | |
6e785d85 | 46 | $(LIBSSPWIN32) \ |
3dff197f | 47 | @LIBREGEX@ |
48 | EXTRA_libmiscutil_a_SOURCES = \ | |
49 | md5.c \ | |
88bfe092 | 50 | Profiler.c \ |
62045984 | 51 | strsep.c \ |
2733d426 | 52 | strtoll.c \ |
62045984 | 53 | win32lib.c |
3dff197f | 54 | libmiscutil_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 | 81 | libmiscutil_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 | 86 | libregex_a_SOURCES = \ |
87 | GNUregex.c | |
3dff197f | 88 | libntlmauth_a_SOURCES = \ |
89 | ntlmauth.c | |
90 | libntlmauth_a_LIBADD = \ | |
91 | @LIBOBJS@ | |
6e785d85 | 92 | libsspwin32_a_SOURCES = \ |
93 | sspwin32.c | |
a2794549 | 94 | |
f5691f9c | 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) | |
e1f7507e AJ |
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 | |
f5691f9c | 107 | |
41d93087 | 108 | tests_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 | 121 | tests_testAll_LDADD= @SQUID_CPPUNIT_LA@ @SQUID_CPPUNIT_LIBS@ |
f5691f9c | 122 | |
123 | tests_testAll_LDFLAGS = $(LIBADD_DL) | |
e1f7507e | 124 |