]> git.ipfire.org Git - thirdparty/squid.git/blame - src/Makefile.am
Fix signed/unsigned comparison warnings in MmappedFile on some systems.
[thirdparty/squid.git] / src / Makefile.am
CommitLineData
a2794549 1#
2# Makefile for the Squid Object Cache server
3#
a2794549 4# Uncomment and customize the following to suit your needs:
5#
6
189f1e66 7include $(top_srcdir)/src/Common.am
a46d2c0e 8
59b2d47f 9AUTOMAKE_OPTIONS = subdir-objects
a2794549 10if USE_DNSSERVER
e6ccf245 11DNSSOURCE = dns.cc
852a0ce1 12DNSSERVER = dnsserver
13else
14DNSSOURCE = dns_internal.cc
15DNSSERVER =
16endif
17
3ff65596
AR
18DNSSOURCE += \
19 DnsLookupDetails.h \
20 DnsLookupDetails.cc
21
43d1bbe4
FC
22SBUF_SOURCE= \
23 base/InstanceId.h \
24 MemBlob.h \
25 MemBlob.cc
26
57afc994
AR
27LOADABLE_MODULES_SOURCES = \
28 LoadableModule.h \
29 LoadableModule.cc \
30 LoadableModules.h \
31 LoadableModules.cc
32
38e16f92
AJ
33SUBDIRS = base anyp comm eui acl format fs repl
34DIST_SUBDIRS = base anyp comm eui acl format fs repl
2f1431ea
AJ
35
36if ENABLE_AUTH
37SUBDIRS += auth
38AUTH_LIBS= auth/libauth.la
39AUTH_ACL_LIBS= auth/libacls.la
3afd4f2d 40check_PROGRAMS+= tests/testACLMaxUserIP
2f1431ea
AJ
41endif
42DIST_SUBDIRS += auth
43
44SUBDIRS += ip icmp ident log ipc mgr
45DIST_SUBDIRS += ip icmp ident log ipc mgr
20f4520e 46
95d2589c
CT
47if ENABLE_SSL
48SUBDIRS += ssl
49SSL_LIBS = \
1b76e6c1
AJ
50 ssl/libsslsquid.la \
51 ssl/libsslutil.la
95d2589c
CT
52else
53SSL_LOCAL_LIBS =
54endif
2f1431ea
AJ
55DIST_SUBDIRS += ssl
56
d6e3ad20
CT
57SNMP_ALL_SOURCE = \
58 snmp_core.h \
59 snmp_core.cc \
60 snmp_agent.cc
f738d783 61if ENABLE_SNMP
d6e3ad20
CT
62SNMP_SOURCE = $(SNMP_ALL_SOURCE)
63SUBDIRS += snmp
65f92818 64SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
d6e3ad20
CT
65else
66SNMP_SOURCE =
51ea0904 67endif
a7e1b6c9 68DIST_SUBDIRS += snmp
95d2589c 69
51a7ff6e
AR
70if USE_ADAPTATION
71SUBDIRS += adaptation
72endif
2f1431ea 73DIST_SUBDIRS += adaptation
51a7ff6e 74
f99c2cfe
AR
75if USE_ESI
76SUBDIRS += esi
88bfe098 77ESI_LOCAL_LIBS = \
c41d7e69
AR
78 esi/libesi.la \
79 $(top_builddir)/lib/libTrie/src/libTrie.a
88bfe098 80ESI_LIBS = $(ESI_LOCAL_LIBS) \
3ae8895c
A
81 $(XMLLIB) \
82 $(EXPATLIB)
f99c2cfe
AR
83else
84ESI_LIBS =
85endif
2f1431ea 86DIST_SUBDIRS += esi
f99c2cfe 87
852a0ce1 88DELAY_POOL_ALL_SOURCE = \
89 CommonPool.h \
90 CompositePoolNode.h \
91 delay_pools.cc \
92 DelayId.cc \
93 DelayId.h \
94 DelayIdComposite.h \
95 DelayBucket.cc \
96 DelayBucket.h \
97 DelayConfig.cc \
98 DelayConfig.h \
99 DelayPool.cc \
100 DelayPool.h \
101 DelayPools.h \
102 DelaySpec.cc \
103 DelaySpec.h \
104 DelayTagged.cc \
105 DelayTagged.h \
106 DelayUser.cc \
107 DelayUser.h \
108 DelayVector.cc \
109 DelayVector.h \
110 NullDelayId.cc \
b4cd430a
CT
111 NullDelayId.h \
112 ClientDelayConfig.cc \
113 ClientDelayConfig.h
114
9a0a18de 115if ENABLE_DELAY_POOLS
852a0ce1 116DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
117else
118DELAY_POOL_SOURCE =
119endif
120
852a0ce1 121if ENABLE_XPROF_STATS
122XPROF_STATS_SOURCE = ProfStats.cc
123else
124XPROF_STATS_SOURCE =
125endif
126
127if ENABLE_HTCP
128HTCPSOURCE = htcp.cc htcp.h
129endif
130
131if MAKE_LEAKFINDER
ba126bee 132LEAKFINDERSOURCE = LeakFinder.cc
852a0ce1 133else
134LEAKFINDERSOURCE =
135endif
136
137if ENABLE_UNLINKD
138UNLINKDSOURCE = unlinkd.cc
139UNLINKD = unlinkd
140else
141UNLINKDSOURCE =
142UNLINKD =
143endif
144
9c8434f6 145WIN32_ALL_SOURCE = \
146 win32.cc \
147 WinSvc.cc
852a0ce1 148if ENABLE_WIN32SPECIFIC
9c8434f6 149WIN32_SOURCE = win32.cc
150WINSVC_SOURCE = WinSvc.cc
852a0ce1 151else
9c8434f6 152WIN32_SOURCE =
153WINSVC_SOURCE =
852a0ce1 154endif
155
b5d712b5 156if USE_IPC_WIN32
157IPC_SOURCE = ipc_win32.cc
158else
159IPC_SOURCE = ipc.cc
160endif
161
abb2a3d9 162AIO_WIN32_ALL_SOURCES = \
163 DiskIO/AIO/aio_win32.cc \
164 DiskIO/AIO/aio_win32.h
165if USE_AIO_WIN32
166AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
167else
168AIO_WIN32_SOURCES =
169endif
170
595c7973 171if USE_AIOPS_WIN32
172AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc
173else
174AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc
175endif
176
e2851fe7 177EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
254912f3 178 libMmapped.a libIpcIo.a
3ae8895c 179noinst_LIBRARIES = $(DISK_LIBS)
2d2b0bb7 180noinst_LTLIBRARIES = libsquid.la
b9ae18aa 181
852a0ce1 182EXTRA_PROGRAMS = \
b9ae18aa 183 DiskIO/DiskDaemon/diskd \
852a0ce1 184 unlinkd \
852a0ce1 185 dnsserver \
186 recv-announce \
082a5e7a 187 tests/testUfs \
188 tests/testCoss \
e2851fe7 189 tests/testRock \
2d94e2d6
HN
190 tests/testNull \
191 ufsdump
852a0ce1 192
596d3ba7 193## cfgen is used when building squid
194## ufsdump is a debug utility, it is possibly useful for end users with cache
195## corruption, but at this point we do not install it.
852a0ce1 196noinst_PROGRAMS = \
2d94e2d6 197 cf_gen
852a0ce1 198
199sbin_PROGRAMS = \
200 squid
201
94ab55b0 202bin_PROGRAMS =
852a0ce1 203
204
205libexec_PROGRAMS = \
852a0ce1 206 $(DNSSERVER) \
3ae8895c 207 $(DISK_PROGRAMS) \
94ab55b0 208 $(UNLINKD)
852a0ce1 209
7d6fa4d4 210cf_gen_SOURCES = cf_gen.cc
cca8ba0d 211nodist_cf_gen_HEADER = cf_gen_defines.cci
9fb4efad 212cf_gen_LDADD= \
f8b57b6c 213 $(COMPAT_LIB) \
3ae8895c
A
214 $(EPOLL_LIBS) \
215 $(MINGW_LIBS) \
216 $(XTRA_LIBS)
cca8ba0d 217cf_gen.$(OBJEXT): cf_gen_defines.cci
852a0ce1 218
cca8ba0d 219## cf_gen.cc needs src/cf_gen_defines.cci
189f1e66
AJ
220INCLUDES += -I$(top_builddir)/src
221
2d46f579 222
f07e9e1f 223ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
2d46f579 224
c8f4eac4 225DISKIO_SOURCE = \
226 DiskIO/DiskIOModule.cc \
227 DiskIO/ReadRequest.cc \
228 DiskIO/ReadRequest.h \
229 DiskIO/WriteRequest.cc \
230 DiskIO/WriteRequest.h \
231 DiskIO/DiskFile.h \
232 DiskIO/DiskIOStrategy.h \
233 DiskIO/IORequestor.h \
234 DiskIO/DiskIOModule.h \
95329c22
HN
235 DiskIO/ReadRequest.h
236
237DISKIO_GEN_SOURCE = \
09c5ae5a
AJ
238 DiskIO/DiskIOModules_gen.cc
239
240DiskIO/DiskIOModules_gen.cc: Makefile
241 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
242
c8f4eac4 243
f24583c1 244# common library for all the binaries and tests. This is kindof a catch all
245# and smaller libraries split from this are encouraged. Using lt convenience
246# libraries, dependencies should not be a problem either.
247libsquid_la_SOURCES = \
248 comm.cc \
249 comm.h \
ec41b64c 250 comm_err_t.h \
b0469965 251 CommCalls.cc \
252 CommCalls.h \
877ce944
AR
253 DescriptorSet.cc \
254 DescriptorSet.h \
3d93a84d 255 SquidConfig.cc
f24583c1 256
852a0ce1 257squid_SOURCES = \
2d46f579 258 $(ACL_REGISTRATION_SOURCES) \
450e0c10 259 AccessLogEntry.h \
8ff3fa2e 260 AsyncEngine.cc \
261 AsyncEngine.h \
852a0ce1 262 cache_cf.cc \
1b26be8f 263 ProtoPort.cc \
264 ProtoPort.h \
852a0ce1 265 CacheDigest.cc \
266 cache_manager.cc \
62ee09ca 267 CacheManager.h \
852a0ce1 268 carp.cc \
269 cbdata.cc \
aa839030 270 cbdata.h \
81c07a23 271 ChunkedCodingParser.cc \
272 ChunkedCodingParser.h \
852a0ce1 273 client_db.cc \
274 client_side.cc \
275 client_side.h \
276 client_side_reply.cc \
277 client_side_reply.h \
278 client_side_request.cc \
279 client_side_request.h \
281422f8 280 ClientInfo.h \
5f8252d2 281 BodyPipe.cc \
282 BodyPipe.h \
281422f8 283 ClientInfo.h \
cd397896 284 ClientRequestContext.h \
852a0ce1 285 clientStream.cc \
286 clientStream.h \
663c0a38 287 CommIO.h \
a553a5a3 288 CompletionDispatcher.cc \
289 CompletionDispatcher.h \
852a0ce1 290 CommRead.h \
b9ae18aa 291 ConfigOption.cc \
d295d770 292 ConfigParser.cc \
852a0ce1 293 ConfigParser.h \
96c2bb61
AR
294 CpuAffinity.cc \
295 CpuAffinity.h \
296 CpuAffinityMap.cc \
297 CpuAffinityMap.h \
298 CpuAffinitySet.cc \
299 CpuAffinitySet.h \
852a0ce1 300 debug.cc \
301 Debug.h \
302 defines.h \
303 $(DELAY_POOL_SOURCE) \
304 disk.cc \
c8f4eac4 305 $(DISKIO_SOURCE) \
25b6a907 306 dlink.h \
e1f7507e 307 dlink.cc \
852a0ce1 308 $(DNSSOURCE) \
309 enums.h \
4b981814 310 err_type.h \
f3ff3818 311 err_detail_type.h \
852a0ce1 312 errorpage.cc \
3ad63615 313 errorpage.h \
852a0ce1 314 ETag.cc \
81a94152 315 ETag.h \
852a0ce1 316 event.cc \
a553a5a3 317 event.h \
318 EventLoop.h \
319 EventLoop.cc \
852a0ce1 320 external_acl.cc \
321 ExternalACL.h \
322 ExternalACLEntry.cc \
323 ExternalACLEntry.h \
8277060a
CT
324 FadingCounter.h \
325 FadingCounter.cc \
852a0ce1 326 fd.cc \
327 fde.cc \
328 fde.h \
329 filemap.cc \
330 forward.cc \
8bd61868 331 forward.h \
852a0ce1 332 fqdncache.cc \
333 ftp.cc \
334 Generic.h \
335 globals.h \
336 gopher.cc \
337 helper.cc \
338 helper.h \
48d54e4d
AJ
339 HelperChildConfig.h \
340 HelperChildConfig.cc \
bbaf2685 341 hier_code.h \
b24880fe 342 HierarchyLogEntry.h \
852a0ce1 343 $(HTCPSOURCE) \
344 http.cc \
345 http.h \
6feb0e7c 346 HttpStatusCode.h \
852a0ce1 347 HttpStatusLine.cc \
450e0c10 348 HttpStatusLine.h \
852a0ce1 349 HttpHdrCc.cc \
350 HttpHdrRange.cc \
351 HttpHdrSc.cc \
25b6a907 352 HttpHdrSc.h \
852a0ce1 353 HttpHdrScTarget.cc \
25b6a907 354 HttpHdrScTarget.h \
852a0ce1 355 HttpHdrContRange.cc \
356 HttpHdrContRange.h \
357 HttpHeader.cc \
358 HttpHeader.h \
25b6a907 359 HttpHeaderMask.h \
852a0ce1 360 HttpHeaderRange.h \
361 HttpHeaderTools.cc \
362 HttpBody.cc \
1288ea72 363 HttpControlMsg.h \
852a0ce1 364 HttpMsg.cc \
8596962e 365 HttpMsg.h \
4c14658e
AJ
366 HttpParser.cc \
367 HttpParser.h \
852a0ce1 368 HttpReply.cc \
369 HttpReply.h \
370 HttpRequest.cc \
371 HttpRequest.h \
985c86bc 372 HttpRequestMethod.cc \
373 HttpRequestMethod.h \
450e0c10 374 HttpVersion.h \
852a0ce1 375 ICP.h \
4b981814 376 icp_opcode.h \
852a0ce1 377 icp_v2.cc \
378 icp_v3.cc \
852a0ce1 379 int.cc \
380 internal.cc \
b5d712b5 381 $(IPC_SOURCE) \
852a0ce1 382 ipcache.cc \
714e68b7 383 ipcache.h \
852a0ce1 384 $(LEAKFINDERSOURCE) \
c8f4eac4 385 list.cc \
4b981814 386 lookup_t.h \
852a0ce1 387 main.cc \
388 mem.cc \
389 mem_node.cc \
390 mem_node.h \
391 Mem.h \
392 MemBuf.cc \
393 MemObject.cc \
394 MemObject.h \
395 mime.cc \
0f9db2d6 396 mime_header.cc \
852a0ce1 397 multicast.cc \
398 neighbors.cc \
852a0ce1 399 Packer.cc \
25b6a907 400 Packer.h \
c8f4eac4 401 Parsing.cc \
402 Parsing.h \
852a0ce1 403 $(XPROF_STATS_SOURCE) \
404 pconn.cc \
2d3c24dc 405 pconn.h \
37c84c0b 406 PeerDigest.h \
852a0ce1 407 peer_digest.cc \
9ca29d23 408 peer_proxy_negotiate_auth.cc \
852a0ce1 409 peer_select.cc \
f4a21650
HN
410 peer_sourcehash.cc \
411 peer_userhash.cc \
b24880fe 412 PeerSelectState.h \
413 PingData.h \
852a0ce1 414 protos.h \
415 redirect.cc \
852a0ce1 416 refresh.cc \
aa839030 417 RemovalPolicy.cc \
418 RemovalPolicy.h \
852a0ce1 419 send-announce.cc \
43d1bbe4 420 $(SBUF_SOURCE) \
2cdb6869 421 $(SNMP_SOURCE) \
852a0ce1 422 squid.h \
a98bcbee
AJ
423 SquidMath.h \
424 SquidMath.cc \
852a0ce1 425 SquidNew.cc \
852a0ce1 426 stat.cc \
427 StatHist.cc \
30abd221 428 String.cc \
852a0ce1 429 stmem.cc \
430 stmem.h \
431 store.cc \
432 Store.h \
59b2d47f 433 StoreFileSystem.cc \
434 StoreFileSystem.h \
c8f4eac4 435 StoreHashIndex.h \
852a0ce1 436 store_io.cc \
437 StoreIOBuffer.h \
438 StoreIOState.cc \
439 StoreIOState.h \
440 store_client.cc \
441 StoreClient.h \
442 store_digest.cc \
443 store_dir.cc \
444 store_key_md5.cc \
445 store_log.cc \
446 store_rebuild.cc \
447 store_swapin.cc \
448 store_swapmeta.cc \
449 store_swapout.cc \
450 StoreMeta.cc \
451 StoreMeta.h \
452 StoreMetaMD5.cc \
453 StoreMetaMD5.h \
454 StoreMetaSTD.cc \
455 StoreMetaSTD.h \
47f6e231 456 StoreMetaSTDLFS.cc \
457 StoreMetaSTDLFS.h \
9e6e1d99 458 StoreMetaObjSize.h \
852a0ce1 459 StoreMetaUnpacker.cc \
460 StoreMetaUnpacker.h \
461 StoreMetaURL.cc \
462 StoreMetaURL.h \
463 StoreMetaVary.cc \
464 StoreMetaVary.h \
c8f4eac4 465 StoreSearch.h \
852a0ce1 466 StoreSwapLogData.cc \
467 StoreSwapLogData.h \
253caccb 468 Server.cc \
596d3ba7 469 Server.h \
852a0ce1 470 structs.h \
4b981814 471 swap_log_op.h \
68353d5a
DK
472 SwapDir.cc MemStore.cc \
473 SwapDir.h MemStore.h \
c21ad0f5 474 time.cc \
81a94152 475 TimeOrTag.h \
852a0ce1 476 tools.cc \
aa839030 477 tunnel.cc \
852a0ce1 478 typedefs.h \
852a0ce1 479 $(UNLINKDSOURCE) \
480 url.cc \
985c86bc 481 URL.h \
482 URLScheme.cc \
483 URLScheme.h \
852a0ce1 484 urn.cc \
852a0ce1 485 wccp.cc \
0b0cfcf2 486 wccp2.cc \
852a0ce1 487 whois.cc \
d295d770 488 wordlist.cc \
489 wordlist.h \
9c8434f6 490 $(WIN32_SOURCE) \
491 $(WINSVC_SOURCE)
852a0ce1 492
4b981814
AJ
493EXTRA_squid_SOURCES = \
494 $(AIO_WIN32_ALL_SOURCES) \
495 $(all_AUTHMODULES) \
496 ConfigOption.h \
497 $(DELAY_POOL_ALL_SOURCE) \
498 dns.cc \
499 dnsserver.cc \
500 dns_internal.cc \
501 DnsLookupDetails.cc \
502 DnsLookupDetails.h \
503 htcp.cc \
504 htcp.h \
505 ipc.cc \
506 ipc_win32.cc \
507 ProfStats.cc \
508 LeakFinder.cc \
509 LeakFinder.h \
510 $(SNMP_ALL_SOURCE) \
511 $(UNLINKDSOURCE) \
4b981814
AJ
512 $(WIN32_ALL_SOURCE) \
513 $(LOADABLE_MODULES_SOURCES) \
514 DiskIO/DiskThreads/aiops.cc \
515 DiskIO/DiskThreads/aiops_win32.cc
516
3ad63615 517noinst_HEADERS = \
852a0ce1 518 client_side_request.cci \
519 MemBuf.cci \
520 MemBuf.h \
521 Store.cci \
c21ad0f5 522 StoreEntryStream.h \
30abd221 523 String.cci \
1624365b 524 SquidString.h \
525 SquidTime.h
852a0ce1 526
4b981814 527BUILT_SOURCES = \
cca8ba0d
HN
528 cf_gen_defines.cci \
529 cf_parser.cci \
4b981814 530 err_type.cc \
64b66b76 531 err_detail_type.cc \
852a0ce1 532 globals.cc \
4b981814
AJ
533 hier_code.cc \
534 icp_opcode.cc \
535 lookup_t.cc \
536 repl_modules.cc \
537 swap_log_op.cc
538
539CLEANFILES += $(BUILT_SOURCES)
540
541nodist_squid_SOURCES = \
542 $(DISKIO_GEN_SOURCE) \
543 $(BUILT_SOURCES)
852a0ce1 544
545squid_LDADD = \
62a0ef44
AJ
546 $(AUTH_ACL_LIBS) \
547 ident/libident.la \
548 acl/libacls.la \
549 eui/libeui.la \
550 acl/libstate.la \
551 $(AUTH_LIBS) \
b2aa0934 552 $(DISK_LIBS) \
62a0ef44
AJ
553 acl/libapi.la \
554 base/libbase.la \
555 libsquid.la \
556 ip/libip.la \
557 fs/libfs.la \
558 ipc/libipc.la \
559 mgr/libmgr.la \
0c3d3f65 560 anyp/libanyp.la \
ec41b64c 561 comm/libcomm.la \
a98c2da5 562 eui/libeui.la \
71787d05 563 icmp/libicmp.la icmp/libicmp-core.la \
82b7abe3 564 log/liblog.la \
38e16f92 565 format/libformat.la \
3ae8895c
A
566 $(XTRA_OBJS) \
567 $(DISK_LINKOBJS) \
568 $(REPL_OBJS) \
3ae8895c
A
569 $(DISK_OS_LIBS) \
570 $(CRYPTLIB) \
571 $(REGEXLIB) \
65f92818 572 $(ADAPTATION_LIBS) \
88bfe098 573 $(ESI_LIBS) \
95d2589c 574 $(SSL_LIBS) \
65f92818 575 $(SNMP_LIBS) \
25f98340
AJ
576 $(top_builddir)/lib/libmisccontainers.la \
577 $(top_builddir)/lib/libmiscencoding.la \
578 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
579 $(SSLLIB) \
580 $(EPOLL_LIBS) \
581 $(MINGW_LIBS) \
582 $(KRB5LIBS) \
25f98340 583 $(COMPAT_LIB) \
3ae8895c 584 $(XTRA_LIBS)
25f98340 585squid_DEPENDENCIES = \
3ae8895c
A
586 $(DISK_LIBS) \
587 $(DISK_LINKOBJS) \
588 $(REPL_OBJS) \
65f92818 589 $(ADAPTATION_LIBS) \
88bfe098 590 $(ESI_LOCAL_LIBS) \
95d2589c 591 $(SSL_LIBS) \
62a0ef44
AJ
592 $(AUTH_ACL_LIBS) \
593 ident/libident.la \
594 acl/libacls.la \
595 eui/libeui.la \
596 acl/libstate.la \
597 $(AUTH_LIBS) \
598 acl/libapi.la \
599 base/libbase.la \
600 libsquid.la \
601 ip/libip.la \
602 fs/libfs.la \
38e16f92 603 format/libformat.la \
62a0ef44
AJ
604 ipc/libipc.la \
605 mgr/libmgr.la
c21ad0f5 606
3e7b6055 607if USE_LOADABLE_MODULES
57afc994 608squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
95954721 609squid_LDADD += -L$(top_builddir) $(LIBLTDL)
62059234
AJ
610squid_LDFLAGS = -export-dynamic -dlopen force
611## when static module linking is supported and enabled:
612## squid_LDFLAGS = -all-static -dlopen self
613##
614## LTDL headers require their local include path...
615INCLUDES += $(INCLTDL)
3e7b6055
AR
616endif
617
9ca29d23 618## Kerberos libraries require their include path...
3ae8895c 619INCLUDES += $(KRB5INCS)
9ca29d23 620
3e7b6055 621
25f98340 622unlinkd_SOURCES = unlinkd_daemon.cc
40d34a62
AJ
623unlinkd_LDADD = \
624 ipc/libipc.la \
625 ip/libip.la \
626 $(COMPAT_LIB) \
627 $(XTRA_LIBS)
628
25f98340
AJ
629dnsserver_SOURCES = dnsserver.cc SquidNew.cc tests/stub_debug.cc test_tools.cc time.cc
630recv_announce_SOURCES = recv-announce.cc
852a0ce1 631
a97576f3 632## What requires what..
633## many things want ACLChecklist.cc
634## ACLChecklist.cc wants AuthUserRequest.cc
635## ACLChecklist.cc wants AuthScheme.cc
636## ACLChecklist.cc wants ACLProxyAuth.cc directly
637## ACLProxyAuth.cc wants ACLUserData
638## ACLProxyAuth.cc wants ACLRegexData
f3f71ee9 639## cache_cf.cc wants $(AUTH_LIBS)
a97576f3 640## cache_cf.cc wants Swapdir
1b26be8f 641## cache_cf.cc wants ProtoPort
a97576f3 642## client_side wants client_db
643## client_db wants SNMP_SOURCE
644## snmp_core wants ACLStringData
645## SwapDir wants ConfigOption
9fb4efad
AJ
646## tools.cc wants ip/libip.la
647## client_side.cc wants ip/libip.la
281422f8 648## mem.cc wants ClientInfo.h
b61a58df
AJ
649## libbase.la wants cbdata.*
650## libbase.la wants MemBuf.*
48d54e4d 651## structs.h wants HelperChildConfig.* (stub it)
596d3ba7 652ufsdump_SOURCES = \
281422f8 653 ClientInfo.h \
b61a58df
AJ
654 cbdata.h \
655 cbdata.cc \
596d3ba7 656 debug.cc \
852a0ce1 657 int.cc \
c21ad0f5 658 mem.cc \
b61a58df
AJ
659 MemBuf.cc \
660 MemBuf.cci \
661 MemBuf.h \
82b7abe3 662 Parsing.h \
c21ad0f5 663 store_key_md5.cc \
852a0ce1 664 StoreMeta.cc \
852a0ce1 665 StoreMetaMD5.cc \
852a0ce1 666 StoreMetaSTD.cc \
47f6e231 667 StoreMetaSTDLFS.cc \
852a0ce1 668 StoreMetaUnpacker.cc \
852a0ce1 669 StoreMetaURL.cc \
852a0ce1 670 StoreMetaVary.cc \
30abd221 671 String.cc \
985f118d 672 SquidNew.cc \
c21ad0f5 673 time.cc \
674 ufsdump.cc \
e1f7507e
AJ
675 dlink.h \
676 dlink.cc \
48d54e4d
AJ
677 HelperChildConfig.h \
678 tests/stub_HelperChildConfig.cc \
985c86bc 679 HttpRequestMethod.cc \
aa839030 680 RemovalPolicy.cc \
852a0ce1 681 squid.h \
b61a58df
AJ
682 $(WIN32_SOURCE) \
683 tests/stub_fd.cc
852a0ce1 684ufsdump_LDADD = \
62a0ef44
AJ
685 $(AUTH_ACL_LIBS) \
686 ident/libident.la \
687 acl/libacls.la \
688 eui/libeui.la \
689 acl/libstate.la \
690 $(AUTH_LIBS) \
691 acl/libapi.la \
692 base/libbase.la \
693 libsquid.la \
694 ip/libip.la \
695 fs/libfs.la \
696 ipc/libipc.la \
697 mgr/libmgr.la \
3ae8895c
A
698 $(XTRA_OBJS) \
699 $(REPL_OBJS) \
700 $(CRYPTLIB) \
701 $(REGEXLIB) \
3ae8895c 702 $(SSLLIB) \
82b7abe3 703 $(COMPAT_LIB) \
3ae8895c
A
704 $(EPOLL_LIBS) \
705 $(MINGW_LIBS) \
706 $(XTRA_LIBS)
25f98340 707ufsdump_DEPENDENCIES = \
62a0ef44
AJ
708 $(AUTH_ACL_LIBS) \
709 ident/libident.la \
710 acl/libacls.la \
711 eui/libeui.la \
712 acl/libstate.la \
713 $(AUTH_LIBS) \
714 acl/libapi.la \
715 base/libbase.la \
716 libsquid.la \
717 ip/libip.la \
718 fs/libfs.la \
719 ipc/libipc.la \
720 mgr/libmgr.la \
3ae8895c
A
721 $(DISK_LIBS) \
722 $(DISK_LINKOBJS) \
723 $(REPL_OBJS)
aab300be 724
852a0ce1 725nodist_ufsdump_SOURCES = \
3ad63615 726 globals.cc
852a0ce1 727
852a0ce1 728sysconf_DATA = \
729 squid.conf.default \
1446a5fd 730 squid.conf.documented \
852a0ce1 731 mime.conf.default
732
733data_DATA = \
734 mib.txt
735
62a0ef44
AJ
736LDADD = \
737 $(AUTH_ACL_LIBS) \
738 ident/libident.la \
739 acl/libacls.la \
740 eui/libeui.la \
741 acl/libstate.la \
742 $(AUTH_LIBS) \
743 acl/libapi.la \
744 base/libbase.la \
745 libsquid.la \
746 ip/libip.la \
747 fs/libfs.la \
748 ipc/libipc.la \
749 mgr/libmgr.la \
3ae8895c
A
750 $(EPOLL_LIBS) \
751 $(MINGW_LIBS) \
0f1173d4 752 $(COMPAT_LIB) \
3ae8895c 753 $(XTRA_LIBS)
852a0ce1 754
755EXTRA_DIST = \
756 cf_gen_defines \
757 cf.data.pre \
93c07e16 758 cf.data.depend \
74253ee6 759 DiskIO/modules.sh \
852a0ce1 760 mk-globals-c.pl \
e1007e14 761 mk-globals-c.awk \
852a0ce1 762 mk-string-arrays.pl \
e1007e14 763 mk-string-arrays.awk \
852a0ce1 764 repl_modules.sh \
7c8931a1 765 tests/STUB.h \
852a0ce1 766 mib.txt \
c8f4eac4 767 mime.conf.default
b9ae18aa 768
769libAIO_a_SOURCES = \
abb2a3d9 770 $(AIO_WIN32_SOURCES) \
b9ae18aa 771 DiskIO/AIO/async_io.h \
772 DiskIO/AIO/AIODiskFile.cc \
773 DiskIO/AIO/AIODiskFile.h \
774 DiskIO/AIO/AIODiskIOStrategy.cc \
775 DiskIO/AIO/AIODiskIOStrategy.h \
638b9bab
AJ
776 DiskIO/AIO/AIODiskIOModule.cc \
777 DiskIO/AIO/AIODiskIOModule.h
b9ae18aa 778
779libBlocking_a_SOURCES = \
780 DiskIO/Blocking/BlockingFile.cc \
781 DiskIO/Blocking/BlockingFile.h \
782 DiskIO/Blocking/BlockingIOStrategy.cc \
783 DiskIO/Blocking/BlockingIOStrategy.h \
a258fe8b 784 DiskIO/Blocking/BlockingDiskIOModule.cc \
b9ae18aa 785 DiskIO/Blocking/BlockingDiskIOModule.h
786
e2851fe7
AR
787libMmapped_a_SOURCES = \
788 DiskIO/Mmapped/MmappedFile.cc \
789 DiskIO/Mmapped/MmappedFile.h \
790 DiskIO/Mmapped/MmappedIOStrategy.cc \
791 DiskIO/Mmapped/MmappedIOStrategy.h \
792 DiskIO/Mmapped/MmappedDiskIOModule.cc \
793 DiskIO/Mmapped/MmappedDiskIOModule.h
794
254912f3
AR
795libIpcIo_a_SOURCES = \
796 DiskIO/IpcIo/IpcIoFile.cc \
797 DiskIO/IpcIo/IpcIoFile.h \
798 DiskIO/IpcIo/IpcIoIOStrategy.cc \
799 DiskIO/IpcIo/IpcIoIOStrategy.h \
800 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
801 DiskIO/IpcIo/IpcIoDiskIOModule.h
802
b9ae18aa 803libDiskDaemon_a_SOURCES = \
804 DiskIO/DiskDaemon/DiskdFile.cc \
805 DiskIO/DiskDaemon/DiskdFile.h \
806 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
807 DiskIO/DiskDaemon/DiskdIOStrategy.h \
808 DiskIO/DiskDaemon/diomsg.h \
8423fe1f 809 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
8822ebee
AR
810 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
811 DiskIO/DiskDaemon/DiskdAction.cc \
812 DiskIO/DiskDaemon/DiskdAction.h
b9ae18aa 813
814libDiskThreads_a_SOURCES = \
595c7973 815 $(AIOPS_SOURCE) \
816 DiskIO/DiskThreads/async_io.cc \
817 DiskIO/DiskThreads/DiskThreads.h \
818 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
819 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
8423fe1f 820 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
595c7973 821 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
822 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
823 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
b9ae18aa 824
e2520a9b
AJ
825DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
826nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
25f98340
AJ
827DiskIO_DiskDaemon_diskd_LDADD = \
828 $(top_builddir)/lib/libmisccontainers.la \
829 $(top_builddir)/lib/libmiscencoding.la \
830 $(top_builddir)/lib/libmiscutil.la \
831 $(COMPAT_LIB) \
832 $(XTRA_LIBS)
b9ae18aa 833
852a0ce1 834
941c31f3
FC
835DEFAULT_HTTP_PORT = 3128
836DEFAULT_ICP_PORT = 3130
852a0ce1 837DEFAULT_PREFIX = $(prefix)
5b52cb6c 838DEFAULT_CONFIG_DIR = $(sysconfdir)
84daf9b0 839DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
aa55a81f 840DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
84daf9b0 841DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
95d2589c 842DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
3ae8895c 843DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
84daf9b0
AJ
844DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
845DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
846DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
847DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
848DEFAULT_SWAP_DIR = $(localstatedir)/cache
95d2589c 849DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
831eb43f 850DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
851DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
82b7abe3 852DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
831eb43f 853DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
852a0ce1 854DEFAULT_ICON_DIR = $(datadir)/icons
43000484 855DEFAULT_ERROR_DIR = $(datadir)/errors
852a0ce1 856
aa55a81f 857# Make location configure settings available to the code
189f1e66 858DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
852a0ce1 859
d37e93a8 860snmp_core.o snmp_agent.o: ../snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
852a0ce1 861
4b981814 862globals.cc: globals.h mk-globals-c.awk
d64c1498 863 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
852a0ce1 864
56a49fda 865## Generate files containing string arrays for various enums....
4b981814 866hier_code.cc: hier_code.h mk-string-arrays.awk
d64c1498 867 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
868
869err_type.cc: err_type.h mk-string-arrays.awk
d64c1498 870 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
4b981814 871
64b66b76
CT
872err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
873 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
874
4b981814 875lookup_t.cc: lookup_t.h mk-string-arrays.awk
d64c1498 876 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
877
878icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
d64c1498 879 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
880
881swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
d64c1498 882 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
883
884
885## other generated files...
852a0ce1 886
887cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
888 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
889
890test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
891 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
a2794549 892
893## If autodependency works well this is not needed anymore
cca8ba0d 894cache_cf.o: cf_parser.cci
a2794549 895
cca8ba0d
HN
896# squid.conf.default is built by cf_gen when making cf_parser.cci
897squid.conf.default squid.conf.documented: cf_parser.cci
34af43e2 898 true
a2794549 899
cca8ba0d 900cf_parser.cci: cf.data cf_gen$(EXEEXT)
41bd17a4 901 ./cf_gen cf.data $(srcdir)/cf.data.depend
a2794549 902
cca8ba0d 903cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
d64c1498 904 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
a2794549 905
906
907## FIXME: generate a sed command file from configure. Then this doesn't
43000484 908## depend on the Makefile.
852a0ce1 909cf.data: cf.data.pre Makefile
9c2cec78
HN
910 sed \
911 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
912 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
65f92818 913 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
9c2cec78
HN
914 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
915 -e "s%[@]DEFAULT_DNSSERVER[@]%$(DEFAULT_DNSSERVER)%g" \
95d2589c 916 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
9c2cec78
HN
917 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
918 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
919 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
82b7abe3 920 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
9c2cec78
HN
921 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
922 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
923 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
924 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
925 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
926 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
95d2589c 927 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
9c2cec78
HN
928 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
929 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
930 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
75eaac6c 931 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
9c2cec78 932 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
852a0ce1 933 < $(srcdir)/cf.data.pre >$@
934
852a0ce1 935repl_modules.cc: repl_modules.sh Makefile
936 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
937
83915266
AJ
938include $(top_srcdir)/doc/manuals/Substitute.am
939
940squid.8: $(srcdir)/squid.8.in Makefile
466ae9bc 941 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
83915266
AJ
942
943man_MANS = squid.8
944EXTRA_DIST += squid.8.in
945CLEANFILES += squid.8
946
852a0ce1 947install-data-local: install-sysconfDATA install-dataDATA
948 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
84daf9b0 949 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
852a0ce1 950 else \
84daf9b0
AJ
951 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
952 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
852a0ce1 953 fi
954 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
84daf9b0 955 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
852a0ce1 956 else \
84daf9b0
AJ
957 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
958 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
852a0ce1 959 fi
1446a5fd
AJ
960 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
961 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
962 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
963 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
dc094bdd 964 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
3ff816ee 965 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
27b1dd70 966 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
a2794549 967
5b218ff4
HN
968uninstall-local: squid.conf.default
969 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
970 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
a2794549 971
4b981814
AJ
972CLEANFILES += cf.data squid.conf.default squid.conf.documented \
973 DiskIO/DiskIOModules_gen.cc \
95329c22
HN
974 test_tools.cc *.a
975
976test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
977 cp $(top_srcdir)/test-suite/test_tools.cc .
a2794549 978
25b6a907 979# stock tools for unit tests - library independent versions of dlink_list
980# etc.
95329c22
HN
981# globals.cc is needed by test_tools.cc.
982# Neither of these should be disted from here.
25b6a907 983TESTSOURCES= \
7c8931a1 984 tests/STUB.h \
95329c22 985 test_tools.cc \
25b6a907 986 globals.cc
987
2f1431ea 988check_PROGRAMS+=\
25b6a907 989 tests/testBoilerplate \
62ee09ca 990 tests/testCacheManager \
b7717b61 991 tests/testDiskIO \
a553a5a3 992 tests/testEvent \
993 tests/testEventLoop \
f24583c1 994 tests/test_http_range \
4c14658e 995 tests/testHttpParser \
0f9db2d6 996 tests/testHttpReply \
c21ad0f5 997 tests/testHttpRequest \
25b6a907 998 tests/testStore \
30abd221 999 tests/testString \
985c86bc 1000 tests/testURL \
3ae8895c 1001 $(STORE_TESTS)
f5691f9c 1002
104ed46e
AJ
1003## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1004TESTS += $(check_PROGRAMS)
1005
e1a88700 1006### Template for new Unit Test Program
1007## - add tests/testX to check_PROGRAMS above.
1008## - copy template below and substitue X for class name
1009## - add other component .(h|cc) files needed to link and run tests
1010##
1011##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1012##
1013#tests_testX_SOURCES=\
1014# tests/testX.h \
1015# tests/testX.cc \
1016# tests/testMain.cc \
1017# X.h \
95329c22
HN
1018# X.cc
1019#nodist_tests_testX_SOURCES=\
e1a88700 1020# $(TESTSOURCES)
1021#tests_testX_LDFLAGS = $(LIBADD_DL)
1022#tests_testX_LDADD=\
3ae8895c
A
1023# $(SQUID_CPPUNIT_LIBS) \
1024# $(SQUID_CPPUNIT_LA) \
0f1173d4 1025# $(COMPAT_LIB) \
25f98340 1026#tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
e1a88700 1027
0f9db2d6
AJ
1028
1029# - add other component .(h|cc) files needed to link and run tests
1030tests_testHttpReply_SOURCES=\
0f9db2d6 1031 cbdata.cc \
62a0ef44 1032 cbdata.h \
0f9db2d6
AJ
1033 ETag.cc \
1034 HttpBody.cc \
1035 HttpHdrCc.cc \
0f9db2d6 1036 HttpHdrContRange.cc \
62a0ef44 1037 HttpHdrContRange.h \
0f9db2d6 1038 HttpHdrRange.cc \
0f9db2d6 1039 HttpHdrSc.cc \
62a0ef44 1040 HttpHdrSc.h \
0f9db2d6 1041 HttpHdrScTarget.cc \
62a0ef44 1042 HttpHdrScTarget.h \
0f9db2d6 1043 HttpHeader.cc \
62a0ef44 1044 HttpHeader.h \
0f9db2d6
AJ
1045 HttpHeaderMask.h \
1046 HttpHeaderTools.cc \
1288ea72 1047 HttpControlMsg.h \
0f9db2d6 1048 HttpMsg.cc \
62a0ef44 1049 HttpMsg.h \
0f9db2d6 1050 HttpReply.cc \
62a0ef44 1051 HttpReply.h \
6feb0e7c 1052 HttpStatusCode.h \
0f9db2d6 1053 HttpStatusLine.cc \
62a0ef44 1054 HttpStatusLine.h \
0f9db2d6 1055 mem.cc \
0f9db2d6 1056 MemBuf.cc \
62a0ef44 1057 MemBuf.h \
0f9db2d6 1058 mime_header.cc \
0f9db2d6 1059 Packer.cc \
62a0ef44
AJ
1060 Packer.h \
1061 SquidString.h \
1062 SquidTime.h \
1063 String.cc \
d5d5493b 1064 tests/stub_cache_cf.cc \
0f9db2d6 1065 tests/stub_cache_manager.cc \
25f98340 1066 tests/stub_debug.cc \
48d54e4d 1067 tests/stub_HelperChildConfig.cc \
0f9db2d6
AJ
1068 tests/stub_StatHist.cc \
1069 tests/stub_store.cc \
62a0ef44
AJ
1070 tests/testHttpReply.cc \
1071 tests/testHttpReply.h \
1072 tests/testMain.cc \
d5d5493b
DK
1073 time.cc \
1074 wordlist.cc
0f9db2d6
AJ
1075nodist_tests_testHttpReply_SOURCES=\
1076 $(TESTSOURCES)
1077tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1078tests_testHttpReply_LDADD=\
1079 acl/libapi.la \
1080 acl/libstate.la \
2f1431ea 1081 $(AUTH_LIBS) \
0f9db2d6 1082 ip/libip.la \
3d93a84d 1083 base/libbase.la \
b4aca2d8 1084 $(top_builddir)/lib/libmisccontainers.la \
25f98340
AJ
1085 $(top_builddir)/lib/libmiscencoding.la \
1086 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
1087 $(SQUID_CPPUNIT_LIBS) \
1088 $(SQUID_CPPUNIT_LA) \
3d93a84d 1089 $(COMPAT_LIB) \
3ae8895c 1090 $(XTRA_LIBS)
25f98340 1091tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
0f9db2d6 1092
d295d770 1093## Tests for the ACLMaxUserIP class
1094## acl needs wordlist. wordlist needs MemBug
1095## MemBuf needs mem, MemBuf needs event,
1096## event needs cbdata.
f3f71ee9 1097## ACLMaxUserUP needs $(AUTH_LIBS)
d295d770 1098## ACLMaxUserIP needs ACLChecklist
1099## AuthUser request needs HttpHeader, which brings in
1100## ETag.cc \
1101## HttpHeader.cc \
1102## HttpHeaderTools.cc \
1103## HttpHdrContRange.cc \
1104## HttpHdrCc.cc \
1105## HttpHdrRange.cc \
1106## HttpHdrSc.cc \
1107## HttpHdrScTarget.cc \
1108## Packer.cc \
1109## StatHist.cc \
30abd221 1110## String.cc \
1b76e6c1
AJ
1111##
1112## disk.cc \
1113## fs/libfs.la \
d295d770 1114tests_testACLMaxUserIP_SOURCES= \
d295d770 1115 cbdata.cc \
281422f8 1116 ClientInfo.h \
cf65b4fb 1117 ConfigOption.cc \
d295d770 1118 ConfigParser.cc \
cf65b4fb
AJ
1119 DiskIO/ReadRequest.cc \
1120 DiskIO/WriteRequest.cc \
d295d770 1121 ETag.cc \
62a0ef44 1122 event.cc \
cf65b4fb 1123 filemap.cc \
48d54e4d
AJ
1124 HelperChildConfig.h \
1125 HelperChildConfig.cc \
d295d770 1126 HttpHeader.cc \
1127 HttpHeaderTools.cc \
1128 HttpHdrContRange.cc \
1129 HttpHdrRange.cc \
1130 HttpHdrCc.cc \
1131 HttpHdrSc.cc \
1132 HttpHdrScTarget.cc \
cf65b4fb
AJ
1133 HttpMsg.cc \
1134 HttpRequestMethod.cc \
1135 int.cc \
1136 list.cc \
b1b15292 1137 mem_node.cc \
d295d770 1138 Packer.cc \
93a9ad6e 1139 Parsing.cc \
cf65b4fb 1140 SquidMath.cc \
d295d770 1141 StatHist.cc \
b1b15292 1142 stmem.cc \
30abd221 1143 String.cc \
cf65b4fb
AJ
1144 store_dir.cc \
1145 StoreIOState.cc \
1146 StoreMeta.cc \
1147 StoreMetaMD5.cc \
1148 StoreMetaSTD.cc \
1149 StoreMetaSTDLFS.cc \
1150 StoreMetaUnpacker.cc \
1151 StoreMetaURL.cc \
1152 StoreMetaVary.cc \
1153 StoreSwapLogData.cc \
1154 store_key_md5.cc \
1155 swap_log_op.cc \
1156 swap_log_op.h \
1157 SwapDir.cc \
1158 SwapDir.h \
1159 tests/stub_access_log.cc \
93a9ad6e 1160 tests/stub_cache_cf.cc \
b1b15292 1161 tests/stub_comm.cc \
25f98340 1162 tests/stub_debug.cc \
b1b15292 1163 tests/stub_DelayId.cc \
cf65b4fb
AJ
1164 tests/stub_DiskIOModule.cc \
1165 tests/stub_fd.cc \
1166 tests/stub_HttpRequest.cc \
b1b15292 1167 tests/stub_MemObject.cc \
d5d5493b 1168 tests/stub_MemStore.cc \
cf65b4fb 1169 tests/stub_mime.cc \
d295d770 1170 tests/stub_store.cc \
cf65b4fb
AJ
1171 tests/stub_store_rebuild.cc \
1172 tests/stub_store_swapout.cc \
d5d5493b 1173 tests/stub_tools.cc \
9b3ed82c 1174 tests/stub_cache_manager.cc \
d295d770 1175 tests/testACLMaxUserIP.cc \
1176 tests/testACLMaxUserIP.h \
1177 tests/testMain.cc \
985c86bc 1178 time.cc \
cf65b4fb
AJ
1179 url.cc \
1180 URL.h \
1181 URLScheme.cc \
1182 URLScheme.h \
d295d770 1183 mem.cc \
1184 MemBuf.cc \
e24ee19d 1185 wordlist.cc
95329c22
HN
1186nodist_tests_testACLMaxUserIP_SOURCES= \
1187 $(TESTSOURCES)
d295d770 1188tests_testACLMaxUserIP_LDADD= \
2f1431ea 1189 $(AUTH_ACL_LIBS) \
65f92818
AJ
1190 ident/libident.la \
1191 acl/libacls.la \
1192 eui/libeui.la \
1193 acl/libstate.la \
2f1431ea 1194 $(AUTH_LIBS) \
65f92818 1195 acl/libapi.la \
cf65b4fb 1196 anyp/libanyp.la \
65f92818
AJ
1197 base/libbase.la \
1198 libsquid.la \
1199 ip/libip.la \
25f98340
AJ
1200 $(top_builddir)/lib/libmisccontainers.la \
1201 $(top_builddir)/lib/libmiscencoding.la \
1202 $(top_builddir)/lib/libmiscutil.la \
d5d5493b 1203 $(DISK_OS_LIBS) \
3ae8895c
A
1204 $(REGEXLIB) \
1205 $(SQUID_CPPUNIT_LIBS) \
1206 $(SSLLIB) \
0f1173d4 1207 $(COMPAT_LIB) \
3ae8895c 1208 $(XTRA_LIBS)
d295d770 1209tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1210tests_testACLMaxUserIP_DEPENDENCIES = \
3ae8895c 1211 $(SQUID_CPPUNIT_LA)
d295d770 1212
25b6a907 1213## a demonstration test that does nothing but shows the salient points
1214## involved in writing tests.
985c86bc 1215tests_testBoilerplate_SOURCES = \
1216 tests/testBoilerplate.cc \
1217 tests/testMain.cc \
1218 tests/testBoilerplate.h \
985c86bc 1219 time.cc
95329c22
HN
1220nodist_tests_testBoilerplate_SOURCES = \
1221 $(TESTSOURCES)
25b6a907 1222tests_testBoilerplate_LDADD= \
3ae8895c
A
1223 $(SQUID_CPPUNIT_LIBS) \
1224 $(SSLLIB) \
0f1173d4 1225 $(COMPAT_LIB) \
3ae8895c 1226 $(XTRA_LIBS)
25b6a907 1227tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1228tests_testBoilerplate_DEPENDENCIES = \
3ae8895c 1229 $(SQUID_CPPUNIT_LA)
25b6a907 1230
62ee09ca 1231## Tests of the CacheManager module.
1232tests_testCacheManager_SOURCES = \
5817ee13 1233 $(ACL_REGISTRATION_SOURCES) \
62ee09ca 1234 debug.cc \
4c14658e
AJ
1235 HttpParser.cc \
1236 HttpParser.h \
62ee09ca 1237 HttpRequest.cc \
1238 HttpRequestMethod.cc \
1239 mem.cc \
30abd221 1240 String.cc \
62ee09ca 1241 tests/testCacheManager.cc \
a553a5a3 1242 tests/testCacheManager.h \
62ee09ca 1243 tests/testMain.cc \
d3578172 1244 tests/stub_main_cc.cc \
d37e93a8 1245 tests/stub_ipc_Forwarder.cc \
62ee09ca 1246 time.cc \
5f8252d2 1247 BodyPipe.cc \
62ee09ca 1248 cache_manager.cc \
1249 cache_cf.cc \
1b26be8f 1250 ProtoPort.cc \
1251 ProtoPort.h \
62ee09ca 1252 CacheDigest.cc \
1253 carp.cc \
1254 cbdata.cc \
81c07a23 1255 ChunkedCodingParser.cc \
62ee09ca 1256 client_db.cc \
1257 client_side.cc \
1258 client_side_reply.cc \
1259 client_side_request.cc \
281422f8 1260 ClientInfo.h \
62ee09ca 1261 clientStream.cc \
62ee09ca 1262 ConfigOption.cc \
1263 ConfigParser.cc \
96c2bb61
AR
1264 CpuAffinityMap.cc \
1265 CpuAffinityMap.h \
1266 CpuAffinitySet.cc \
1267 CpuAffinitySet.h \
62ee09ca 1268 $(DELAY_POOL_SOURCE) \
1269 disk.cc \
e1f7507e
AJ
1270 dlink.h \
1271 dlink.cc \
62ee09ca 1272 $(DNSSOURCE) \
62ee09ca 1273 errorpage.cc \
62ee09ca 1274 ETag.cc \
62a0ef44 1275 event.cc \
62ee09ca 1276 external_acl.cc \
1277 ExternalACLEntry.cc \
1278 fd.cc \
1279 fde.cc \
1280 forward.cc \
1281 fqdncache.cc \
1282 ftp.cc \
1283 gopher.cc \
bbaf2685 1284 hier_code.h \
62ee09ca 1285 helper.cc \
48d54e4d
AJ
1286 HelperChildConfig.h \
1287 HelperChildConfig.cc \
62ee09ca 1288 $(HTCPSOURCE) \
1289 http.cc \
1290 HttpBody.cc \
1291 HttpHeader.cc \
1292 HttpHeaderTools.cc \
1293 HttpHdrCc.cc \
1294 HttpHdrContRange.cc \
1295 HttpHdrRange.cc \
1296 HttpHdrSc.cc \
1297 HttpHdrScTarget.cc \
1298 HttpMsg.cc \
1299 HttpReply.cc \
1300 HttpStatusLine.cc \
62ee09ca 1301 icp_v2.cc \
1302 icp_v3.cc \
b5d712b5 1303 $(IPC_SOURCE) \
62ee09ca 1304 ipcache.cc \
1305 int.cc \
1306 internal.cc \
1307 list.cc \
62ee09ca 1308 multicast.cc \
1309 mem_node.cc \
1310 MemBuf.cc \
1311 MemObject.cc \
1312 mime.cc \
0f9db2d6 1313 mime_header.cc \
62ee09ca 1314 neighbors.cc \
62ee09ca 1315 Packer.cc \
1316 Parsing.cc \
1317 pconn.cc \
1318 peer_digest.cc \
9ca29d23 1319 peer_proxy_negotiate_auth.cc \
62ee09ca 1320 peer_select.cc \
f4a21650
HN
1321 peer_sourcehash.cc \
1322 peer_userhash.cc \
62ee09ca 1323 redirect.cc \
62ee09ca 1324 refresh.cc \
aa839030 1325 RemovalPolicy.cc \
62ee09ca 1326 Server.cc \
1327 $(SNMP_SOURCE) \
a98bcbee
AJ
1328 SquidMath.h \
1329 SquidMath.cc \
62ee09ca 1330 stat.cc \
1331 StatHist.cc \
1332 stmem.cc \
1333 store.cc \
1334 store_client.cc \
1335 store_digest.cc \
1336 store_dir.cc \
1337 store_io.cc \
1338 store_key_md5.cc \
1339 store_log.cc \
1340 store_rebuild.cc \
1341 store_swapin.cc \
1342 store_swapmeta.cc \
1343 store_swapout.cc \
1344 StoreFileSystem.cc \
1345 StoreIOState.cc \
1346 StoreMeta.cc \
1347 StoreMetaMD5.cc \
1348 StoreMetaSTD.cc \
47f6e231 1349 StoreMetaSTDLFS.cc \
62ee09ca 1350 StoreMetaUnpacker.cc \
1351 StoreMetaURL.cc \
1352 StoreMetaVary.cc \
1353 StoreSwapLogData.cc \
1354 tools.cc \
1355 tunnel.cc \
68353d5a 1356 SwapDir.cc MemStore.cc \
62ee09ca 1357 url.cc \
1358 URLScheme.cc \
1359 urn.cc \
62288514 1360 wccp2.cc \
62ee09ca 1361 whois.cc \
8277060a 1362 FadingCounter.cc \
9c8434f6 1363 $(WIN32_SOURCE) \
62ee09ca 1364 wordlist.cc
1365nodist_tests_testCacheManager_SOURCES = \
4b981814 1366 $(BUILT_SOURCES)
ec41b64c 1367# comm.cc only requires comm/libcomm.la until fdc_table is dead.
62ee09ca 1368tests_testCacheManager_LDADD = \
2f1431ea 1369 $(AUTH_ACL_LIBS) \
65f92818
AJ
1370 ident/libident.la \
1371 acl/libacls.la \
1372 eui/libeui.la \
1373 acl/libstate.la \
2f1431ea 1374 $(AUTH_LIBS) \
65f92818
AJ
1375 acl/libapi.la \
1376 base/libbase.la \
1377 libsquid.la \
1378 ip/libip.la \
1379 fs/libfs.la \
1380 ipc/libipc.la \
1381 mgr/libmgr.la \
1382 $(SNMP_LIBS) \
ec41b64c 1383 comm/libcomm.la \
71787d05 1384 icmp/libicmp.la icmp/libicmp-core.la \
82b7abe3 1385 log/liblog.la \
38e16f92 1386 format/libformat.la \
3ae8895c 1387 $(REPL_OBJS) \
d5d5493b 1388 $(DISK_OS_LIBS) \
65f92818 1389 $(ADAPTATION_LIBS) \
88bfe098 1390 $(ESI_LIBS) \
95d2589c 1391 $(SSL_LIBS) \
0c3d3f65 1392 anyp/libanyp.la \
25f98340
AJ
1393 $(top_builddir)/lib/libmisccontainers.la \
1394 $(top_builddir)/lib/libmiscencoding.la \
1395 $(top_builddir)/lib/libmiscutil.la \
3ae8895c 1396 $(REGEXLIB) \
3ae8895c
A
1397 $(SQUID_CPPUNIT_LIBS) \
1398 $(SQUID_CPPUNIT_LA) \
1399 $(SSLLIB) \
1400 $(KRB5LIBS) \
0f1173d4 1401 $(COMPAT_LIB) \
3ae8895c 1402 $(XTRA_LIBS)
62ee09ca 1403tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
25f98340 1404tests_testCacheManager_DEPENDENCIES = \
3ae8895c
A
1405 $(REPL_OBJS) \
1406 $(SQUID_CPPUNIT_LA)
62ee09ca 1407
1b76e6c1
AJ
1408# tests/stub_CommIO.cc \
1409# tests/stub_comm.cc
95329c22 1410tests_testDiskIO_SOURCES = \
a553a5a3 1411 CacheDigest.cc \
a553a5a3 1412 cbdata.cc \
281422f8 1413 ClientInfo.h \
a553a5a3 1414 ConfigOption.cc \
1415 ConfigParser.cc \
1416 $(DELAY_POOL_SOURCE) \
62a0ef44 1417 $(DISKIO_SOURCE) \
a553a5a3 1418 disk.cc \
62a0ef44
AJ
1419 ETag.cc \
1420 EventLoop.cc \
1421 event.cc \
1422 fd.cc \
1423 filemap.cc \
1424 HttpBody.cc \
1425 HttpHdrCc.cc \
1426 HttpHdrContRange.cc \
1427 HttpHdrSc.cc \
1428 HttpHdrScTarget.cc \
1429 HttpHdrRange.cc \
1430 HttpHeaderTools.cc \
1431 HttpHeader.cc \
1432 HttpMsg.cc \
1433 HttpReply.cc \
1434 HttpRequestMethod.cc \
1435 HttpStatusLine.cc \
1436 int.cc \
1437 list.cc \
1438 MemBuf.cc \
1439 MemObject.cc \
1440 mem_node.cc \
1441 mem.cc \
1442 Packer.cc \
1443 Parsing.cc \
1444 refresh.cc \
1445 RemovalPolicy.cc \
1446 StatHist.cc \
1447 stmem.cc \
1448 StoreFileSystem.cc \
1449 StoreIOState.cc \
1450 StoreMeta.cc \
1451 StoreMetaMD5.cc \
1452 StoreMetaSTD.cc \
1453 StoreMetaSTDLFS.cc \
1454 StoreMetaUnpacker.cc \
1455 StoreMetaURL.cc \
1456 StoreMetaVary.cc \
1457 StoreSwapLogData.cc \
1458 store_dir.cc \
1459 store_io.cc \
1460 store_key_md5.cc \
1461 store_swapout.cc \
1462 store_swapmeta.cc \
1463 store.cc \
1464 String.cc \
1465 SwapDir.cc \
1466 tests/stub_access_log.cc \
1467 tests/stub_acl.cc \
1468 tests/stub_cache_cf.cc \
48d54e4d 1469 tests/stub_cache_manager.cc \
1b76e6c1 1470 tests/stub_client_db.cc \
62a0ef44 1471 tests/stub_client_side_request.cc \
62a0ef44
AJ
1472 tests/stub_debug.cc \
1473 tests/stub_errorpage.cc \
1474 tests/stub_helper.cc \
8822ebee 1475 tests/stub_HelperChildConfig.cc \
62a0ef44
AJ
1476 tests/stub_HttpRequest.cc \
1477 tests/stub_http.cc \
3e00a374 1478 tests/stub_icp.cc \
62a0ef44 1479 tests/stub_internal.cc \
1b76e6c1 1480 tests/stub_ipc.cc \
3e00a374 1481 tests/stub_ipcache.cc \
98a6543e 1482 tests/stub_libicmp.cc \
d5d5493b 1483 tests/stub_MemStore.cc \
62a0ef44 1484 tests/stub_mime.cc \
1b76e6c1 1485 tests/stub_pconn.cc \
8822ebee 1486 tests/stub_Port.cc \
62a0ef44
AJ
1487 tests/stub_store_client.cc \
1488 tests/stub_store_rebuild.cc \
1489 tests/stub_tools.cc \
62a0ef44
AJ
1490 tests/stub_UdsOp.cc \
1491 tests/testDiskIO.cc \
1492 tests/testDiskIO.h \
1493 tests/testMain.cc \
1494 tests/testStoreSupport.cc \
1495 tests/testStoreSupport.h \
1496 time.cc \
1497 $(UNLINKDSOURCE) \
1498 url.cc \
1499 URLScheme.cc \
1500 $(WIN32_SOURCE) \
1501 wordlist.cc
95329c22 1502nodist_tests_testDiskIO_SOURCES= \
62a0ef44
AJ
1503 $(TESTSOURCES) \
1504 $(DISKIO_GEN_SOURCE) \
a98bcbee
AJ
1505 SquidMath.cc \
1506 SquidMath.h \
4b981814 1507 swap_log_op.cc
95329c22 1508tests_testDiskIO_LDADD = \
0c3d3f65 1509 anyp/libanyp.la \
5dbaae6d 1510 SquidConfig.o \
8822ebee
AR
1511 CommCalls.o \
1512 DnsLookupDetails.o \
2f1431ea 1513 $(AUTH_ACL_LIBS) \
65f92818
AJ
1514 ident/libident.la \
1515 acl/libacls.la \
1516 eui/libeui.la \
1517 acl/libstate.la \
2f1431ea 1518 $(AUTH_LIBS) \
65f92818 1519 libsquid.la \
1b76e6c1 1520 comm/libcomm.la \
65f92818
AJ
1521 ip/libip.la \
1522 fs/libfs.la \
1b76e6c1 1523 ipc/libipc.la \
25f98340
AJ
1524 $(REPL_OBJS) \
1525 $(DISK_LIBS) \
1526 $(DISK_OS_LIBS) \
1527 acl/libapi.la \
65f92818 1528 mgr/libmgr.la \
d5d5493b
DK
1529 ipc/libipc.la \
1530 base/libbase.la \
1b76e6c1 1531 $(SSL_LIBS) \
25f98340
AJ
1532 $(top_builddir)/lib/libmisccontainers.la \
1533 $(top_builddir)/lib/libmiscencoding.la \
1534 $(top_builddir)/lib/libmiscutil.la \
1535 $(REGEXLIB) \
1536 $(SQUID_CPPUNIT_LIBS) \
1537 $(SSLLIB) \
1538 $(COMPAT_LIB) \
3ae8895c 1539 $(XTRA_LIBS)
3ad63615 1540
b7717b61 1541tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
25f98340 1542tests_testDiskIO_DEPENDENCIES = \
3ae8895c 1543 $(DISK_LIBS) \
09c5ae5a 1544 $(SWAP_TEST_DS) \
3ae8895c 1545 $(SQUID_CPPUNIT_LA)
b7717b61 1546
a553a5a3 1547## Tests of the Even module.
1548tests_testEvent_SOURCES = \
5817ee13 1549 $(ACL_REGISTRATION_SOURCES) \
5f8252d2 1550 BodyPipe.cc \
a553a5a3 1551 CacheDigest.cc \
62a0ef44
AJ
1552 cache_cf.cc \
1553 cache_manager.cc \
a553a5a3 1554 carp.cc \
1555 cbdata.cc \
81c07a23 1556 ChunkedCodingParser.cc \
a553a5a3 1557 client_db.cc \
1558 client_side.cc \
1559 client_side_reply.cc \
1560 client_side_request.cc \
281422f8 1561 ClientInfo.h \
a553a5a3 1562 clientStream.cc \
a553a5a3 1563 ConfigOption.cc \
1564 ConfigParser.cc \
96c2bb61
AR
1565 CpuAffinityMap.cc \
1566 CpuAffinityMap.h \
1567 CpuAffinitySet.cc \
1568 CpuAffinitySet.h \
62a0ef44 1569 debug.cc \
a553a5a3 1570 $(DELAY_POOL_SOURCE) \
1571 disk.cc \
e1f7507e
AJ
1572 dlink.h \
1573 dlink.cc \
a553a5a3 1574 $(DNSSOURCE) \
a553a5a3 1575 errorpage.cc \
a553a5a3 1576 ETag.cc \
62a0ef44
AJ
1577 event.cc \
1578 EventLoop.h \
1579 EventLoop.cc \
a553a5a3 1580 external_acl.cc \
1581 ExternalACLEntry.cc \
62a0ef44 1582 FadingCounter.cc \
a553a5a3 1583 fd.cc \
1584 fde.cc \
1585 forward.cc \
1586 fqdncache.cc \
1587 ftp.cc \
1588 gopher.cc \
1589 helper.cc \
48d54e4d
AJ
1590 HelperChildConfig.h \
1591 HelperChildConfig.cc \
62a0ef44 1592 hier_code.h \
a553a5a3 1593 $(HTCPSOURCE) \
1594 http.cc \
1595 HttpBody.cc \
1596 HttpHeader.cc \
1597 HttpHeaderTools.cc \
1598 HttpHdrCc.cc \
1599 HttpHdrContRange.cc \
1600 HttpHdrRange.cc \
1601 HttpHdrSc.cc \
1602 HttpHdrScTarget.cc \
1603 HttpMsg.cc \
4c14658e
AJ
1604 HttpParser.cc \
1605 HttpParser.h \
a553a5a3 1606 HttpReply.cc \
62a0ef44
AJ
1607 HttpRequest.cc \
1608 HttpRequestMethod.cc \
a553a5a3 1609 HttpStatusLine.cc \
a553a5a3 1610 icp_v2.cc \
1611 icp_v3.cc \
b5d712b5 1612 $(IPC_SOURCE) \
a553a5a3 1613 ipcache.cc \
1614 int.cc \
1615 internal.cc \
1616 list.cc \
62a0ef44 1617 mem.cc \
a553a5a3 1618 mem_node.cc \
1619 MemBuf.cc \
1620 MemObject.cc \
1621 mime.cc \
0f9db2d6 1622 mime_header.cc \
62a0ef44 1623 multicast.cc \
a553a5a3 1624 neighbors.cc \
a553a5a3 1625 Packer.cc \
1626 Parsing.cc \
1627 pconn.cc \
1628 peer_digest.cc \
9ca29d23 1629 peer_proxy_negotiate_auth.cc \
a553a5a3 1630 peer_select.cc \
f4a21650
HN
1631 peer_sourcehash.cc \
1632 peer_userhash.cc \
62a0ef44
AJ
1633 ProtoPort.cc \
1634 ProtoPort.h \
a553a5a3 1635 redirect.cc \
a553a5a3 1636 refresh.cc \
62a0ef44 1637 RemovalPolicy.cc \
a553a5a3 1638 Server.cc \
1639 $(SNMP_SOURCE) \
a98bcbee 1640 SquidMath.cc \
62a0ef44 1641 SquidMath.h \
a553a5a3 1642 stat.cc \
1643 StatHist.cc \
1644 stmem.cc \
1645 store.cc \
1646 store_client.cc \
1647 store_digest.cc \
1648 store_dir.cc \
1649 store_io.cc \
1650 store_key_md5.cc \
1651 store_log.cc \
1652 store_rebuild.cc \
1653 store_swapin.cc \
1654 store_swapmeta.cc \
1655 store_swapout.cc \
1656 StoreFileSystem.cc \
1657 StoreIOState.cc \
1658 StoreMeta.cc \
1659 StoreMetaMD5.cc \
1660 StoreMetaSTD.cc \
47f6e231 1661 StoreMetaSTDLFS.cc \
a553a5a3 1662 StoreMetaUnpacker.cc \
1663 StoreMetaURL.cc \
1664 StoreMetaVary.cc \
1665 StoreSwapLogData.cc \
62a0ef44
AJ
1666 String.cc \
1667 SwapDir.cc \
1668 tests/CapturingStoreEntry.h \
1669 tests/testEvent.cc \
1670 tests/testEvent.h \
1671 tests/testMain.cc \
1672 tests/stub_main_cc.cc \
1673 tests/stub_ipc_Forwarder.cc \
1674 time.cc \
a553a5a3 1675 tools.cc \
1676 tunnel.cc \
d5d5493b 1677 MemStore.cc \
a553a5a3 1678 url.cc \
1679 URLScheme.cc \
1680 urn.cc \
a553a5a3 1681 wccp2.cc \
1682 whois.cc \
9c8434f6 1683 $(WIN32_SOURCE) \
a553a5a3 1684 wordlist.cc
1685nodist_tests_testEvent_SOURCES = \
4b981814 1686 $(BUILT_SOURCES)
a553a5a3 1687tests_testEvent_LDADD = \
62a0ef44
AJ
1688 $(AUTH_ACL_LIBS) \
1689 ident/libident.la \
1690 acl/libacls.la \
1691 eui/libeui.la \
1692 acl/libstate.la \
1693 $(AUTH_LIBS) \
1694 acl/libapi.la \
1695 base/libbase.la \
1696 libsquid.la \
1697 ip/libip.la \
1698 fs/libfs.la \
1699 ipc/libipc.la \
1700 mgr/libmgr.la \
0c3d3f65 1701 anyp/libanyp.la \
65f92818 1702 $(SNMP_LIBS) \
9b5c4a9a 1703 icmp/libicmp.la icmp/libicmp-core.la \
ec41b64c 1704 comm/libcomm.la \
82b7abe3 1705 log/liblog.la \
38e16f92 1706 format/libformat.la \
3ae8895c 1707 $(REPL_OBJS) \
65f92818 1708 $(ADAPTATION_LIBS) \
88bfe098 1709 $(ESI_LIBS) \
95d2589c 1710 $(SSL_LIBS) \
25f98340
AJ
1711 $(top_builddir)/lib/libmisccontainers.la \
1712 $(top_builddir)/lib/libmiscencoding.la \
1713 $(top_builddir)/lib/libmiscutil.la \
d5d5493b 1714 $(DISK_OS_LIBS) \
3ae8895c 1715 $(REGEXLIB) \
3ae8895c
A
1716 $(SQUID_CPPUNIT_LIBS) \
1717 $(SQUID_CPPUNIT_LA) \
1718 $(SSLLIB) \
1719 $(KRB5LIBS) \
0f1173d4 1720 $(COMPAT_LIB) \
3ae8895c 1721 $(XTRA_LIBS)
a553a5a3 1722tests_testEvent_LDFLAGS = $(LIBADD_DL)
25f98340 1723tests_testEvent_DEPENDENCIES = \
3ae8895c
A
1724 $(REPL_OBJS) \
1725 $(SQUID_CPPUNIT_LA)
a553a5a3 1726
1727## Tests of the EventLoop module.
1728tests_testEventLoop_SOURCES = \
5817ee13 1729 $(ACL_REGISTRATION_SOURCES) \
5f8252d2 1730 BodyPipe.cc \
62a0ef44 1731 CacheDigest.cc \
a553a5a3 1732 cache_manager.cc \
1733 cache_cf.cc \
a553a5a3 1734 carp.cc \
1735 cbdata.cc \
81c07a23 1736 ChunkedCodingParser.cc \
a553a5a3 1737 client_db.cc \
1738 client_side.cc \
1739 client_side_reply.cc \
1740 client_side_request.cc \
281422f8 1741 ClientInfo.h \
a553a5a3 1742 clientStream.cc \
a553a5a3 1743 ConfigOption.cc \
1744 ConfigParser.cc \
96c2bb61
AR
1745 CpuAffinityMap.cc \
1746 CpuAffinityMap.h \
1747 CpuAffinitySet.cc \
1748 CpuAffinitySet.h \
62a0ef44 1749 debug.cc \
a553a5a3 1750 $(DELAY_POOL_SOURCE) \
1751 disk.cc \
e1f7507e
AJ
1752 dlink.h \
1753 dlink.cc \
a553a5a3 1754 $(DNSSOURCE) \
a553a5a3 1755 errorpage.cc \
a553a5a3 1756 ETag.cc \
62a0ef44
AJ
1757 EventLoop.h \
1758 EventLoop.cc \
1759 event.cc \
a553a5a3 1760 external_acl.cc \
1761 ExternalACLEntry.cc \
62a0ef44 1762 FadingCounter.cc \
a553a5a3 1763 fd.cc \
1764 fde.cc \
1765 forward.cc \
1766 fqdncache.cc \
1767 ftp.cc \
1768 gopher.cc \
1769 helper.cc \
48d54e4d
AJ
1770 HelperChildConfig.h \
1771 HelperChildConfig.cc \
bbaf2685 1772 hier_code.h \
a553a5a3 1773 $(HTCPSOURCE) \
1774 http.cc \
1775 HttpBody.cc \
1776 HttpHeader.cc \
1777 HttpHeaderTools.cc \
1778 HttpHdrCc.cc \
1779 HttpHdrContRange.cc \
1780 HttpHdrRange.cc \
1781 HttpHdrSc.cc \
1782 HttpHdrScTarget.cc \
1783 HttpMsg.cc \
4c14658e
AJ
1784 HttpParser.cc \
1785 HttpParser.h \
a553a5a3 1786 HttpReply.cc \
62a0ef44
AJ
1787 HttpRequest.cc \
1788 HttpRequestMethod.cc \
a553a5a3 1789 HttpStatusLine.cc \
a553a5a3 1790 icp_v2.cc \
1791 icp_v3.cc \
b5d712b5 1792 $(IPC_SOURCE) \
a553a5a3 1793 ipcache.cc \
1794 int.cc \
1795 internal.cc \
1796 list.cc \
a553a5a3 1797 MemBuf.cc \
1798 MemObject.cc \
62a0ef44
AJ
1799 mem.cc \
1800 mem_node.cc \
a553a5a3 1801 mime.cc \
0f9db2d6 1802 mime_header.cc \
62a0ef44 1803 multicast.cc \
a553a5a3 1804 neighbors.cc \
a553a5a3 1805 Packer.cc \
1806 Parsing.cc \
1807 pconn.cc \
1808 peer_digest.cc \
9ca29d23 1809 peer_proxy_negotiate_auth.cc \
a553a5a3 1810 peer_select.cc \
f4a21650
HN
1811 peer_sourcehash.cc \
1812 peer_userhash.cc \
62a0ef44
AJ
1813 ProtoPort.cc \
1814 ProtoPort.h \
1815 RemovalPolicy.cc \
a553a5a3 1816 redirect.cc \
a553a5a3 1817 refresh.cc \
1818 Server.cc \
1819 $(SNMP_SOURCE) \
a98bcbee
AJ
1820 SquidMath.h \
1821 SquidMath.cc \
a553a5a3 1822 stat.cc \
1823 StatHist.cc \
1824 stmem.cc \
1825 store.cc \
1826 store_client.cc \
1827 store_digest.cc \
1828 store_dir.cc \
1829 store_io.cc \
1830 store_key_md5.cc \
1831 store_log.cc \
1832 store_rebuild.cc \
1833 store_swapin.cc \
1834 store_swapmeta.cc \
1835 store_swapout.cc \
1836 StoreFileSystem.cc \
1837 StoreIOState.cc \
1838 StoreMeta.cc \
1839 StoreMetaMD5.cc \
1840 StoreMetaSTD.cc \
fa10da4a 1841 StoreMetaSTDLFS.cc \
a553a5a3 1842 StoreMetaUnpacker.cc \
1843 StoreMetaURL.cc \
1844 StoreMetaVary.cc \
1845 StoreSwapLogData.cc \
62a0ef44
AJ
1846 String.cc \
1847 SwapDir.cc \
1848 tests/testEventLoop.cc \
1849 tests/testEventLoop.h \
1850 tests/testMain.cc \
1851 tests/stub_main_cc.cc \
1852 tests/stub_ipc_Forwarder.cc \
1853 time.cc \
a553a5a3 1854 tools.cc \
1855 tunnel.cc \
d5d5493b 1856 MemStore.cc \
a553a5a3 1857 url.cc \
1858 URLScheme.cc \
1859 urn.cc \
a553a5a3 1860 wccp2.cc \
1861 whois.cc \
9c8434f6 1862 $(WIN32_SOURCE) \
a553a5a3 1863 wordlist.cc
1864nodist_tests_testEventLoop_SOURCES = \
4b981814 1865 $(BUILT_SOURCES)
a553a5a3 1866tests_testEventLoop_LDADD = \
62a0ef44
AJ
1867 $(AUTH_ACL_LIBS) \
1868 ident/libident.la \
1869 acl/libacls.la \
1870 eui/libeui.la \
1871 acl/libstate.la \
1872 $(AUTH_LIBS) \
1873 acl/libapi.la \
1874 base/libbase.la \
1875 libsquid.la \
1876 ip/libip.la \
1877 fs/libfs.la \
1878 ipc/libipc.la \
1879 mgr/libmgr.la \
0c3d3f65 1880 anyp/libanyp.la \
65f92818 1881 $(SNMP_LIBS) \
9b5c4a9a 1882 icmp/libicmp.la icmp/libicmp-core.la \
ec41b64c 1883 comm/libcomm.la \
82b7abe3 1884 log/liblog.la \
38e16f92 1885 format/libformat.la \
3ae8895c 1886 $(REPL_OBJS) \
65f92818 1887 $(ADAPTATION_LIBS) \
88bfe098 1888 $(ESI_LIBS) \
95d2589c 1889 $(SSL_LIBS) \
25f98340
AJ
1890 $(top_builddir)/lib/libmisccontainers.la \
1891 $(top_builddir)/lib/libmiscencoding.la \
1892 $(top_builddir)/lib/libmiscutil.la \
d5d5493b 1893 $(DISK_OS_LIBS) \
3ae8895c 1894 $(REGEXLIB) \
3ae8895c
A
1895 $(SQUID_CPPUNIT_LIBS) \
1896 $(SQUID_CPPUNIT_LA) \
1897 $(SSLLIB) \
1898 $(KRB5LIBS) \
0f1173d4 1899 $(COMPAT_LIB) \
3ae8895c 1900 $(XTRA_LIBS)
a553a5a3 1901tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
25f98340 1902tests_testEventLoop_DEPENDENCIES = \
3ae8895c
A
1903 $(REPL_OBJS) \
1904 $(SQUID_CPPUNIT_LA)
62ee09ca 1905
f24583c1 1906tests_test_http_range_SOURCES = \
5817ee13 1907 $(ACL_REGISTRATION_SOURCES) \
5f8252d2 1908 BodyPipe.cc \
f24583c1 1909 cache_cf.cc \
1b26be8f 1910 ProtoPort.cc \
1911 ProtoPort.h \
f24583c1 1912 cache_manager.cc \
1913 CacheDigest.cc \
1914 carp.cc \
1915 cbdata.cc \
81c07a23 1916 ChunkedCodingParser.cc \
f24583c1 1917 client_db.cc \
1918 client_side.cc \
1919 client_side_reply.cc \
1920 client_side_request.cc \
281422f8 1921 ClientInfo.h \
f24583c1 1922 clientStream.cc \
f24583c1 1923 ConfigOption.cc \
1924 ConfigParser.cc \
96c2bb61
AR
1925 CpuAffinityMap.cc \
1926 CpuAffinityMap.h \
1927 CpuAffinitySet.cc \
1928 CpuAffinitySet.h \
f24583c1 1929 debug.cc \
1930 $(DELAY_POOL_SOURCE) \
1931 disk.cc \
e1f7507e
AJ
1932 dlink.h \
1933 dlink.cc \
f24583c1 1934 $(DNSSOURCE) \
f24583c1 1935 errorpage.cc \
f24583c1 1936 ETag.cc \
62a0ef44 1937 event.cc \
f24583c1 1938 external_acl.cc \
1939 ExternalACLEntry.cc \
62a0ef44 1940 FadingCounter.cc \
f24583c1 1941 fd.cc \
1942 fde.cc \
1943 forward.cc \
1944 fqdncache.cc \
1945 ftp.cc \
f24583c1 1946 gopher.cc \
1947 helper.cc \
48d54e4d
AJ
1948 HelperChildConfig.h \
1949 HelperChildConfig.cc \
bbaf2685 1950 hier_code.h \
f24583c1 1951 $(HTCPSOURCE) \
1952 http.cc \
1953 HttpBody.cc \
1954 HttpHdrCc.cc \
1955 HttpHdrContRange.cc \
1956 HttpHdrRange.cc \
1957 HttpHdrSc.cc \
1958 HttpHdrScTarget.cc \
1959 HttpHeader.cc \
1960 HttpHeaderTools.cc \
1961 HttpMsg.cc \
4c14658e
AJ
1962 HttpParser.cc \
1963 HttpParser.h \
f24583c1 1964 HttpReply.cc \
1965 HttpRequest.cc \
1966 HttpRequestMethod.cc \
1967 HttpStatusLine.cc \
f24583c1 1968 icp_v2.cc \
1969 icp_v3.cc \
f24583c1 1970 int.cc \
1971 internal.cc \
b5d712b5 1972 $(IPC_SOURCE) \
f24583c1 1973 ipcache.cc \
1974 list.cc \
62a0ef44
AJ
1975 MemBuf.cc \
1976 MemObject.cc \
f24583c1 1977 mem.cc \
1978 mem_node.cc \
f24583c1 1979 mime.cc \
0f9db2d6 1980 mime_header.cc \
f24583c1 1981 multicast.cc \
1982 neighbors.cc \
62a0ef44 1983 Packer.cc \
f24583c1 1984 Parsing.cc \
1985 peer_digest.cc \
9ca29d23 1986 peer_proxy_negotiate_auth.cc \
f24583c1 1987 peer_select.cc \
f4a21650
HN
1988 peer_sourcehash.cc \
1989 peer_userhash.cc \
f24583c1 1990 pconn.cc \
1991 redirect.cc \
1992 refresh.cc \
aa839030 1993 RemovalPolicy.cc \
f24583c1 1994 Server.cc \
1995 $(SNMP_SOURCE) \
a98bcbee
AJ
1996 SquidMath.h \
1997 SquidMath.cc \
f24583c1 1998 stat.cc \
1999 StatHist.cc \
2000 stmem.cc \
2001 store.cc \
2002 store_client.cc \
2003 store_digest.cc \
2004 store_dir.cc \
2005 store_key_md5.cc \
2006 store_io.cc \
2007 store_log.cc \
2008 store_rebuild.cc \
2009 store_swapin.cc \
2010 store_swapmeta.cc \
2011 store_swapout.cc \
2012 StoreFileSystem.cc \
2013 StoreIOState.cc \
2014 StoreMeta.cc \
2015 StoreMetaMD5.cc \
2016 StoreMetaSTD.cc \
47f6e231 2017 StoreMetaSTDLFS.cc \
f24583c1 2018 StoreMetaUnpacker.cc \
2019 StoreMetaURL.cc \
2020 StoreMetaVary.cc \
2021 StoreSwapLogData.cc \
30abd221 2022 String.cc \
f24583c1 2023 SwapDir.cc \
62a0ef44
AJ
2024 tests/test_http_range.cc \
2025 tests/stub_ipc_Forwarder.cc \
2026 tests/stub_main_cc.cc \
d5d5493b 2027 tests/stub_MemStore.cc \
f24583c1 2028 time.cc \
2029 tools.cc \
2030 tunnel.cc \
2031 url.cc \
2032 URLScheme.cc \
2033 urn.cc \
62288514 2034 wccp2.cc \
f24583c1 2035 whois.cc \
9c8434f6 2036 $(WIN32_SOURCE) \
62a0ef44 2037 wordlist.cc
f24583c1 2038nodist_tests_test_http_range_SOURCES = \
4b981814 2039 $(BUILT_SOURCES)
f24583c1 2040tests_test_http_range_LDADD = \
62a0ef44
AJ
2041 $(AUTH_ACL_LIBS) \
2042 ident/libident.la \
2043 acl/libacls.la \
2044 eui/libeui.la \
2045 acl/libstate.la \
2046 $(AUTH_LIBS) \
2047 acl/libapi.la \
2048 base/libbase.la \
2049 libsquid.la \
2050 ip/libip.la \
2051 fs/libfs.la \
2052 ipc/libipc.la \
2053 mgr/libmgr.la \
0c3d3f65 2054 anyp/libanyp.la \
65f92818 2055 $(SNMP_LIBS) \
9b5c4a9a 2056 icmp/libicmp.la icmp/libicmp-core.la \
ec41b64c 2057 comm/libcomm.la \
82b7abe3 2058 log/liblog.la \
38e16f92 2059 format/libformat.la \
3ae8895c 2060 $(REPL_OBJS) \
65f92818 2061 $(ADAPTATION_LIBS) \
88bfe098 2062 $(ESI_LIBS) \
95d2589c 2063 $(SSL_LIBS) \
25f98340
AJ
2064 $(top_builddir)/lib/libmisccontainers.la \
2065 $(top_builddir)/lib/libmiscencoding.la \
2066 $(top_builddir)/lib/libmiscutil.la \
3ae8895c 2067 $(REGEXLIB) \
3ae8895c
A
2068 $(SQUID_CPPUNIT_LIBS) \
2069 $(SQUID_CPPUNIT_LA) \
2070 $(SSLLIB) \
2071 $(KRB5LIBS) \
0f1173d4 2072 $(COMPAT_LIB) \
3ae8895c 2073 $(XTRA_LIBS)
36dca327 2074tests_test_http_range_LDFLAGS = $(LIBADD_DL)
f24583c1 2075tests_test_http_range_DEPENDENCIES = \
3ae8895c 2076 $(SQUID_CPPUNIT_LA)
f24583c1 2077
25b6a907 2078
4c14658e
AJ
2079tests_testHttpParser_SOURCES = \
2080 Debug.h \
2081 HttpParser.cc \
2082 HttpParser.h \
2083 MemBuf.cc \
2084 MemBuf.h \
2085 mem.cc \
ba465675 2086 String.cc \
4c14658e 2087 structs.h \
ba465675 2088 tests/stub_cache_cf.cc \
4c14658e
AJ
2089 tests/stub_cache_manager.cc \
2090 tests/stub_debug.cc \
2091 tests/stub_event.cc \
2092 tests/stub_HelperChildConfig.cc \
2093 tests/testHttpParser.cc \
2094 tests/testHttpParser.h \
2095 tests/testMain.cc \
ba465675
DK
2096 time.cc \
2097 wordlist.cc
4c14658e
AJ
2098nodist_tests_testHttpParser_SOURCES = \
2099 $(TESTSOURCES)
2100tests_testHttpParser_LDADD= \
2101 SquidConfig.o \
2102 base/libbase.la \
2103 ip/libip.la \
2104 $(top_builddir)/lib/libmiscutil.la \
2105 $(SQUID_CPPUNIT_LIBS) \
2106 $(COMPAT_LIB) \
2107 $(XTRA_LIBS)
2108tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2109tests_testHttpParser_DEPENDENCIES = \
2110 $(SQUID_CPPUNIT_LA)
2111
c21ad0f5 2112## Tests of the HttpRequest module.
2113tests_testHttpRequest_SOURCES = \
5817ee13 2114 $(ACL_REGISTRATION_SOURCES) \
4c14658e
AJ
2115 HttpParser.cc \
2116 HttpParser.h \
985c86bc 2117 HttpRequest.cc \
2118 HttpRequestMethod.cc \
2119 mem.cc \
30abd221 2120 String.cc \
0e566514 2121 tests/testHttpRequest.h \
985c86bc 2122 tests/testHttpRequest.cc \
0e566514 2123 tests/testHttpRequestMethod.h \
985c86bc 2124 tests/testHttpRequestMethod.cc \
2125 tests/testMain.cc \
d3578172 2126 tests/stub_main_cc.cc \
d37e93a8 2127 tests/stub_ipc_Forwarder.cc \
985c86bc 2128 time.cc \
5f8252d2 2129 BodyPipe.cc \
c21ad0f5 2130 cache_manager.cc \
2131 cache_cf.cc \
25f98340 2132 debug.cc \
1b26be8f 2133 ProtoPort.cc \
2134 ProtoPort.h \
c21ad0f5 2135 CacheDigest.cc \
2136 carp.cc \
2137 cbdata.cc \
81c07a23 2138 ChunkedCodingParser.cc \
c21ad0f5 2139 client_db.cc \
2140 client_side.cc \
2141 client_side_reply.cc \
2142 client_side_request.cc \
281422f8 2143 ClientInfo.h \
c21ad0f5 2144 clientStream.cc \
c21ad0f5 2145 ConfigOption.cc \
2146 ConfigParser.cc \
96c2bb61
AR
2147 CpuAffinityMap.cc \
2148 CpuAffinityMap.h \
2149 CpuAffinitySet.cc \
2150 CpuAffinitySet.h \
c21ad0f5 2151 $(DELAY_POOL_SOURCE) \
c21ad0f5 2152 disk.cc \
e1f7507e
AJ
2153 dlink.h \
2154 dlink.cc \
c21ad0f5 2155 $(DNSSOURCE) \
c21ad0f5 2156 errorpage.cc \
c21ad0f5 2157 ETag.cc \
2158 external_acl.cc \
2159 ExternalACLEntry.cc \
2160 fd.cc \
2161 fde.cc \
2162 forward.cc \
2163 fqdncache.cc \
2164 ftp.cc \
c21ad0f5 2165 gopher.cc \
2166 helper.cc \
48d54e4d
AJ
2167 HelperChildConfig.h \
2168 HelperChildConfig.cc \
bbaf2685 2169 hier_code.h \
1edbd3b6 2170 $(HTCPSOURCE) \
c21ad0f5 2171 http.cc \
2172 HttpBody.cc \
2173 HttpHeader.cc \
2174 HttpHeaderTools.cc \
2175 HttpHdrCc.cc \
2176 HttpHdrContRange.cc \
2177 HttpHdrRange.cc \
2178 HttpHdrSc.cc \
2179 HttpHdrScTarget.cc \
2180 HttpMsg.cc \
c21ad0f5 2181 HttpReply.cc \
2182 HttpStatusLine.cc \
c21ad0f5 2183 icp_v2.cc \
2184 icp_v3.cc \
b5d712b5 2185 $(IPC_SOURCE) \
c21ad0f5 2186 ipcache.cc \
c21ad0f5 2187 int.cc \
2188 internal.cc \
2189 list.cc \
c21ad0f5 2190 multicast.cc \
c21ad0f5 2191 mem_node.cc \
2192 MemBuf.cc \
2193 MemObject.cc \
2194 mime.cc \
0f9db2d6 2195 mime_header.cc \
c21ad0f5 2196 neighbors.cc \
c21ad0f5 2197 Packer.cc \
2198 Parsing.cc \
2199 pconn.cc \
2200 peer_digest.cc \
9ca29d23 2201 peer_proxy_negotiate_auth.cc \
c21ad0f5 2202 peer_select.cc \
f4a21650
HN
2203 peer_sourcehash.cc \
2204 peer_userhash.cc \
c21ad0f5 2205 redirect.cc \
2206 refresh.cc \
aa839030 2207 RemovalPolicy.cc \
c21ad0f5 2208 Server.cc \
2209 $(SNMP_SOURCE) \
a98bcbee
AJ
2210 SquidMath.h \
2211 SquidMath.cc \
c21ad0f5 2212 stat.cc \
2213 StatHist.cc \
2214 stmem.cc \
2215 store.cc \
2216 store_client.cc \
2217 store_digest.cc \
2218 store_dir.cc \
2219 store_io.cc \
2220 store_key_md5.cc \
2221 store_log.cc \
2222 store_rebuild.cc \
2223 store_swapin.cc \
2224 store_swapmeta.cc \
2225 store_swapout.cc \
2226 StoreFileSystem.cc \
2227 StoreIOState.cc \
2228 StoreMeta.cc \
2229 StoreMetaMD5.cc \
2230 StoreMetaSTD.cc \
47f6e231 2231 StoreMetaSTDLFS.cc \
c21ad0f5 2232 StoreMetaUnpacker.cc \
2233 StoreMetaURL.cc \
2234 StoreMetaVary.cc \
2235 StoreSwapLogData.cc \
62a0ef44 2236 event.cc \
c21ad0f5 2237 tools.cc \
2238 tunnel.cc \
68353d5a 2239 SwapDir.cc MemStore.cc \
c21ad0f5 2240 url.cc \
985c86bc 2241 URLScheme.cc \
c21ad0f5 2242 urn.cc \
62288514 2243 wccp2.cc \
c21ad0f5 2244 whois.cc \
8277060a 2245 FadingCounter.cc \
9c8434f6 2246 $(WIN32_SOURCE) \
c21ad0f5 2247 wordlist.cc
2248nodist_tests_testHttpRequest_SOURCES = \
4b981814 2249 $(BUILT_SOURCES)
c21ad0f5 2250tests_testHttpRequest_LDADD = \
62a0ef44
AJ
2251 $(AUTH_ACL_LIBS) \
2252 ident/libident.la \
2253 acl/libacls.la \
2254 eui/libeui.la \
2255 acl/libstate.la \
2256 $(AUTH_LIBS) \
2257 acl/libapi.la \
2258 base/libbase.la \
2259 libsquid.la \
2260 ip/libip.la \
2261 fs/libfs.la \
2262 ipc/libipc.la \
2263 mgr/libmgr.la \
0c3d3f65 2264 anyp/libanyp.la \
65f92818 2265 $(SNMP_LIBS) \
9b5c4a9a 2266 icmp/libicmp.la icmp/libicmp-core.la \
ec41b64c 2267 comm/libcomm.la \
82b7abe3 2268 log/liblog.la \
38e16f92 2269 format/libformat.la \
3ae8895c 2270 $(REPL_OBJS) \
65f92818 2271 $(ADAPTATION_LIBS) \
88bfe098 2272 $(ESI_LIBS) \
95d2589c 2273 $(SSL_LIBS) \
25f98340
AJ
2274 $(top_builddir)/lib/libmisccontainers.la \
2275 $(top_builddir)/lib/libmiscencoding.la \
2276 $(top_builddir)/lib/libmiscutil.la \
d5d5493b 2277 $(DISK_OS_LIBS) \
3ae8895c 2278 $(REGEXLIB) \
3ae8895c
A
2279 $(SQUID_CPPUNIT_LIBS) \
2280 $(SQUID_CPPUNIT_LA) \
2281 $(SSLLIB) \
2282 $(KRB5LIBS) \
0f1173d4 2283 $(COMPAT_LIB) \
3ae8895c 2284 $(XTRA_LIBS)
c21ad0f5 2285tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
25f98340 2286tests_testHttpRequest_DEPENDENCIES = \
3ae8895c
A
2287 $(REPL_OBJS) \
2288 $(SQUID_CPPUNIT_LA)
c21ad0f5 2289
62a0ef44
AJ
2290## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2291## first line - what we are testing.
2292tests_testStore_SOURCES= \
c8f4eac4 2293 CacheDigest.cc \
cf65b4fb
AJ
2294 cbdata.cc \
2295 ClientInfo.h \
2296 ConfigOption.cc \
d295d770 2297 ConfigParser.cc \
cf65b4fb
AJ
2298 $(DELAY_POOL_SOURCE) \
2299 disk.cc \
2300 DiskIO/ReadRequest.cc \
2301 DiskIO/WriteRequest.cc \
2302 ETag.cc \
2303 event.cc \
8ff3fa2e 2304 EventLoop.cc \
cf65b4fb
AJ
2305 filemap.cc \
2306 HttpHdrCc.cc \
2307 HttpHdrContRange.cc \
2308 HttpHdrRange.cc \
2309 HttpHdrSc.cc \
2310 HttpHdrScTarget.cc \
2311 HttpHeaderTools.cc \
2312 HttpHeader.cc \
25b6a907 2313 HttpMsg.cc \
cf65b4fb
AJ
2314 HttpRequestMethod.cc \
2315 int.cc \
2316 list.cc \
2317 mem.cc \
2318 mem_node.cc \
2319 MemBuf.cc \
2320 Packer.cc \
2321 Parsing.cc \
aa839030 2322 RemovalPolicy.cc \
cf65b4fb
AJ
2323 refresh.cc \
2324 StatHist.cc \
2325 stmem.cc \
c8f4eac4 2326 store.cc \
c8f4eac4 2327 store_dir.cc \
7c8931a1
AJ
2328 store_io.cc \
2329 store_swapout.cc \
2330 StoreIOState.cc \
cf65b4fb
AJ
2331 StoreMeta.cc \
2332 StoreMetaMD5.cc \
2333 StoreMetaSTD.cc \
2334 StoreMetaSTDLFS.cc \
2335 StoreMetaUnpacker.cc \
2336 StoreMetaURL.cc \
2337 StoreMetaVary.cc \
2338 StoreSwapLogData.cc \
c8f4eac4 2339 store_key_md5.cc \
cf65b4fb 2340 String.cc \
c8f4eac4 2341 SwapDir.cc \
cf65b4fb
AJ
2342 tests/CapturingStoreEntry.h \
2343 tests/stub_access_log.cc \
62a0ef44
AJ
2344 tests/stub_acl.cc \
2345 tests/stub_cache_cf.cc \
cf65b4fb
AJ
2346 tests/stub_cache_manager.cc \
2347 tests/stub_client_side_request.cc \
c8f4eac4 2348 tests/stub_comm.cc \
25f98340 2349 tests/stub_debug.cc \
cf65b4fb 2350 tests/stub_DiskIOModule.cc \
62a0ef44 2351 tests/stub_errorpage.cc \
cf65b4fb
AJ
2352 tests/stub_fd.cc \
2353 tests/stub_helper.cc \
2354 tests/stub_HelperChildConfig.cc \
2355 tests/stub_http.cc \
2356 tests/stub_HttpReply.cc \
62a0ef44 2357 tests/stub_HttpRequest.cc \
ba465675 2358 tests/stub_libcomm.cc \
cf65b4fb 2359 tests/stub_MemObject.cc \
d5d5493b 2360 tests/stub_MemStore.cc \
cf65b4fb
AJ
2361 tests/stub_mime.cc \
2362 tests/stub_Port.cc \
b1b15292 2363 tests/stub_store_client.cc \
cf65b4fb
AJ
2364 tests/stub_store_rebuild.cc \
2365 tests/stub_store_swapout.cc \
b1b15292 2366 tests/stub_tools.cc \
cf65b4fb
AJ
2367 tests/stub_UdsOp.cc \
2368 tests/testMain.cc \
2369 tests/testStore.cc \
2370 tests/testStore.h \
2371 tests/testStoreEntryStream.cc \
2372 tests/testStoreEntryStream.h \
2373 tests/testStoreController.cc \
2374 tests/testStoreController.h \
2375 tests/testStoreHashIndex.cc \
2376 tests/testStoreHashIndex.h \
8ff3fa2e 2377 tests/testStoreSupport.cc \
2378 tests/testStoreSupport.h \
cf65b4fb
AJ
2379 tests/TestSwapDir.cc \
2380 tests/TestSwapDir.h \
985c86bc 2381 time.cc \
cf65b4fb 2382 url.cc \
985c86bc 2383 URLScheme.cc \
cf65b4fb 2384 wordlist.cc
c8f4eac4 2385
95329c22 2386nodist_tests_testStore_SOURCES= \
4b981814 2387 $(TESTSOURCES) \
a98bcbee
AJ
2388 SquidMath.cc \
2389 SquidMath.h \
4b981814 2390 swap_log_op.cc
95329c22 2391
c8f4eac4 2392tests_testStore_LDADD= \
62a0ef44
AJ
2393 $(AUTH_ACL_LIBS) \
2394 ident/libident.la \
2395 acl/libacls.la \
2396 eui/libeui.la \
2397 acl/libstate.la \
2398 $(AUTH_LIBS) \
2399 acl/libapi.la \
2400 base/libbase.la \
2401 libsquid.la \
2402 ip/libip.la \
2403 fs/libfs.la \
62a0ef44 2404 mgr/libmgr.la \
d5d5493b 2405 ipc/libipc.la \
0c3d3f65 2406 anyp/libanyp.la \
25f98340
AJ
2407 $(top_builddir)/lib/libmisccontainers.la \
2408 $(top_builddir)/lib/libmiscencoding.la \
2409 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
2410 $(REGEXLIB) \
2411 $(SQUID_CPPUNIT_LIBS) \
2412 $(SSLLIB) \
8822ebee
AR
2413 CommCalls.o \
2414 DnsLookupDetails.o \
0f1173d4 2415 $(COMPAT_LIB) \
3ae8895c 2416 $(XTRA_LIBS)
c8f4eac4 2417tests_testStore_LDFLAGS = $(LIBADD_DL)
25f98340 2418tests_testStore_DEPENDENCIES = \
3ae8895c 2419 $(SQUID_CPPUNIT_LA)
30abd221 2420
281422f8
AJ
2421## string needs mem.cc.
2422## mem.cc needs ClientInfo.h
2423## libsquid pulls in SquidConfig and children. stub them.
95329c22 2424tests_testString_SOURCES = \
281422f8 2425 ClientInfo.h \
c21ad0f5 2426 mem.cc \
d5d5493b 2427 MemBuf.cc \
30abd221 2428 String.cc \
c21ad0f5 2429 tests/testMain.cc \
2430 tests/testString.cc \
2431 tests/testString.h \
d5d5493b 2432 tests/stub_cache_cf.cc \
b707cdeb 2433 tests/stub_cache_manager.cc \
25f98340 2434 tests/stub_debug.cc \
48d54e4d 2435 tests/stub_HelperChildConfig.cc \
d5d5493b
DK
2436 time.cc \
2437 wordlist.cc
95329c22
HN
2438nodist_tests_testString_SOURCES = \
2439 $(TESTSOURCES)
2440tests_testString_LDADD = \
65f92818
AJ
2441 base/libbase.la \
2442 libsquid.la \
2443 ip/libip.la \
25f98340 2444 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
2445 $(REGEXLIB) \
2446 $(SQUID_CPPUNIT_LIBS) \
2447 $(SSLLIB) \
0f1173d4 2448 $(COMPAT_LIB) \
3ae8895c 2449 $(XTRA_LIBS)
c21ad0f5 2450tests_testString_LDFLAGS = $(LIBADD_DL)
25f98340 2451tests_testString_DEPENDENCIES = \
3ae8895c 2452 $(SQUID_CPPUNIT_LA)
c21ad0f5 2453
62a0ef44
AJ
2454SWAP_TEST_DS =\
2455 repl_modules.o \
2456 $(DISK_LIBS) \
2457 $(AUTH_ACL_LIBS) \
2458 ident/libident.la \
2459 acl/libacls.la \
2460 eui/libeui.la \
2461 acl/libstate.la \
2462 $(AUTH_LIBS) \
2463 acl/libapi.la \
2464 base/libbase.la \
2465 libsquid.la \
2466 ip/libip.la \
2467 fs/libfs.la \
2468 ipc/libipc.la \
2469 mgr/libmgr.la \
2470 $(REPL_OBJS) \
2471 $(SQUID_CPPUNIT_LA)
2472
2473tests_testUfs_SOURCES = \
2474 tests/testUfs.cc \
2475 tests/testMain.cc \
2476 tests/testUfs.h \
2477 tests/stub_cache_manager.cc \
1b76e6c1 2478 tests/stub_client_db.cc \
62a0ef44 2479 tests/stub_HelperChildConfig.cc \
1b76e6c1
AJ
2480 tests/stub_icp.cc \
2481 tests/stub_ipc.cc \
d5d5493b 2482 tests/stub_MemStore.cc \
1b76e6c1 2483 tests/stub_pconn.cc \
62a0ef44 2484 tests/stub_Port.cc \
62a0ef44 2485 tests/stub_UdsOp.cc \
c8f4eac4 2486 tests/stub_internal.cc \
3fcdb6b9 2487 tests/stub_store_rebuild.cc \
c8f4eac4 2488 fd.cc \
2489 disk.cc \
2490 filemap.cc \
2491 HttpBody.cc \
c8f4eac4 2492 HttpReply.cc \
2493 HttpStatusLine.cc \
2494 int.cc \
2495 list.cc \
2496 MemObject.cc \
c8f4eac4 2497 StoreSwapLogData.cc \
2498 StoreIOState.cc \
2499 StoreMeta.cc \
2500 StoreMetaMD5.cc \
2501 StoreMetaSTD.cc \
47f6e231 2502 StoreMetaSTDLFS.cc \
c8f4eac4 2503 StoreMetaUnpacker.cc \
2504 StoreMetaURL.cc \
2505 StoreMetaVary.cc \
2506 StoreFileSystem.cc \
2507 store_io.cc \
2508 store_swapout.cc \
2509 store_swapmeta.cc \
a65d4fbb 2510 $(UNLINKDSOURCE) \
e3d21ec7 2511 $(WIN32_SOURCE) \
62a0ef44
AJ
2512 event.cc \
2513 $(DELAY_POOL_SOURCE) \
2514 CacheDigest.cc \
2515 ConfigParser.cc \
2516 EventLoop.cc \
2517 HttpMsg.cc \
2518 RemovalPolicy.cc \
2519 store_dir.cc \
2520 store.cc \
2521 HttpRequestMethod.cc \
2522 store_key_md5.cc \
2523 Parsing.cc \
2524 ConfigOption.cc \
2525 SwapDir.cc \
2526 tests/stub_acl.cc \
2527 tests/stub_cache_cf.cc \
2528 tests/stub_helper.cc \
2529 cbdata.cc \
2530 String.cc \
62a0ef44
AJ
2531 tests/stub_debug.cc \
2532 tests/stub_client_side_request.cc \
2533 tests/stub_http.cc \
2534 mem_node.cc \
2535 stmem.cc \
2536 tests/stub_mime.cc \
2537 HttpHeaderTools.cc \
2538 HttpHeader.cc \
2539 mem.cc \
2540 ClientInfo.h \
2541 MemBuf.cc \
2542 HttpHdrContRange.cc \
2543 Packer.cc \
2544 HttpHdrCc.cc \
2545 HttpHdrSc.cc \
2546 HttpHdrScTarget.cc \
2547 url.cc \
2548 StatHist.cc \
2549 HttpHdrRange.cc \
2550 ETag.cc \
2551 tests/stub_errorpage.cc \
2552 tests/stub_HttpRequest.cc \
2553 tests/stub_access_log.cc \
2554 refresh.cc \
2555 tests/stub_store_client.cc \
2556 tests/stub_tools.cc \
2557 tests/testStoreSupport.cc \
2558 tests/testStoreSupport.h \
2559 time.cc \
2560 URLScheme.cc \
2561 wordlist.cc \
c8f4eac4 2562 $(DISKIO_SOURCE)
2563
95329c22 2564nodist_tests_testUfs_SOURCES = \
62a0ef44
AJ
2565 $(TESTSOURCES) \
2566 $(DISKIO_GEN_SOURCE) \
a98bcbee
AJ
2567 SquidMath.cc \
2568 SquidMath.h \
4b981814 2569 swap_log_op.cc
95329c22 2570tests_testUfs_LDADD = \
8822ebee
AR
2571 CommCalls.o \
2572 DnsLookupDetails.o \
62a0ef44
AJ
2573 $(AUTH_ACL_LIBS) \
2574 ident/libident.la \
2575 acl/libacls.la \
2576 eui/libeui.la \
2577 acl/libstate.la \
2578 $(AUTH_LIBS) \
2579 acl/libapi.la \
62a0ef44
AJ
2580 libsquid.la \
2581 ip/libip.la \
2582 fs/libfs.la \
62a0ef44 2583 mgr/libmgr.la \
25f98340 2584 $(REPL_OBJS) \
1b76e6c1
AJ
2585 acl/libacls.la \
2586 anyp/libanyp.la \
25f98340
AJ
2587 $(DISK_LIBS) \
2588 $(DISK_OS_LIBS) \
2589 acl/libapi.la \
d5d5493b 2590 ipc/libipc.la \
1b76e6c1
AJ
2591 $(SSL_LIBS) \
2592 comm/libcomm.la \
d5d5493b 2593 base/libbase.la \
1b76e6c1 2594 ip/libip.la \
25f98340
AJ
2595 $(top_builddir)/lib/libmisccontainers.la \
2596 $(top_builddir)/lib/libmiscencoding.la \
2597 $(top_builddir)/lib/libmiscutil.la \
2598 $(REGEXLIB) \
2599 $(SQUID_CPPUNIT_LIBS) \
2600 $(SSLLIB) \
2601 $(COMPAT_LIB) \
3ae8895c 2602 $(XTRA_LIBS)
c8f4eac4 2603tests_testUfs_LDFLAGS = $(LIBADD_DL)
2604tests_testUfs_DEPENDENCIES = \
2605 $(SWAP_TEST_DS)
2606
e2851fe7 2607tests_testRock_SOURCES = \
d5d5493b 2608 cbdata.cc \
a91dbad6 2609 CacheDigest.cc \
d5d5493b
DK
2610 ConfigOption.cc \
2611 ConfigParser.cc \
2612 disk.cc \
2613 ETag.cc \
2614 event.cc \
2615 fd.cc \
2616 HttpHdrCc.cc \
2617 HttpHdrContRange.cc \
2618 HttpHdrRange.cc \
2619 HttpHdrSc.cc \
2620 HttpHdrScTarget.cc \
2621 HttpHeader.cc \
2622 HttpHeaderTools.cc \
2623 HttpMsg.cc \
2624 HttpRequestMethod.cc \
2625 int.cc \
2626 mem.cc \
2627 MemBuf.cc \
2628 MemObject.cc \
2629 mem_node.cc \
2630 Packer.cc \
2631 Parsing.cc \
2632 StatHist.cc \
2633 stmem.cc \
2634 store.cc \
2635 StoreIOState.cc \
2636 StoreMeta.cc \
2637 StoreMetaMD5.cc \
2638 StoreMetaSTD.cc \
2639 StoreMetaSTDLFS.cc \
2640 StoreMetaURL.cc \
2641 StoreMetaUnpacker.cc \
2642 StoreMetaVary.cc \
2643 store_dir.cc \
2644 store_io.cc \
2645 store_key_md5.cc \
2646 store_swapmeta.cc \
2647 store_swapout.cc \
2648 String.cc \
2649 SwapDir.cc \
e2851fe7
AR
2650 tests/testRock.cc \
2651 tests/testMain.cc \
2652 tests/testRock.h \
d5d5493b
DK
2653 tests/stub_access_log.cc \
2654 tests/stub_cache_cf.cc \
e2851fe7 2655 tests/stub_cache_manager.cc \
55853481 2656 tests/stub_client_side_request.cc \
d5d5493b
DK
2657 tests/stub_comm.cc \
2658 tests/stub_CommIO.cc \
2659 tests/stub_debug.cc \
2660 tests/stub_errorpage.cc \
e2851fe7 2661 tests/stub_HelperChildConfig.cc \
d5d5493b
DK
2662 tests/stub_http.cc \
2663 tests/stub_HttpReply.cc \
2664 tests/stub_HttpRequest.cc \
b3506d43 2665 tests/stub_ipc_TypedMsgHdr.cc \
ba465675 2666 tests/stub_libcomm.cc \
d5d5493b
DK
2667 tests/stub_MemStore.cc \
2668 tests/stub_mime.cc \
e2851fe7 2669 tests/stub_Port.cc \
d5d5493b
DK
2670 tests/stub_store_client.cc \
2671 tests/stub_tools.cc \
e2851fe7 2672 tests/stub_UdsOp.cc \
d5d5493b
DK
2673 time.cc \
2674 url.cc \
2675 URLScheme.cc \
bc29a9b4
DK
2676 wordlist.cc \
2677 $(DELAY_POOL_SOURCE)
e2851fe7
AR
2678nodist_tests_testRock_SOURCES = \
2679 swap_log_op.cc \
e2851fe7 2680 SquidMath.cc \
d5d5493b
DK
2681 SquidMath.h \
2682 $(TESTSOURCES)
e2851fe7 2683tests_testRock_LDADD = \
d5d5493b
DK
2684 anyp/libanyp.la \
2685 libsquid.la \
2686 ip/libip.la \
2687 $(AUTH_LIBS) \
e2851fe7
AR
2688 $(COMMON_LIBS) \
2689 $(REPL_OBJS) \
2690 $(DISK_LIBS) \
2691 $(DISK_OS_LIBS) \
d5d5493b 2692 acl/libacls.la \
e2851fe7 2693 acl/libapi.la \
d5d5493b
DK
2694 acl/libstate.la \
2695 eui/libeui.la \
2696 mgr/libmgr.la \
d5d5493b 2697 base/libbase.la \
e2851fe7
AR
2698 $(top_builddir)/lib/libmisccontainers.la \
2699 $(top_builddir)/lib/libmiscencoding.la \
2700 $(top_builddir)/lib/libmiscutil.la \
2701 $(REGEXLIB) \
2702 $(SQUID_CPPUNIT_LIBS) \
2703 $(SSLLIB) \
2704 $(COMPAT_LIB) \
2705 $(XTRA_LIBS)
2706tests_testRock_LDFLAGS = $(LIBADD_DL)
2707tests_testRock_DEPENDENCIES = \
2708 $(SWAP_TEST_DS)
2709
95329c22
HN
2710tests_testCoss_SOURCES = \
2711 tests/testCoss.cc \
c8f4eac4 2712 tests/testMain.cc \
2713 tests/testCoss.h \
b707cdeb 2714 tests/stub_cache_manager.cc \
ba465675 2715 tests/stub_client_db.cc \
25f98340 2716 tests/stub_debug.cc \
48d54e4d 2717 tests/stub_HelperChildConfig.cc \
62a0ef44 2718 tests/stub_internal.cc \
ba465675
DK
2719 tests/stub_ipc.cc \
2720 tests/stub_pconn.cc \
62a0ef44
AJ
2721 tests/stub_store_rebuild.cc \
2722 fd.cc \
2723 disk.cc \
2724 filemap.cc \
2725 HttpBody.cc \
2726 HttpReply.cc \
2727 HttpStatusLine.cc \
2728 int.cc \
2729 list.cc \
2730 MemObject.cc \
2731 StoreSwapLogData.cc \
2732 StoreIOState.cc \
2733 StoreMeta.cc \
2734 StoreMetaMD5.cc \
2735 StoreMetaSTD.cc \
2736 StoreMetaSTDLFS.cc \
2737 StoreMetaUnpacker.cc \
2738 StoreMetaURL.cc \
2739 StoreMetaVary.cc \
2740 StoreFileSystem.cc \
2741 store_io.cc \
2742 store_swapout.cc \
2743 store_swapmeta.cc \
2744 $(UNLINKDSOURCE) \
2745 $(WIN32_SOURCE) \
2746 event.cc \
2747 $(DELAY_POOL_SOURCE) \
2748 CacheDigest.cc \
2749 ConfigParser.cc \
2750 EventLoop.cc \
2751 HttpMsg.cc \
2752 RemovalPolicy.cc \
2753 store_dir.cc \
2754 store.cc \
2755 HttpRequestMethod.cc \
2756 store_key_md5.cc \
2757 Parsing.cc \
2758 ConfigOption.cc \
2759 SwapDir.cc \
2760 tests/stub_acl.cc \
2761 tests/stub_cache_cf.cc \
2762 tests/stub_helper.cc \
2763 cbdata.cc \
2764 String.cc \
62a0ef44
AJ
2765 tests/stub_client_side_request.cc \
2766 tests/stub_http.cc \
2767 mem_node.cc \
2768 stmem.cc \
2769 tests/stub_mime.cc \
2770 HttpHeaderTools.cc \
2771 HttpHeader.cc \
2772 mem.cc \
2773 ClientInfo.h \
2774 MemBuf.cc \
2775 HttpHdrContRange.cc \
2776 Packer.cc \
2777 HttpHdrCc.cc \
2778 HttpHdrSc.cc \
2779 HttpHdrScTarget.cc \
2780 url.cc \
2781 StatHist.cc \
2782 HttpHdrRange.cc \
2783 ETag.cc \
2784 tests/stub_errorpage.cc \
2785 tests/stub_HttpRequest.cc \
2786 tests/stub_access_log.cc \
2787 refresh.cc \
d5d5493b
DK
2788 tests/stub_MemStore.cc \
2789 tests/stub_Port.cc \
62a0ef44
AJ
2790 tests/stub_store_client.cc \
2791 tests/stub_tools.cc \
d5d5493b 2792 tests/stub_UdsOp.cc \
62a0ef44
AJ
2793 tests/testStoreSupport.cc \
2794 tests/testStoreSupport.h \
2795 time.cc \
2796 URLScheme.cc \
2797 wordlist.cc \
2798 $(DISKIO_SOURCE)
2799
95329c22 2800nodist_tests_testCoss_SOURCES = \
5e943f64 2801 swap_log_op.cc \
defb3257
FC
2802 SquidMath.cc \
2803 SquidMath.h \
62a0ef44
AJ
2804 $(TESTSOURCES) \
2805 $(DISKIO_GEN_SOURCE)
95329c22 2806tests_testCoss_LDADD = \
d5d5493b 2807 anyp/libanyp.la \
9de55861 2808 libsquid.la \
25f98340 2809 $(REGEXLIB) \
62a0ef44
AJ
2810 $(AUTH_ACL_LIBS) \
2811 ident/libident.la \
2812 acl/libacls.la \
2813 eui/libeui.la \
2814 acl/libstate.la \
2815 $(AUTH_LIBS) \
2816 acl/libapi.la \
62a0ef44 2817 libsquid.la \
ba465675 2818 comm/libcomm.la \
62a0ef44
AJ
2819 ip/libip.la \
2820 fs/libfs.la \
62a0ef44 2821 mgr/libmgr.la \
25f98340
AJ
2822 $(REPL_OBJS) \
2823 $(DISK_LIBS) \
2824 $(DISK_OS_LIBS) \
1b76e6c1 2825 $(COMMON_LIBS) \
ba465675 2826 $(SSL_LIBS) \
25f98340 2827 acl/libapi.la \
d5d5493b
DK
2828 ipc/libipc.la \
2829 base/libbase.la \
25f98340
AJ
2830 $(top_builddir)/lib/libmisccontainers.la \
2831 $(top_builddir)/lib/libmiscencoding.la \
2832 $(top_builddir)/lib/libmiscutil.la \
2833 $(SQUID_CPPUNIT_LIBS) \
1b76e6c1 2834 $(REGEXLIB) \
3ae8895c 2835 $(SSLLIB) \
25f98340 2836 $(COMPAT_LIB) \
3ae8895c 2837 $(XTRA_LIBS)
c8f4eac4 2838tests_testCoss_LDFLAGS = $(LIBADD_DL)
2839tests_testCoss_DEPENDENCIES = \
2840 $(SWAP_TEST_DS)
2841
95329c22
HN
2842tests_testNull_SOURCES = \
2843 tests/testNull.cc \
c8f4eac4 2844 tests/testMain.cc \
2845 tests/testNull.h \
62a0ef44
AJ
2846 tests/stub_internal.cc \
2847 tests/stub_CommIO.cc \
2848 tests/stub_store_rebuild.cc \
2849 fd.cc \
2850 disk.cc \
2851 filemap.cc \
2852 HttpBody.cc \
2853 HttpReply.cc \
2854 HttpStatusLine.cc \
2855 int.cc \
2856 list.cc \
2857 MemObject.cc \
2858 StoreSwapLogData.cc \
2859 StoreIOState.cc \
2860 StoreMeta.cc \
2861 StoreMetaMD5.cc \
2862 StoreMetaSTD.cc \
2863 StoreMetaSTDLFS.cc \
2864 StoreMetaUnpacker.cc \
2865 StoreMetaURL.cc \
2866 StoreMetaVary.cc \
2867 StoreFileSystem.cc \
2868 store_io.cc \
2869 store_swapout.cc \
2870 store_swapmeta.cc \
2871 $(UNLINKDSOURCE) \
2872 $(WIN32_SOURCE) \
2873 event.cc \
2874 $(DELAY_POOL_SOURCE) \
2875 CacheDigest.cc \
2876 ConfigParser.cc \
2877 EventLoop.cc \
2878 HttpMsg.cc \
2879 RemovalPolicy.cc \
2880 store_dir.cc \
2881 store.cc \
2882 HttpRequestMethod.cc \
2883 store_key_md5.cc \
2884 Parsing.cc \
2885 ConfigOption.cc \
2886 SwapDir.cc \
2887 tests/stub_acl.cc \
2888 tests/stub_cache_cf.cc \
2889 tests/stub_helper.cc \
2890 cbdata.cc \
2891 String.cc \
2892 tests/stub_comm.cc \
2893 tests/stub_debug.cc \
2894 tests/stub_client_side_request.cc \
2895 tests/stub_http.cc \
2896 mem_node.cc \
2897 stmem.cc \
2898 tests/stub_mime.cc \
2899 HttpHeaderTools.cc \
2900 HttpHeader.cc \
2901 mem.cc \
2902 ClientInfo.h \
2903 MemBuf.cc \
2904 HttpHdrContRange.cc \
2905 Packer.cc \
2906 HttpHdrCc.cc \
2907 HttpHdrSc.cc \
2908 HttpHdrScTarget.cc \
2909 url.cc \
2910 StatHist.cc \
2911 HttpHdrRange.cc \
2912 ETag.cc \
2913 tests/stub_errorpage.cc \
2914 tests/stub_HttpRequest.cc \
2915 tests/stub_access_log.cc \
2916 refresh.cc \
2917 tests/stub_store_client.cc \
2918 tests/stub_tools.cc \
2919 tests/testStoreSupport.cc \
2920 tests/testStoreSupport.h \
2921 time.cc \
2922 URLScheme.cc \
2923 wordlist.cc \
2924 $(DISKIO_SOURCE)
2925
95329c22 2926nodist_tests_testNull_SOURCES = \
62a0ef44
AJ
2927 $(TESTSOURCES) \
2928 $(DISKIO_GEN_SOURCE)
95329c22 2929tests_testNull_LDADD = \
25f98340 2930 $(REGEXLIB) \
62a0ef44
AJ
2931 $(AUTH_ACL_LIBS) \
2932 ident/libident.la \
2933 acl/libacls.la \
2934 eui/libeui.la \
2935 acl/libstate.la \
2936 $(AUTH_LIBS) \
2937 acl/libapi.la \
2938 base/libbase.la \
2939 libsquid.la \
2940 ip/libip.la \
2941 fs/libfs.la \
2942 ipc/libipc.la \
2943 mgr/libmgr.la \
25f98340
AJ
2944 $(REPL_OBJS) \
2945 $(DISK_LIBS) \
2946 $(DISK_OS_LIBS) \
2947 acl/libapi.la \
2948 $(top_builddir)/lib/libmisccontainers.la \
2949 $(top_builddir)/lib/libmiscencoding.la \
2950 $(top_builddir)/lib/libmiscutil.la \
2951 $(SQUID_CPPUNIT_LIBS) \
3ae8895c 2952 $(SSLLIB) \
25f98340 2953 $(COMPAT_LIB) \
3ae8895c 2954 $(XTRA_LIBS)
c8f4eac4 2955tests_testNull_LDFLAGS = $(LIBADD_DL)
2956tests_testNull_DEPENDENCIES = \
2957 $(SWAP_TEST_DS)
985c86bc 2958
2959## Tests of the URL module.
2960## TODO: Trim this down once the insanity is over.
2961tests_testURL_SOURCES = \
5817ee13 2962 $(ACL_REGISTRATION_SOURCES) \
5f8252d2 2963 BodyPipe.cc \
985c86bc 2964 cache_cf.cc \
cf65b4fb 2965 cache_manager.cc \
985c86bc 2966 CacheDigest.cc \
2967 carp.cc \
2968 cbdata.cc \
81c07a23 2969 ChunkedCodingParser.cc \
985c86bc 2970 client_db.cc \
2971 client_side.cc \
2972 client_side_reply.cc \
2973 client_side_request.cc \
281422f8 2974 ClientInfo.h \
985c86bc 2975 clientStream.cc \
985c86bc 2976 ConfigOption.cc \
2977 ConfigParser.cc \
96c2bb61
AR
2978 CpuAffinityMap.cc \
2979 CpuAffinityMap.h \
2980 CpuAffinitySet.cc \
2981 CpuAffinitySet.h \
985c86bc 2982 $(DELAY_POOL_SOURCE) \
2983 disk.cc \
cf65b4fb
AJ
2984 DiskIO/ReadRequest.cc \
2985 DiskIO/WriteRequest.cc \
e1f7507e
AJ
2986 dlink.h \
2987 dlink.cc \
985c86bc 2988 $(DNSSOURCE) \
985c86bc 2989 errorpage.cc \
985c86bc 2990 ETag.cc \
cf65b4fb 2991 event.cc \
985c86bc 2992 external_acl.cc \
2993 ExternalACLEntry.cc \
2994 fd.cc \
2995 fde.cc \
cf65b4fb 2996 filemap.cc \
985c86bc 2997 forward.cc \
2998 fqdncache.cc \
2999 ftp.cc \
3000 gopher.cc \
3001 helper.cc \
48d54e4d
AJ
3002 HelperChildConfig.h \
3003 HelperChildConfig.cc \
bbaf2685 3004 hier_code.h \
1edbd3b6 3005 $(HTCPSOURCE) \
985c86bc 3006 http.cc \
3007 HttpBody.cc \
985c86bc 3008 HttpHdrCc.cc \
3009 HttpHdrContRange.cc \
3010 HttpHdrRange.cc \
3011 HttpHdrSc.cc \
3012 HttpHdrScTarget.cc \
cf65b4fb
AJ
3013 HttpHeader.cc \
3014 HttpHeaderTools.cc \
985c86bc 3015 HttpMsg.cc \
4c14658e
AJ
3016 HttpParser.cc \
3017 HttpParser.h \
985c86bc 3018 HttpReply.cc \
cf65b4fb
AJ
3019 HttpRequest.cc \
3020 HttpRequestMethod.cc \
985c86bc 3021 HttpStatusLine.cc \
985c86bc 3022 icp_v2.cc \
3023 icp_v3.cc \
b5d712b5 3024 $(IPC_SOURCE) \
985c86bc 3025 ipcache.cc \
985c86bc 3026 int.cc \
3027 internal.cc \
3028 list.cc \
985c86bc 3029 multicast.cc \
cf65b4fb 3030 mem.cc \
985c86bc 3031 mem_node.cc \
3032 MemBuf.cc \
3033 MemObject.cc \
3034 mime.cc \
0f9db2d6 3035 mime_header.cc \
985c86bc 3036 neighbors.cc \
985c86bc 3037 Packer.cc \
3038 Parsing.cc \
3039 pconn.cc \
3040 peer_digest.cc \
9ca29d23 3041 peer_proxy_negotiate_auth.cc \
985c86bc 3042 peer_select.cc \
f4a21650
HN
3043 peer_sourcehash.cc \
3044 peer_userhash.cc \
cf65b4fb
AJ
3045 ProtoPort.cc \
3046 ProtoPort.h \
985c86bc 3047 redirect.cc \
3048 refresh.cc \
cf65b4fb 3049 RemovalPolicy.cc \
985c86bc 3050 Server.cc \
3051 $(SNMP_SOURCE) \
a98bcbee
AJ
3052 SquidMath.h \
3053 SquidMath.cc \
985c86bc 3054 stat.cc \
3055 StatHist.cc \
3056 stmem.cc \
3057 store.cc \
3058 store_client.cc \
3059 store_digest.cc \
3060 store_dir.cc \
3061 store_io.cc \
3062 store_key_md5.cc \
3063 store_log.cc \
3064 store_rebuild.cc \
3065 store_swapin.cc \
3066 store_swapmeta.cc \
3067 store_swapout.cc \
3068 StoreFileSystem.cc \
3069 StoreIOState.cc \
3070 StoreMeta.cc \
3071 StoreMetaMD5.cc \
3072 StoreMetaSTD.cc \
47f6e231 3073 StoreMetaSTDLFS.cc \
985c86bc 3074 StoreMetaUnpacker.cc \
3075 StoreMetaURL.cc \
3076 StoreMetaVary.cc \
3077 StoreSwapLogData.cc \
cf65b4fb 3078 String.cc \
9ced5b29 3079 SwapDir.cc MemStore.cc \
cf65b4fb
AJ
3080 tests/stub_debug.cc \
3081 tests/stub_DiskIOModule.cc \
3082 tests/stub_main_cc.cc \
3083 tests/stub_ipc_Forwarder.cc \
3084 tests/testURL.cc \
3085 tests/testURL.h \
3086 tests/testURLScheme.cc \
3087 tests/testURLScheme.h \
3088 tests/testMain.cc \
3089 time.cc \
985c86bc 3090 tools.cc \
3091 tunnel.cc \
cf65b4fb
AJ
3092 url.cc \
3093 URLScheme.cc \
985c86bc 3094 urn.cc \
62288514 3095 wccp2.cc \
985c86bc 3096 whois.cc \
8277060a 3097 FadingCounter.cc \
9c8434f6 3098 $(WIN32_SOURCE) \
985c86bc 3099 wordlist.cc
3100nodist_tests_testURL_SOURCES = \
4b981814 3101 $(BUILT_SOURCES)
985c86bc 3102tests_testURL_LDADD = \
0c3d3f65 3103 anyp/libanyp.la \
62a0ef44
AJ
3104 $(AUTH_ACL_LIBS) \
3105 ident/libident.la \
3106 acl/libacls.la \
3107 eui/libeui.la \
3108 acl/libstate.la \
3109 $(AUTH_LIBS) \
3110 acl/libapi.la \
3111 base/libbase.la \
3112 libsquid.la \
3113 ip/libip.la \
3114 fs/libfs.la \
3115 ipc/libipc.la \
3116 mgr/libmgr.la \
65f92818 3117 $(SNMP_LIBS) \
9b5c4a9a 3118 icmp/libicmp.la icmp/libicmp-core.la \
ec41b64c 3119 comm/libcomm.la \
82b7abe3 3120 log/liblog.la \
d5d5493b 3121 $(DISK_OS_LIBS) \
38e16f92 3122 format/libformat.la \
3ae8895c
A
3123 $(REGEXLIB) \
3124 $(REPL_OBJS) \
65f92818 3125 $(ADAPTATION_LIBS) \
88bfe098 3126 $(ESI_LIBS) \
95d2589c 3127 $(SSL_LIBS) \
25f98340
AJ
3128 $(top_builddir)/lib/libmisccontainers.la \
3129 $(top_builddir)/lib/libmiscencoding.la \
3130 $(top_builddir)/lib/libmiscutil.la \
3131 $(COMPAT_LIB) \
3ae8895c
A
3132 $(SQUID_CPPUNIT_LIBS) \
3133 $(SQUID_CPPUNIT_LA) \
3134 $(SSLLIB) \
3135 $(KRB5LIBS) \
0f1173d4 3136 $(COMPAT_LIB) \
3ae8895c 3137 $(XTRA_LIBS)
985c86bc 3138tests_testURL_LDFLAGS = $(LIBADD_DL)
25f98340 3139tests_testURL_DEPENDENCIES = \
3ae8895c
A
3140 $(REPL_OBJS) \
3141 $(SQUID_CPPUNIT_LA)
ee342e0b
AJ
3142
3143
3144TESTS += testHeaders
3145
3146## Special Universal .h dependency test script
3147## aborts if error encountered
508e9b20 3148testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
a0fdc9bf 3149 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
ee342e0b
AJ
3150## src/repl/ has no .h files and its own makefile.
3151
3152CLEANFILES += testHeaders
3153.PHONY: testHeaders
3154