]>
Commit | Line | Data |
---|---|---|
a2794549 | 1 | ## Process this file with automake to produce Makefile.in |
2 | # | |
262a0e14 | 3 | # $Id$ |
a2794549 | 4 | # |
5 | ||
ee342e0b AJ |
6 | include $(top_srcdir)/src/Common.am |
7 | ||
be364179 AJ |
8 | DIST_SUBDIRS = libTrie |
9 | EXTRA_DIST= | |
c41d7e69 | 10 | SUBDIRS = |
87420606 | 11 | |
c41d7e69 AR |
12 | if USE_ESI |
13 | SUBDIRS += libTrie | |
14 | endif | |
15 | ||
43ae1d95 | 16 | |
fa467ef0 | 17 | install: all |
18 | install-strip: all | |
19 | ||
b6012c1a | 20 | |
88bfe092 | 21 | if ENABLE_XPROF_STATS |
22 | XPROF_STATS_SOURCE = Profiler.c | |
23 | else | |
24 | XPROF_STATS_SOURCE = | |
25 | endif | |
26 | ||
6e785d85 | 27 | if ENABLE_WIN32SPECIFIC |
28 | LIBSSPWIN32=libsspwin32.a | |
62045984 | 29 | WIN32SRC = win32lib.c |
6e785d85 | 30 | else |
31 | LIBSSPWIN32= | |
62045984 | 32 | WIN32SRC= |
6e785d85 | 33 | endif |
34 | ||
3dff197f | 35 | EXTRA_LIBRARIES = \ |
6e785d85 | 36 | libsspwin32.a |
3dff197f | 37 | noinst_LIBRARIES = \ |
3dff197f | 38 | libmiscutil.a \ |
cc937513 AJ |
39 | $(LIBSSPWIN32) |
40 | ||
63b81f13 | 41 | # |
1dcf8e5d | 42 | # dirent.c, encrypt.c and getopt.c are needed for native Windows support. |
63b81f13 | 43 | # |
3dff197f | 44 | EXTRA_libmiscutil_a_SOURCES = \ |
63b81f13 GS |
45 | dirent.c \ |
46 | encrypt.c \ | |
47 | getopt.c \ | |
3dff197f | 48 | md5.c \ |
88bfe092 | 49 | Profiler.c \ |
62045984 | 50 | win32lib.c |
2ccf2eb2 | 51 | |
3dff197f | 52 | libmiscutil_a_SOURCES = \ |
b001e822 | 53 | MemPool.cc \ |
8cfaefed HN |
54 | MemPoolChunked.cc \ |
55 | MemPoolMalloc.cc \ | |
3dff197f | 56 | base64.c \ |
f741d2f6 | 57 | charset.c \ |
3dff197f | 58 | getfullhostname.c \ |
59 | hash.c \ | |
60 | heap.c \ | |
61 | html_quote.c \ | |
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 \ |
cee08cbc | 72 | strnstr.cc \ |
3dff197f | 73 | stub_memaccount.c \ |
74 | util.c \ | |
88bfe092 | 75 | uudecode.c \ |
425de4c8 | 76 | xstrto.cc \ |
9ece7c7c | 77 | xusleep.c \ |
62045984 | 78 | $(XPROF_STATS_SOURCE) \ |
79 | $(WIN32SRC) | |
c41d7e69 | 80 | |
a2794549 | 81 | # $(top_srcdir)/include/version.h should be a dependency |
6e785d85 | 82 | libsspwin32_a_SOURCES = \ |
0a13cc9d | 83 | base64.c \ |
6e785d85 | 84 | sspwin32.c |
f5691f9c | 85 | |
ee342e0b | 86 | TESTS += tests/testAll |
f5691f9c | 87 | |
ee342e0b | 88 | check_PROGRAMS += tests/testAll |
0e42cf18 | 89 | |
41d93087 | 90 | tests_testAll_SOURCES= \ |
91 | tests/testArray.h \ | |
92 | tests/testArray.cc \ | |
cc192b50 | 93 | tests/testRFC1035.h \ |
94 | tests/testRFC1035.cc \ | |
1fa9b1a7 AJ |
95 | tests/testRFC1738.h \ |
96 | tests/testRFC1738.cc \ | |
41d93087 | 97 | tests/testMain.cc \ |
af3004ff | 98 | $(XPROF_STATS_SOURCE) \ |
62045984 | 99 | $(WIN32SRC) \ |
ea9d149b | 100 | util.c |
f5691f9c | 101 | |
3ae8895c | 102 | tests_testAll_LDADD= $(SQUID_CPPUNIT_LA) $(SQUID_CPPUNIT_LIBS) |
f5691f9c | 103 | |
104 | tests_testAll_LDFLAGS = $(LIBADD_DL) | |
e1f7507e | 105 | |
ee342e0b AJ |
106 | |
107 | ## Special Universal .h dependency test script | |
108 | ## aborts if error encountered | |
109 | testHeaders: $(top_srcdir)/include/*.h | |
a0fdc9bf | 110 | $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1 |
ee342e0b AJ |
111 | |
112 | TESTS += testHeaders | |
113 | CLEANFILES += testHeaders | |
114 | .PHONY: testHeaders |