]> git.ipfire.org Git - thirdparty/squid.git/blame - src/Makefile.am
Applying sourceformating
[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
8822ebee 33SUBDIRS = base comm eui acl fs repl auth ip icmp ident log ipc mgr
20f4520e 34
95d2589c
CT
35if ENABLE_SSL
36SUBDIRS += ssl
37SSL_LIBS = \
38 ssl/libsslutil.la \
39 ssl/libsslsquid.la
40else
41SSL_LOCAL_LIBS =
42endif
43
d6e3ad20
CT
44SNMP_ALL_SOURCE = \
45 snmp_core.h \
46 snmp_core.cc \
47 snmp_agent.cc
f738d783 48if ENABLE_SNMP
d6e3ad20
CT
49SNMP_SOURCE = $(SNMP_ALL_SOURCE)
50SUBDIRS += snmp
51SNMP_LIBS = snmp/libsnmp.la
52else
53SNMP_SOURCE =
51ea0904
CT
54endif
55
51a7ff6e
AR
56if USE_ADAPTATION
57SUBDIRS += adaptation
58endif
59
f99c2cfe
AR
60if USE_ESI
61SUBDIRS += esi
88bfe098 62ESI_LOCAL_LIBS = \
c41d7e69
AR
63 esi/libesi.la \
64 $(top_builddir)/lib/libTrie/src/libTrie.a
88bfe098 65ESI_LIBS = $(ESI_LOCAL_LIBS) \
3ae8895c
A
66 $(XMLLIB) \
67 $(EXPATLIB)
f99c2cfe
AR
68else
69ESI_LIBS =
70endif
71
852a0ce1 72DELAY_POOL_ALL_SOURCE = \
73 CommonPool.h \
74 CompositePoolNode.h \
75 delay_pools.cc \
76 DelayId.cc \
77 DelayId.h \
78 DelayIdComposite.h \
79 DelayBucket.cc \
80 DelayBucket.h \
81 DelayConfig.cc \
82 DelayConfig.h \
83 DelayPool.cc \
84 DelayPool.h \
85 DelayPools.h \
86 DelaySpec.cc \
87 DelaySpec.h \
88 DelayTagged.cc \
89 DelayTagged.h \
90 DelayUser.cc \
91 DelayUser.h \
92 DelayVector.cc \
93 DelayVector.h \
94 NullDelayId.cc \
b4cd430a
CT
95 NullDelayId.h \
96 ClientDelayConfig.cc \
97 ClientDelayConfig.h
98
9a0a18de 99if ENABLE_DELAY_POOLS
852a0ce1 100DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
101else
102DELAY_POOL_SOURCE =
103endif
104
852a0ce1 105if ENABLE_XPROF_STATS
106XPROF_STATS_SOURCE = ProfStats.cc
107else
108XPROF_STATS_SOURCE =
109endif
110
111if ENABLE_HTCP
112HTCPSOURCE = htcp.cc htcp.h
113endif
114
115if MAKE_LEAKFINDER
ba126bee 116LEAKFINDERSOURCE = LeakFinder.cc
852a0ce1 117else
118LEAKFINDERSOURCE =
119endif
120
121if ENABLE_UNLINKD
122UNLINKDSOURCE = unlinkd.cc
123UNLINKD = unlinkd
124else
125UNLINKDSOURCE =
126UNLINKD =
127endif
128
9c8434f6 129WIN32_ALL_SOURCE = \
130 win32.cc \
131 WinSvc.cc
852a0ce1 132if ENABLE_WIN32SPECIFIC
9c8434f6 133WIN32_SOURCE = win32.cc
134WINSVC_SOURCE = WinSvc.cc
852a0ce1 135else
9c8434f6 136WIN32_SOURCE =
137WINSVC_SOURCE =
852a0ce1 138endif
139
b5d712b5 140if USE_IPC_WIN32
141IPC_SOURCE = ipc_win32.cc
142else
143IPC_SOURCE = ipc.cc
144endif
145
abb2a3d9 146AIO_WIN32_ALL_SOURCES = \
147 DiskIO/AIO/aio_win32.cc \
148 DiskIO/AIO/aio_win32.h
149if USE_AIO_WIN32
150AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
151else
152AIO_WIN32_SOURCES =
153endif
154
595c7973 155if USE_AIOPS_WIN32
156AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc
157else
158AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc
159endif
160
51a7ff6e 161EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a
3ae8895c 162noinst_LIBRARIES = $(DISK_LIBS)
2d2b0bb7 163noinst_LTLIBRARIES = libsquid.la
b9ae18aa 164
7d6fa4d4
AR
165# libraries used by many targets
166COMMON_LIBS = \
3ad63615 167 auth/libacls.la \
4daaf3cb 168 ident/libident.la \
3ad63615 169 acl/libacls.la \
ee0927b6 170 eui/libeui.la \
3ad63615
AR
171 acl/libstate.la \
172 auth/libauth.la \
173 acl/libapi.la \
56a49fda
AJ
174 base/libbase.la \
175 libsquid.la \
7b5b7ba8 176 ip/libip.la \
40daaeb8 177 fs/libfs.la \
8822ebee
AR
178 ipc/libipc.la \
179 mgr/libmgr.la
7d6fa4d4 180
852a0ce1 181EXTRA_PROGRAMS = \
b9ae18aa 182 DiskIO/DiskDaemon/diskd \
852a0ce1 183 unlinkd \
852a0ce1 184 dnsserver \
185 recv-announce \
082a5e7a 186 tests/testUfs \
187 tests/testCoss \
2d94e2d6
HN
188 tests/testNull \
189 ufsdump
852a0ce1 190
596d3ba7 191## cfgen is used when building squid
192## ufsdump is a debug utility, it is possibly useful for end users with cache
193## corruption, but at this point we do not install it.
852a0ce1 194noinst_PROGRAMS = \
2d94e2d6 195 cf_gen
852a0ce1 196
197sbin_PROGRAMS = \
198 squid
199
94ab55b0 200bin_PROGRAMS =
852a0ce1 201
202
203libexec_PROGRAMS = \
852a0ce1 204 $(DNSSERVER) \
3ae8895c 205 $(DISK_PROGRAMS) \
94ab55b0 206 $(UNLINKD)
852a0ce1 207
7d6fa4d4 208cf_gen_SOURCES = cf_gen.cc
cca8ba0d 209nodist_cf_gen_HEADER = cf_gen_defines.cci
9fb4efad 210cf_gen_LDADD= \
f8b57b6c 211 $(COMPAT_LIB) \
3ae8895c
A
212 $(EPOLL_LIBS) \
213 $(MINGW_LIBS) \
214 $(XTRA_LIBS)
cca8ba0d 215cf_gen.$(OBJEXT): cf_gen_defines.cci
852a0ce1 216
cca8ba0d 217## cf_gen.cc needs src/cf_gen_defines.cci
189f1e66
AJ
218INCLUDES += -I$(top_builddir)/src
219
2d46f579 220
f07e9e1f 221ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
2d46f579 222
c8f4eac4 223DISKIO_SOURCE = \
224 DiskIO/DiskIOModule.cc \
225 DiskIO/ReadRequest.cc \
226 DiskIO/ReadRequest.h \
227 DiskIO/WriteRequest.cc \
228 DiskIO/WriteRequest.h \
229 DiskIO/DiskFile.h \
230 DiskIO/DiskIOStrategy.h \
231 DiskIO/IORequestor.h \
232 DiskIO/DiskIOModule.h \
95329c22
HN
233 DiskIO/ReadRequest.h
234
235DISKIO_GEN_SOURCE = \
09c5ae5a
AJ
236 DiskIO/DiskIOModules_gen.cc
237
238DiskIO/DiskIOModules_gen.cc: Makefile
239 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
240
c8f4eac4 241
f24583c1 242# common library for all the binaries and tests. This is kindof a catch all
243# and smaller libraries split from this are encouraged. Using lt convenience
244# libraries, dependencies should not be a problem either.
245libsquid_la_SOURCES = \
246 comm.cc \
247 comm.h \
ec41b64c 248 comm_err_t.h \
b0469965 249 CommCalls.cc \
250 CommCalls.h \
877ce944
AR
251 DescriptorSet.cc \
252 DescriptorSet.h \
3d93a84d 253 SquidConfig.cc
f24583c1 254
852a0ce1 255squid_SOURCES = \
2d46f579 256 $(ACL_REGISTRATION_SOURCES) \
450e0c10 257 AccessLogEntry.h \
8ff3fa2e 258 AsyncEngine.cc \
259 AsyncEngine.h \
852a0ce1 260 cache_cf.cc \
1b26be8f 261 ProtoPort.cc \
262 ProtoPort.h \
852a0ce1 263 CacheDigest.cc \
264 cache_manager.cc \
62ee09ca 265 CacheManager.h \
852a0ce1 266 carp.cc \
267 cbdata.cc \
aa839030 268 cbdata.h \
81c07a23 269 ChunkedCodingParser.cc \
270 ChunkedCodingParser.h \
852a0ce1 271 client_db.cc \
272 client_side.cc \
273 client_side.h \
274 client_side_reply.cc \
275 client_side_reply.h \
276 client_side_request.cc \
277 client_side_request.h \
281422f8 278 ClientInfo.h \
5f8252d2 279 BodyPipe.cc \
280 BodyPipe.h \
281422f8 281 ClientInfo.h \
cd397896 282 ClientRequestContext.h \
852a0ce1 283 clientStream.cc \
284 clientStream.h \
663c0a38 285 CommIO.h \
a553a5a3 286 CompletionDispatcher.cc \
287 CompletionDispatcher.h \
852a0ce1 288 CommRead.h \
b9ae18aa 289 ConfigOption.cc \
d295d770 290 ConfigParser.cc \
852a0ce1 291 ConfigParser.h \
292 ConnectionDetail.h \
96c2bb61
AR
293 CpuAffinity.cc \
294 CpuAffinity.h \
295 CpuAffinityMap.cc \
296 CpuAffinityMap.h \
297 CpuAffinitySet.cc \
298 CpuAffinitySet.h \
852a0ce1 299 debug.cc \
300 Debug.h \
301 defines.h \
302 $(DELAY_POOL_SOURCE) \
303 disk.cc \
c8f4eac4 304 $(DISKIO_SOURCE) \
25b6a907 305 dlink.h \
e1f7507e 306 dlink.cc \
852a0ce1 307 $(DNSSOURCE) \
308 enums.h \
4b981814 309 err_type.h \
f3ff3818 310 err_detail_type.h \
852a0ce1 311 errorpage.cc \
3ad63615 312 errorpage.h \
852a0ce1 313 ETag.cc \
314 event.cc \
a553a5a3 315 event.h \
316 EventLoop.h \
317 EventLoop.cc \
852a0ce1 318 external_acl.cc \
319 ExternalACL.h \
320 ExternalACLEntry.cc \
321 ExternalACLEntry.h \
8277060a
CT
322 FadingCounter.h \
323 FadingCounter.cc \
852a0ce1 324 fd.cc \
325 fde.cc \
326 fde.h \
327 filemap.cc \
328 forward.cc \
8bd61868 329 forward.h \
852a0ce1 330 fqdncache.cc \
331 ftp.cc \
332 Generic.h \
333 globals.h \
334 gopher.cc \
335 helper.cc \
336 helper.h \
48d54e4d
AJ
337 HelperChildConfig.h \
338 HelperChildConfig.cc \
bbaf2685 339 hier_code.h \
b24880fe 340 HierarchyLogEntry.h \
852a0ce1 341 $(HTCPSOURCE) \
342 http.cc \
343 http.h \
6feb0e7c 344 HttpStatusCode.h \
852a0ce1 345 HttpStatusLine.cc \
450e0c10 346 HttpStatusLine.h \
852a0ce1 347 HttpHdrCc.cc \
348 HttpHdrRange.cc \
349 HttpHdrSc.cc \
25b6a907 350 HttpHdrSc.h \
852a0ce1 351 HttpHdrScTarget.cc \
25b6a907 352 HttpHdrScTarget.h \
852a0ce1 353 HttpHdrContRange.cc \
354 HttpHdrContRange.h \
355 HttpHeader.cc \
356 HttpHeader.h \
25b6a907 357 HttpHeaderMask.h \
852a0ce1 358 HttpHeaderRange.h \
359 HttpHeaderTools.cc \
360 HttpBody.cc \
1288ea72 361 HttpControlMsg.h \
852a0ce1 362 HttpMsg.cc \
8596962e 363 HttpMsg.h \
852a0ce1 364 HttpReply.cc \
365 HttpReply.h \
366 HttpRequest.cc \
367 HttpRequest.h \
985c86bc 368 HttpRequestMethod.cc \
369 HttpRequestMethod.h \
450e0c10 370 HttpVersion.h \
852a0ce1 371 ICP.h \
4b981814 372 icp_opcode.h \
852a0ce1 373 icp_v2.cc \
374 icp_v3.cc \
852a0ce1 375 int.cc \
376 internal.cc \
b5d712b5 377 $(IPC_SOURCE) \
852a0ce1 378 ipcache.cc \
852a0ce1 379 $(LEAKFINDERSOURCE) \
c8f4eac4 380 list.cc \
4b981814 381 lookup_t.h \
852a0ce1 382 main.cc \
383 mem.cc \
384 mem_node.cc \
385 mem_node.h \
386 Mem.h \
387 MemBuf.cc \
388 MemObject.cc \
389 MemObject.h \
390 mime.cc \
0f9db2d6 391 mime_header.cc \
852a0ce1 392 multicast.cc \
393 neighbors.cc \
852a0ce1 394 Packer.cc \
25b6a907 395 Packer.h \
c8f4eac4 396 Parsing.cc \
397 Parsing.h \
852a0ce1 398 $(XPROF_STATS_SOURCE) \
399 pconn.cc \
2d3c24dc 400 pconn.h \
37c84c0b 401 PeerDigest.h \
852a0ce1 402 peer_digest.cc \
9ca29d23 403 peer_proxy_negotiate_auth.cc \
852a0ce1 404 peer_select.cc \
f4a21650
HN
405 peer_sourcehash.cc \
406 peer_userhash.cc \
b24880fe 407 PeerSelectState.h \
408 PingData.h \
852a0ce1 409 protos.h \
410 redirect.cc \
852a0ce1 411 refresh.cc \
aa839030 412 RemovalPolicy.cc \
413 RemovalPolicy.h \
852a0ce1 414 send-announce.cc \
43d1bbe4 415 $(SBUF_SOURCE) \
2cdb6869 416 $(SNMP_SOURCE) \
852a0ce1 417 squid.h \
a98bcbee
AJ
418 SquidMath.h \
419 SquidMath.cc \
852a0ce1 420 SquidNew.cc \
852a0ce1 421 stat.cc \
422 StatHist.cc \
30abd221 423 String.cc \
852a0ce1 424 stmem.cc \
425 stmem.h \
426 store.cc \
427 Store.h \
59b2d47f 428 StoreFileSystem.cc \
429 StoreFileSystem.h \
c8f4eac4 430 StoreHashIndex.h \
852a0ce1 431 store_io.cc \
432 StoreIOBuffer.h \
433 StoreIOState.cc \
434 StoreIOState.h \
435 store_client.cc \
436 StoreClient.h \
437 store_digest.cc \
438 store_dir.cc \
439 store_key_md5.cc \
440 store_log.cc \
441 store_rebuild.cc \
442 store_swapin.cc \
443 store_swapmeta.cc \
444 store_swapout.cc \
445 StoreMeta.cc \
446 StoreMeta.h \
447 StoreMetaMD5.cc \
448 StoreMetaMD5.h \
449 StoreMetaSTD.cc \
450 StoreMetaSTD.h \
47f6e231 451 StoreMetaSTDLFS.cc \
452 StoreMetaSTDLFS.h \
9e6e1d99 453 StoreMetaObjSize.h \
852a0ce1 454 StoreMetaUnpacker.cc \
455 StoreMetaUnpacker.h \
456 StoreMetaURL.cc \
457 StoreMetaURL.h \
458 StoreMetaVary.cc \
459 StoreMetaVary.h \
c8f4eac4 460 StoreSearch.h \
852a0ce1 461 StoreSwapLogData.cc \
462 StoreSwapLogData.h \
253caccb 463 Server.cc \
596d3ba7 464 Server.h \
852a0ce1 465 structs.h \
4b981814 466 swap_log_op.h \
852a0ce1 467 SwapDir.cc \
468 SwapDir.h \
c21ad0f5 469 time.cc \
852a0ce1 470 tools.cc \
aa839030 471 tunnel.cc \
852a0ce1 472 typedefs.h \
852a0ce1 473 $(UNLINKDSOURCE) \
474 url.cc \
985c86bc 475 URL.h \
476 URLScheme.cc \
477 URLScheme.h \
852a0ce1 478 urn.cc \
852a0ce1 479 wccp.cc \
0b0cfcf2 480 wccp2.cc \
852a0ce1 481 whois.cc \
d295d770 482 wordlist.cc \
483 wordlist.h \
9c8434f6 484 $(WIN32_SOURCE) \
485 $(WINSVC_SOURCE)
852a0ce1 486
4b981814
AJ
487EXTRA_squid_SOURCES = \
488 $(AIO_WIN32_ALL_SOURCES) \
489 $(all_AUTHMODULES) \
490 ConfigOption.h \
491 $(DELAY_POOL_ALL_SOURCE) \
492 dns.cc \
493 dnsserver.cc \
494 dns_internal.cc \
495 DnsLookupDetails.cc \
496 DnsLookupDetails.h \
497 htcp.cc \
498 htcp.h \
499 ipc.cc \
500 ipc_win32.cc \
501 ProfStats.cc \
502 LeakFinder.cc \
503 LeakFinder.h \
504 $(SNMP_ALL_SOURCE) \
505 $(UNLINKDSOURCE) \
4b981814
AJ
506 $(WIN32_ALL_SOURCE) \
507 $(LOADABLE_MODULES_SOURCES) \
508 DiskIO/DiskThreads/aiops.cc \
509 DiskIO/DiskThreads/aiops_win32.cc
510
3ad63615 511noinst_HEADERS = \
852a0ce1 512 client_side_request.cci \
513 MemBuf.cci \
514 MemBuf.h \
515 Store.cci \
c21ad0f5 516 StoreEntryStream.h \
30abd221 517 String.cci \
1624365b 518 SquidString.h \
519 SquidTime.h
852a0ce1 520
4b981814 521BUILT_SOURCES = \
cca8ba0d
HN
522 cf_gen_defines.cci \
523 cf_parser.cci \
4b981814 524 err_type.cc \
64b66b76 525 err_detail_type.cc \
852a0ce1 526 globals.cc \
4b981814
AJ
527 hier_code.cc \
528 icp_opcode.cc \
529 lookup_t.cc \
530 repl_modules.cc \
531 swap_log_op.cc
532
533CLEANFILES += $(BUILT_SOURCES)
534
535nodist_squid_SOURCES = \
536 $(DISKIO_GEN_SOURCE) \
537 $(BUILT_SOURCES)
852a0ce1 538
539squid_LDADD = \
7d6fa4d4 540 $(COMMON_LIBS) \
ec41b64c 541 comm/libcomm.la \
a98c2da5 542 eui/libeui.la \
71787d05 543 icmp/libicmp.la icmp/libicmp-core.la \
82b7abe3 544 log/liblog.la \
3ae8895c
A
545 $(XTRA_OBJS) \
546 $(DISK_LINKOBJS) \
547 $(REPL_OBJS) \
548 $(DISK_LIBS) \
549 $(DISK_OS_LIBS) \
550 $(CRYPTLIB) \
551 $(REGEXLIB) \
552 $(SNMPLIB) \
d6e3ad20 553 $(SNMP_LIBS) \
51a7ff6e 554 ${ADAPTATION_LIBS} \
88bfe098 555 $(ESI_LIBS) \
95d2589c 556 $(SSL_LIBS) \
25f98340
AJ
557 $(top_builddir)/lib/libmisccontainers.la \
558 $(top_builddir)/lib/libmiscencoding.la \
559 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
560 $(SSLLIB) \
561 $(EPOLL_LIBS) \
562 $(MINGW_LIBS) \
563 $(KRB5LIBS) \
25f98340 564 $(COMPAT_LIB) \
3ae8895c 565 $(XTRA_LIBS)
25f98340 566squid_DEPENDENCIES = \
3ae8895c
A
567 $(DISK_LIBS) \
568 $(DISK_LINKOBJS) \
569 $(REPL_OBJS) \
570 $(SNMPLIB) \
d5475bf1 571 ${ADAPTATION_LIBS} \
88bfe098 572 $(ESI_LOCAL_LIBS) \
95d2589c 573 $(SSL_LIBS) \
d5475bf1 574 $(COMMON_LIBS)
c21ad0f5 575
3e7b6055 576if USE_LOADABLE_MODULES
57afc994 577squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
95954721 578squid_LDADD += -L$(top_builddir) $(LIBLTDL)
62059234
AJ
579squid_LDFLAGS = -export-dynamic -dlopen force
580## when static module linking is supported and enabled:
581## squid_LDFLAGS = -all-static -dlopen self
582##
583## LTDL headers require their local include path...
584INCLUDES += $(INCLTDL)
3e7b6055
AR
585endif
586
9ca29d23 587## Kerberos libraries require their include path...
3ae8895c 588INCLUDES += $(KRB5INCS)
9ca29d23 589
3e7b6055 590
25f98340
AJ
591unlinkd_SOURCES = unlinkd_daemon.cc
592dnsserver_SOURCES = dnsserver.cc SquidNew.cc tests/stub_debug.cc test_tools.cc time.cc
593recv_announce_SOURCES = recv-announce.cc
852a0ce1 594
a97576f3 595## What requires what..
596## many things want ACLChecklist.cc
597## ACLChecklist.cc wants AuthUserRequest.cc
598## ACLChecklist.cc wants AuthScheme.cc
599## ACLChecklist.cc wants ACLProxyAuth.cc directly
600## ACLProxyAuth.cc wants ACLUserData
601## ACLProxyAuth.cc wants ACLRegexData
f24583c1 602## cache_cf.cc wants libauth.la
a97576f3 603## cache_cf.cc wants Swapdir
1b26be8f 604## cache_cf.cc wants ProtoPort
a97576f3 605## client_side wants client_db
606## client_db wants SNMP_SOURCE
607## snmp_core wants ACLStringData
608## SwapDir wants ConfigOption
9fb4efad
AJ
609## tools.cc wants ip/libip.la
610## client_side.cc wants ip/libip.la
281422f8 611## mem.cc wants ClientInfo.h
b61a58df
AJ
612## libbase.la wants cbdata.*
613## libbase.la wants MemBuf.*
48d54e4d 614## structs.h wants HelperChildConfig.* (stub it)
596d3ba7 615ufsdump_SOURCES = \
281422f8 616 ClientInfo.h \
b61a58df
AJ
617 cbdata.h \
618 cbdata.cc \
596d3ba7 619 debug.cc \
852a0ce1 620 int.cc \
c21ad0f5 621 mem.cc \
b61a58df
AJ
622 MemBuf.cc \
623 MemBuf.cci \
624 MemBuf.h \
82b7abe3 625 Parsing.h \
c21ad0f5 626 store_key_md5.cc \
852a0ce1 627 StoreMeta.cc \
852a0ce1 628 StoreMetaMD5.cc \
852a0ce1 629 StoreMetaSTD.cc \
47f6e231 630 StoreMetaSTDLFS.cc \
852a0ce1 631 StoreMetaUnpacker.cc \
852a0ce1 632 StoreMetaURL.cc \
852a0ce1 633 StoreMetaVary.cc \
30abd221 634 String.cc \
985f118d 635 SquidNew.cc \
c21ad0f5 636 time.cc \
637 ufsdump.cc \
e1f7507e
AJ
638 dlink.h \
639 dlink.cc \
48d54e4d
AJ
640 HelperChildConfig.h \
641 tests/stub_HelperChildConfig.cc \
985c86bc 642 HttpRequestMethod.cc \
aa839030 643 RemovalPolicy.cc \
852a0ce1 644 squid.h \
b61a58df
AJ
645 $(WIN32_SOURCE) \
646 tests/stub_fd.cc
852a0ce1 647ufsdump_LDADD = \
7d6fa4d4 648 $(COMMON_LIBS) \
3ae8895c
A
649 $(XTRA_OBJS) \
650 $(REPL_OBJS) \
651 $(CRYPTLIB) \
652 $(REGEXLIB) \
653 $(SNMPLIB) \
654 $(SSLLIB) \
82b7abe3 655 $(COMPAT_LIB) \
3ae8895c
A
656 $(EPOLL_LIBS) \
657 $(MINGW_LIBS) \
658 $(XTRA_LIBS)
25f98340 659ufsdump_DEPENDENCIES = \
7b5b7ba8 660 $(COMMON_LIBS) \
3ae8895c
A
661 $(DISK_LIBS) \
662 $(DISK_LINKOBJS) \
663 $(REPL_OBJS)
aab300be 664
852a0ce1 665nodist_ufsdump_SOURCES = \
3ad63615 666 globals.cc
852a0ce1 667
852a0ce1 668sysconf_DATA = \
669 squid.conf.default \
1446a5fd 670 squid.conf.documented \
852a0ce1 671 mime.conf.default
672
673data_DATA = \
674 mib.txt
675
82b7abe3 676LDADD = $(COMMON_LIBS) \
3ae8895c
A
677 $(EPOLL_LIBS) \
678 $(MINGW_LIBS) \
0f1173d4 679 $(COMPAT_LIB) \
3ae8895c 680 $(XTRA_LIBS)
852a0ce1 681
682EXTRA_DIST = \
683 cf_gen_defines \
684 cf.data.pre \
93c07e16 685 cf.data.depend \
74253ee6 686 DiskIO/modules.sh \
852a0ce1 687 mk-globals-c.pl \
e1007e14 688 mk-globals-c.awk \
852a0ce1 689 mk-string-arrays.pl \
e1007e14 690 mk-string-arrays.awk \
852a0ce1 691 repl_modules.sh \
692 mib.txt \
c8f4eac4 693 mime.conf.default
b9ae18aa 694
695libAIO_a_SOURCES = \
abb2a3d9 696 $(AIO_WIN32_SOURCES) \
b9ae18aa 697 DiskIO/AIO/async_io.h \
698 DiskIO/AIO/AIODiskFile.cc \
699 DiskIO/AIO/AIODiskFile.h \
700 DiskIO/AIO/AIODiskIOStrategy.cc \
701 DiskIO/AIO/AIODiskIOStrategy.h \
638b9bab
AJ
702 DiskIO/AIO/AIODiskIOModule.cc \
703 DiskIO/AIO/AIODiskIOModule.h
b9ae18aa 704
705libBlocking_a_SOURCES = \
706 DiskIO/Blocking/BlockingFile.cc \
707 DiskIO/Blocking/BlockingFile.h \
708 DiskIO/Blocking/BlockingIOStrategy.cc \
709 DiskIO/Blocking/BlockingIOStrategy.h \
a258fe8b 710 DiskIO/Blocking/BlockingDiskIOModule.cc \
b9ae18aa 711 DiskIO/Blocking/BlockingDiskIOModule.h
712
713libDiskDaemon_a_SOURCES = \
714 DiskIO/DiskDaemon/DiskdFile.cc \
715 DiskIO/DiskDaemon/DiskdFile.h \
716 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
717 DiskIO/DiskDaemon/DiskdIOStrategy.h \
718 DiskIO/DiskDaemon/diomsg.h \
8423fe1f 719 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
8822ebee
AR
720 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
721 DiskIO/DiskDaemon/DiskdAction.cc \
722 DiskIO/DiskDaemon/DiskdAction.h
b9ae18aa 723
724libDiskThreads_a_SOURCES = \
595c7973 725 $(AIOPS_SOURCE) \
726 DiskIO/DiskThreads/async_io.cc \
727 DiskIO/DiskThreads/DiskThreads.h \
728 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
729 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
8423fe1f 730 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
595c7973 731 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
732 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
733 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
b9ae18aa 734
e2520a9b
AJ
735DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
736nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
25f98340
AJ
737DiskIO_DiskDaemon_diskd_LDADD = \
738 $(top_builddir)/lib/libmisccontainers.la \
739 $(top_builddir)/lib/libmiscencoding.la \
740 $(top_builddir)/lib/libmiscutil.la \
741 $(COMPAT_LIB) \
742 $(XTRA_LIBS)
b9ae18aa 743
852a0ce1 744
941c31f3
FC
745DEFAULT_HTTP_PORT = 3128
746DEFAULT_ICP_PORT = 3130
852a0ce1 747DEFAULT_PREFIX = $(prefix)
5b52cb6c 748DEFAULT_CONFIG_DIR = $(sysconfdir)
84daf9b0 749DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
aa55a81f 750DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
84daf9b0 751DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
95d2589c 752DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
3ae8895c 753DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
84daf9b0
AJ
754DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
755DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
756DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
757DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
758DEFAULT_SWAP_DIR = $(localstatedir)/cache
95d2589c 759DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
831eb43f 760DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
761DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
82b7abe3 762DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
831eb43f 763DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
852a0ce1 764DEFAULT_ICON_DIR = $(datadir)/icons
43000484 765DEFAULT_ERROR_DIR = $(datadir)/errors
852a0ce1 766
aa55a81f 767# Make location configure settings available to the code
189f1e66 768DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
852a0ce1 769
770snmp_core.o snmp_agent.o: ../snmplib/libsnmp.a $(top_srcdir)/include/cache_snmp.h
771
4b981814 772globals.cc: globals.h mk-globals-c.awk
d64c1498 773 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
852a0ce1 774
56a49fda 775## Generate files containing string arrays for various enums....
4b981814 776hier_code.cc: hier_code.h mk-string-arrays.awk
d64c1498 777 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
778
779err_type.cc: err_type.h mk-string-arrays.awk
d64c1498 780 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
4b981814 781
64b66b76
CT
782err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
783 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
784
4b981814 785lookup_t.cc: lookup_t.h mk-string-arrays.awk
d64c1498 786 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
787
788icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
d64c1498 789 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
790
791swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
d64c1498 792 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
4b981814
AJ
793
794
795## other generated files...
852a0ce1 796
797cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
798 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
799
800test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
801 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
a2794549 802
803## If autodependency works well this is not needed anymore
cca8ba0d 804cache_cf.o: cf_parser.cci
a2794549 805
cca8ba0d
HN
806# squid.conf.default is built by cf_gen when making cf_parser.cci
807squid.conf.default squid.conf.documented: cf_parser.cci
34af43e2 808 true
a2794549 809
cca8ba0d 810cf_parser.cci: cf.data cf_gen$(EXEEXT)
41bd17a4 811 ./cf_gen cf.data $(srcdir)/cf.data.depend
a2794549 812
cca8ba0d 813cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
d64c1498 814 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
a2794549 815
816
817## FIXME: generate a sed command file from configure. Then this doesn't
43000484 818## depend on the Makefile.
852a0ce1 819cf.data: cf.data.pre Makefile
9c2cec78
HN
820 sed \
821 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
822 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
823 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%${CACHE_EFFECTIVE_USER}%g" \
824 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
825 -e "s%[@]DEFAULT_DNSSERVER[@]%$(DEFAULT_DNSSERVER)%g" \
95d2589c 826 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
9c2cec78
HN
827 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
828 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
829 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
82b7abe3 830 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
9c2cec78
HN
831 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
832 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
833 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
834 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
835 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
836 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
95d2589c 837 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
9c2cec78
HN
838 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
839 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
840 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
75eaac6c 841 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
9c2cec78 842 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
852a0ce1 843 < $(srcdir)/cf.data.pre >$@
844
852a0ce1 845repl_modules.cc: repl_modules.sh Makefile
846 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
847
83915266
AJ
848include $(top_srcdir)/doc/manuals/Substitute.am
849
850squid.8: $(srcdir)/squid.8.in Makefile
466ae9bc 851 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
83915266
AJ
852
853man_MANS = squid.8
854EXTRA_DIST += squid.8.in
855CLEANFILES += squid.8
856
852a0ce1 857install-data-local: install-sysconfDATA install-dataDATA
858 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
84daf9b0 859 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
852a0ce1 860 else \
84daf9b0
AJ
861 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
862 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
852a0ce1 863 fi
864 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
84daf9b0 865 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
852a0ce1 866 else \
84daf9b0
AJ
867 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
868 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
852a0ce1 869 fi
1446a5fd
AJ
870 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
871 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
872 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
873 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
dc094bdd 874 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
3ff816ee 875 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
27b1dd70 876 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
a2794549 877
5b218ff4
HN
878uninstall-local: squid.conf.default
879 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
880 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
a2794549 881
4b981814
AJ
882CLEANFILES += cf.data squid.conf.default squid.conf.documented \
883 DiskIO/DiskIOModules_gen.cc \
95329c22
HN
884 test_tools.cc *.a
885
886test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
887 cp $(top_srcdir)/test-suite/test_tools.cc .
a2794549 888
25b6a907 889# stock tools for unit tests - library independent versions of dlink_list
890# etc.
95329c22
HN
891# globals.cc is needed by test_tools.cc.
892# Neither of these should be disted from here.
25b6a907 893TESTSOURCES= \
95329c22 894 test_tools.cc \
25b6a907 895 globals.cc
896
e24ee19d 897# sources needed by those tests that need event.cc; incomplete
898TEST_CALL_SOURCES = \
882255af 899 event.cc
e24ee19d 900
e1f7507e 901
b707cdeb 902check_PROGRAMS+= tests/testAuth \
d295d770 903 tests/testACLMaxUserIP \
25b6a907 904 tests/testBoilerplate \
62ee09ca 905 tests/testCacheManager \
b7717b61 906 tests/testDiskIO \
a553a5a3 907 tests/testEvent \
908 tests/testEventLoop \
f24583c1 909 tests/test_http_range \
0f9db2d6 910 tests/testHttpReply \
c21ad0f5 911 tests/testHttpRequest \
25b6a907 912 tests/testStore \
30abd221 913 tests/testString \
985c86bc 914 tests/testURL \
3ae8895c 915 $(STORE_TESTS)
f5691f9c 916
104ed46e
AJ
917## NP: required to run the above list. check_PROGRAMS only builds the binaries...
918TESTS += $(check_PROGRAMS)
919
e1a88700 920### Template for new Unit Test Program
921## - add tests/testX to check_PROGRAMS above.
922## - copy template below and substitue X for class name
923## - add other component .(h|cc) files needed to link and run tests
924##
925##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
926##
927#tests_testX_SOURCES=\
928# tests/testX.h \
929# tests/testX.cc \
930# tests/testMain.cc \
931# X.h \
95329c22
HN
932# X.cc
933#nodist_tests_testX_SOURCES=\
e1a88700 934# $(TESTSOURCES)
935#tests_testX_LDFLAGS = $(LIBADD_DL)
936#tests_testX_LDADD=\
3ae8895c
A
937# $(SQUID_CPPUNIT_LIBS) \
938# $(SQUID_CPPUNIT_LA) \
0f1173d4 939# $(COMPAT_LIB) \
25f98340 940#tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
e1a88700 941
0f9db2d6
AJ
942
943# - add other component .(h|cc) files needed to link and run tests
944tests_testHttpReply_SOURCES=\
945 tests/testHttpReply.h \
946 tests/testHttpReply.cc \
947 tests/testMain.cc \
948 cbdata.h \
949 cbdata.cc \
950 ETag.cc \
951 HttpBody.cc \
952 HttpHdrCc.cc \
953 HttpHdrContRange.h \
954 HttpHdrContRange.cc \
955 HttpHdrRange.cc \
956 HttpHdrSc.h \
957 HttpHdrSc.cc \
958 HttpHdrScTarget.h \
959 HttpHdrScTarget.cc \
960 HttpHeader.h \
961 HttpHeader.cc \
962 HttpHeaderMask.h \
963 HttpHeaderTools.cc \
1288ea72 964 HttpControlMsg.h \
0f9db2d6
AJ
965 HttpMsg.h \
966 HttpMsg.cc \
967 HttpReply.h \
968 HttpReply.cc \
6feb0e7c 969 HttpStatusCode.h \
0f9db2d6
AJ
970 HttpStatusLine.h \
971 HttpStatusLine.cc \
972 mem.cc \
973 MemBuf.h \
974 MemBuf.cc \
975 mime_header.cc \
976 Packer.h \
977 Packer.cc \
978 tests/stub_cache_manager.cc \
25f98340 979 tests/stub_debug.cc \
48d54e4d 980 tests/stub_HelperChildConfig.cc \
0f9db2d6
AJ
981 tests/stub_StatHist.cc \
982 tests/stub_store.cc \
983 SquidString.h \
984 String.cc \
985 SquidTime.h \
986 time.cc
987nodist_tests_testHttpReply_SOURCES=\
988 $(TESTSOURCES)
989tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
990tests_testHttpReply_LDADD=\
991 acl/libapi.la \
992 acl/libstate.la \
993 auth/libauth.la \
994 ip/libip.la \
3d93a84d 995 base/libbase.la \
b4aca2d8 996 $(top_builddir)/lib/libmisccontainers.la \
25f98340
AJ
997 $(top_builddir)/lib/libmiscencoding.la \
998 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
999 $(SQUID_CPPUNIT_LIBS) \
1000 $(SQUID_CPPUNIT_LA) \
3d93a84d 1001 $(COMPAT_LIB) \
3ae8895c 1002 $(XTRA_LIBS)
25f98340 1003tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
0f9db2d6 1004
95329c22
HN
1005tests_testAuth_SOURCES = \
1006 tests/testAuth.cc tests/testMain.cc tests/testAuth.h \
d295d770 1007 ConfigParser.cc \
48d54e4d
AJ
1008 HelperChildConfig.h \
1009 HelperChildConfig.cc \
f5691f9c 1010 tests/stub_acl.cc tests/stub_cache_cf.cc \
25f98340 1011 tests/stub_debug.cc \
30abd221 1012 tests/stub_helper.cc cbdata.cc String.cc \
281422f8 1013 tests/stub_store.cc HttpHeaderTools.cc HttpHeader.cc mem.cc ClientInfo.h \
3ad63615
AR
1014 MemBuf.cc HttpHdrContRange.cc Packer.cc HttpHdrCc.cc HttpHdrSc.cc \
1015 HttpHdrScTarget.cc url.cc \
f5691f9c 1016 StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
81beaff8 1017 tests/stub_HttpRequest.cc tests/stub_DelayId.cc \
1018 tests/stub_MemObject.cc mem_node.cc \
9b3ed82c 1019 tests/stub_cache_manager.cc \
81beaff8 1020 stmem.cc \
81beaff8 1021 HttpMsg.cc \
985c86bc 1022 HttpRequestMethod.cc \
d295d770 1023 tests/stub_access_log.cc \
82b7abe3
AJ
1024 tests/stub_comm.cc \
1025 tests/stub_http.cc \
1026 tests/stub_mime.cc \
985c86bc 1027 time.cc \
1028 URLScheme.cc \
e24ee19d 1029 $(TEST_CALL_SOURCES) \
d295d770 1030 wordlist.cc
95329c22
HN
1031nodist_tests_testAuth_SOURCES = \
1032 $(TESTSOURCES)
f5691f9c 1033
1034tests_testAuth_LDADD= \
7d6fa4d4 1035 $(COMMON_LIBS) \
25f98340
AJ
1036 $(top_builddir)/lib/libmisccontainers.la \
1037 $(top_builddir)/lib/libmiscencoding.la \
1038 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
1039 $(REGEXLIB) \
1040 $(SQUID_CPPUNIT_LIBS) \
1041 $(SSLLIB) \
0f1173d4 1042 $(COMPAT_LIB) \
3ae8895c 1043 $(XTRA_LIBS)
f5691f9c 1044tests_testAuth_LDFLAGS = $(LIBADD_DL)
25f98340 1045tests_testAuth_DEPENDENCIES = \
3ae8895c 1046 $(SQUID_CPPUNIT_LA)
c8f4eac4 1047
d295d770 1048## Tests for the ACLMaxUserIP class
1049## acl needs wordlist. wordlist needs MemBug
1050## MemBuf needs mem, MemBuf needs event,
1051## event needs cbdata.
3ad63615 1052## ACLMaxUserUP needs libauth.la
d295d770 1053## ACLMaxUserIP needs ACLChecklist
1054## AuthUser request needs HttpHeader, which brings in
1055## ETag.cc \
1056## HttpHeader.cc \
1057## HttpHeaderTools.cc \
1058## HttpHdrContRange.cc \
1059## HttpHdrCc.cc \
1060## HttpHdrRange.cc \
1061## HttpHdrSc.cc \
1062## HttpHdrScTarget.cc \
1063## Packer.cc \
1064## StatHist.cc \
30abd221 1065## String.cc \
d295d770 1066tests_testACLMaxUserIP_SOURCES= \
d295d770 1067 cbdata.cc \
281422f8 1068 ClientInfo.h \
d295d770 1069 ConfigParser.cc \
d295d770 1070 ETag.cc \
48d54e4d
AJ
1071 HelperChildConfig.h \
1072 HelperChildConfig.cc \
d295d770 1073 HttpHeader.cc \
1074 HttpHeaderTools.cc \
1075 HttpHdrContRange.cc \
1076 HttpHdrRange.cc \
1077 HttpHdrCc.cc \
1078 HttpHdrSc.cc \
1079 HttpHdrScTarget.cc \
b1b15292 1080 mem_node.cc \
d295d770 1081 Packer.cc \
93a9ad6e 1082 Parsing.cc \
d295d770 1083 StatHist.cc \
b1b15292 1084 stmem.cc \
30abd221 1085 String.cc \
e24ee19d 1086 $(TEST_CALL_SOURCES) \
93a9ad6e 1087 tests/stub_cache_cf.cc \
b1b15292 1088 tests/stub_comm.cc \
25f98340 1089 tests/stub_debug.cc \
b1b15292 1090 tests/stub_DelayId.cc \
1091 tests/stub_MemObject.cc \
d295d770 1092 tests/stub_store.cc \
9b3ed82c 1093 tests/stub_cache_manager.cc \
d295d770 1094 tests/testACLMaxUserIP.cc \
1095 tests/testACLMaxUserIP.h \
1096 tests/testMain.cc \
985c86bc 1097 time.cc \
d295d770 1098 mem.cc \
1099 MemBuf.cc \
e24ee19d 1100 wordlist.cc
95329c22
HN
1101nodist_tests_testACLMaxUserIP_SOURCES= \
1102 $(TESTSOURCES)
d295d770 1103tests_testACLMaxUserIP_LDADD= \
7d6fa4d4 1104 $(COMMON_LIBS) \
25f98340
AJ
1105 $(top_builddir)/lib/libmisccontainers.la \
1106 $(top_builddir)/lib/libmiscencoding.la \
1107 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
1108 $(REGEXLIB) \
1109 $(SQUID_CPPUNIT_LIBS) \
1110 $(SSLLIB) \
0f1173d4 1111 $(COMPAT_LIB) \
3ae8895c 1112 $(XTRA_LIBS)
d295d770 1113tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1114tests_testACLMaxUserIP_DEPENDENCIES = \
3ae8895c 1115 $(SQUID_CPPUNIT_LA)
d295d770 1116
25b6a907 1117## a demonstration test that does nothing but shows the salient points
1118## involved in writing tests.
985c86bc 1119tests_testBoilerplate_SOURCES = \
1120 tests/testBoilerplate.cc \
1121 tests/testMain.cc \
1122 tests/testBoilerplate.h \
985c86bc 1123 time.cc
95329c22
HN
1124nodist_tests_testBoilerplate_SOURCES = \
1125 $(TESTSOURCES)
25b6a907 1126tests_testBoilerplate_LDADD= \
3ae8895c
A
1127 $(SQUID_CPPUNIT_LIBS) \
1128 $(SSLLIB) \
0f1173d4 1129 $(COMPAT_LIB) \
3ae8895c 1130 $(XTRA_LIBS)
25b6a907 1131tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1132tests_testBoilerplate_DEPENDENCIES = \
3ae8895c 1133 $(SQUID_CPPUNIT_LA)
25b6a907 1134
62ee09ca 1135## Tests of the CacheManager module.
1136tests_testCacheManager_SOURCES = \
5817ee13 1137 $(ACL_REGISTRATION_SOURCES) \
62ee09ca 1138 debug.cc \
62ee09ca 1139 HttpRequest.cc \
1140 HttpRequestMethod.cc \
1141 mem.cc \
30abd221 1142 String.cc \
62ee09ca 1143 tests/testCacheManager.cc \
a553a5a3 1144 tests/testCacheManager.h \
62ee09ca 1145 tests/testMain.cc \
d3578172 1146 tests/stub_main_cc.cc \
62ee09ca 1147 time.cc \
5f8252d2 1148 BodyPipe.cc \
62ee09ca 1149 cache_manager.cc \
1150 cache_cf.cc \
1b26be8f 1151 ProtoPort.cc \
1152 ProtoPort.h \
62ee09ca 1153 CacheDigest.cc \
1154 carp.cc \
1155 cbdata.cc \
81c07a23 1156 ChunkedCodingParser.cc \
62ee09ca 1157 client_db.cc \
1158 client_side.cc \
1159 client_side_reply.cc \
1160 client_side_request.cc \
281422f8 1161 ClientInfo.h \
62ee09ca 1162 clientStream.cc \
62ee09ca 1163 ConfigOption.cc \
1164 ConfigParser.cc \
96c2bb61
AR
1165 CpuAffinityMap.cc \
1166 CpuAffinityMap.h \
1167 CpuAffinitySet.cc \
1168 CpuAffinitySet.h \
62ee09ca 1169 $(DELAY_POOL_SOURCE) \
1170 disk.cc \
e1f7507e
AJ
1171 dlink.h \
1172 dlink.cc \
62ee09ca 1173 $(DNSSOURCE) \
62ee09ca 1174 errorpage.cc \
62ee09ca 1175 ETag.cc \
1176 external_acl.cc \
1177 ExternalACLEntry.cc \
1178 fd.cc \
1179 fde.cc \
1180 forward.cc \
1181 fqdncache.cc \
1182 ftp.cc \
1183 gopher.cc \
bbaf2685 1184 hier_code.h \
62ee09ca 1185 helper.cc \
48d54e4d
AJ
1186 HelperChildConfig.h \
1187 HelperChildConfig.cc \
62ee09ca 1188 $(HTCPSOURCE) \
1189 http.cc \
1190 HttpBody.cc \
1191 HttpHeader.cc \
1192 HttpHeaderTools.cc \
1193 HttpHdrCc.cc \
1194 HttpHdrContRange.cc \
1195 HttpHdrRange.cc \
1196 HttpHdrSc.cc \
1197 HttpHdrScTarget.cc \
1198 HttpMsg.cc \
1199 HttpReply.cc \
1200 HttpStatusLine.cc \
62ee09ca 1201 icp_v2.cc \
1202 icp_v3.cc \
b5d712b5 1203 $(IPC_SOURCE) \
62ee09ca 1204 ipcache.cc \
1205 int.cc \
1206 internal.cc \
1207 list.cc \
62ee09ca 1208 multicast.cc \
1209 mem_node.cc \
1210 MemBuf.cc \
1211 MemObject.cc \
1212 mime.cc \
0f9db2d6 1213 mime_header.cc \
62ee09ca 1214 neighbors.cc \
62ee09ca 1215 Packer.cc \
1216 Parsing.cc \
1217 pconn.cc \
1218 peer_digest.cc \
9ca29d23 1219 peer_proxy_negotiate_auth.cc \
62ee09ca 1220 peer_select.cc \
f4a21650
HN
1221 peer_sourcehash.cc \
1222 peer_userhash.cc \
62ee09ca 1223 redirect.cc \
62ee09ca 1224 refresh.cc \
aa839030 1225 RemovalPolicy.cc \
62ee09ca 1226 Server.cc \
1227 $(SNMP_SOURCE) \
a98bcbee
AJ
1228 SquidMath.h \
1229 SquidMath.cc \
62ee09ca 1230 stat.cc \
1231 StatHist.cc \
1232 stmem.cc \
1233 store.cc \
1234 store_client.cc \
1235 store_digest.cc \
1236 store_dir.cc \
1237 store_io.cc \
1238 store_key_md5.cc \
1239 store_log.cc \
1240 store_rebuild.cc \
1241 store_swapin.cc \
1242 store_swapmeta.cc \
1243 store_swapout.cc \
1244 StoreFileSystem.cc \
1245 StoreIOState.cc \
1246 StoreMeta.cc \
1247 StoreMetaMD5.cc \
1248 StoreMetaSTD.cc \
47f6e231 1249 StoreMetaSTDLFS.cc \
62ee09ca 1250 StoreMetaUnpacker.cc \
1251 StoreMetaURL.cc \
1252 StoreMetaVary.cc \
1253 StoreSwapLogData.cc \
e24ee19d 1254 $(TEST_CALL_SOURCES) \
62ee09ca 1255 tools.cc \
1256 tunnel.cc \
1257 SwapDir.cc \
1258 url.cc \
1259 URLScheme.cc \
1260 urn.cc \
62288514 1261 wccp2.cc \
62ee09ca 1262 whois.cc \
8277060a 1263 FadingCounter.cc \
9c8434f6 1264 $(WIN32_SOURCE) \
62ee09ca 1265 wordlist.cc
1266nodist_tests_testCacheManager_SOURCES = \
4b981814 1267 $(BUILT_SOURCES)
ec41b64c 1268# comm.cc only requires comm/libcomm.la until fdc_table is dead.
62ee09ca 1269tests_testCacheManager_LDADD = \
7d6fa4d4 1270 $(COMMON_LIBS) \
ec41b64c 1271 comm/libcomm.la \
71787d05 1272 icmp/libicmp.la icmp/libicmp-core.la \
82b7abe3 1273 log/liblog.la \
3ae8895c 1274 $(REPL_OBJS) \
51a7ff6e 1275 ${ADAPTATION_LIBS} \
88bfe098 1276 $(ESI_LIBS) \
95d2589c 1277 $(SSL_LIBS) \
25f98340
AJ
1278 $(top_builddir)/lib/libmisccontainers.la \
1279 $(top_builddir)/lib/libmiscencoding.la \
1280 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
1281 $(REGEXLIB) \
1282 $(SNMPLIB) \
3ae8895c
A
1283 $(SQUID_CPPUNIT_LIBS) \
1284 $(SQUID_CPPUNIT_LA) \
1285 $(SSLLIB) \
1286 $(KRB5LIBS) \
0f1173d4 1287 $(COMPAT_LIB) \
3ae8895c 1288 $(XTRA_LIBS)
62ee09ca 1289tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
25f98340 1290tests_testCacheManager_DEPENDENCIES = \
3ae8895c
A
1291 $(REPL_OBJS) \
1292 $(SQUID_CPPUNIT_LA)
62ee09ca 1293
95329c22 1294tests_testDiskIO_SOURCES = \
b7717b61 1295 $(SWAP_TEST_SOURCES) \
1296 tests/testDiskIO.cc \
1297 tests/testDiskIO.h \
b707cdeb 1298 tests/testMain.cc \
48d54e4d 1299 tests/stub_cache_manager.cc \
8822ebee
AR
1300 tests/stub_HelperChildConfig.cc \
1301 tests/stub_Port.cc \
84daf9b0 1302 tests/stub_TypedMsgHdr.cc \
8822ebee 1303 tests/stub_UdsOp.cc
95329c22 1304nodist_tests_testDiskIO_SOURCES= \
4b981814 1305 $(SWAP_TEST_GEN_SOURCES) \
a98bcbee
AJ
1306 SquidMath.cc \
1307 SquidMath.h \
4b981814 1308 swap_log_op.cc
95329c22 1309tests_testDiskIO_LDADD = \
5dbaae6d 1310 SquidConfig.o \
8822ebee
AR
1311 CommCalls.o \
1312 DnsLookupDetails.o \
25f98340
AJ
1313 $(COMMON_LIBS) \
1314 $(REPL_OBJS) \
1315 $(DISK_LIBS) \
1316 $(DISK_OS_LIBS) \
1317 acl/libapi.la \
1318 $(top_builddir)/lib/libmisccontainers.la \
1319 $(top_builddir)/lib/libmiscencoding.la \
1320 $(top_builddir)/lib/libmiscutil.la \
1321 $(REGEXLIB) \
1322 $(SQUID_CPPUNIT_LIBS) \
1323 $(SSLLIB) \
1324 $(COMPAT_LIB) \
3ae8895c 1325 $(XTRA_LIBS)
3ad63615 1326
b7717b61 1327tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
25f98340 1328tests_testDiskIO_DEPENDENCIES = \
3ae8895c 1329 $(DISK_LIBS) \
09c5ae5a 1330 $(SWAP_TEST_DS) \
3ae8895c 1331 $(SQUID_CPPUNIT_LA)
b7717b61 1332
a553a5a3 1333## Tests of the Even module.
1334tests_testEvent_SOURCES = \
5817ee13 1335 $(ACL_REGISTRATION_SOURCES) \
a553a5a3 1336 debug.cc \
1337 EventLoop.h \
1338 EventLoop.cc \
a553a5a3 1339 HttpRequest.cc \
1340 HttpRequestMethod.cc \
1341 mem.cc \
aa839030 1342 RemovalPolicy.cc \
30abd221 1343 String.cc \
0e566514 1344 tests/CapturingStoreEntry.h \
a553a5a3 1345 tests/testEvent.cc \
1346 tests/testEvent.h \
1347 tests/testMain.cc \
d3578172 1348 tests/stub_main_cc.cc \
a553a5a3 1349 time.cc \
5f8252d2 1350 BodyPipe.cc \
a553a5a3 1351 cache_manager.cc \
1352 cache_cf.cc \
1b26be8f 1353 ProtoPort.cc \
1354 ProtoPort.h \
a553a5a3 1355 CacheDigest.cc \
1356 carp.cc \
1357 cbdata.cc \
81c07a23 1358 ChunkedCodingParser.cc \
a553a5a3 1359 client_db.cc \
1360 client_side.cc \
1361 client_side_reply.cc \
1362 client_side_request.cc \
281422f8 1363 ClientInfo.h \
a553a5a3 1364 clientStream.cc \
a553a5a3 1365 ConfigOption.cc \
1366 ConfigParser.cc \
96c2bb61
AR
1367 CpuAffinityMap.cc \
1368 CpuAffinityMap.h \
1369 CpuAffinitySet.cc \
1370 CpuAffinitySet.h \
a553a5a3 1371 $(DELAY_POOL_SOURCE) \
1372 disk.cc \
e1f7507e
AJ
1373 dlink.h \
1374 dlink.cc \
a553a5a3 1375 $(DNSSOURCE) \
a553a5a3 1376 errorpage.cc \
a553a5a3 1377 ETag.cc \
1378 external_acl.cc \
1379 ExternalACLEntry.cc \
1380 fd.cc \
1381 fde.cc \
1382 forward.cc \
1383 fqdncache.cc \
1384 ftp.cc \
1385 gopher.cc \
bbaf2685 1386 hier_code.h \
a553a5a3 1387 helper.cc \
48d54e4d
AJ
1388 HelperChildConfig.h \
1389 HelperChildConfig.cc \
a553a5a3 1390 $(HTCPSOURCE) \
1391 http.cc \
1392 HttpBody.cc \
1393 HttpHeader.cc \
1394 HttpHeaderTools.cc \
1395 HttpHdrCc.cc \
1396 HttpHdrContRange.cc \
1397 HttpHdrRange.cc \
1398 HttpHdrSc.cc \
1399 HttpHdrScTarget.cc \
1400 HttpMsg.cc \
1401 HttpReply.cc \
1402 HttpStatusLine.cc \
a553a5a3 1403 icp_v2.cc \
1404 icp_v3.cc \
b5d712b5 1405 $(IPC_SOURCE) \
a553a5a3 1406 ipcache.cc \
1407 int.cc \
1408 internal.cc \
1409 list.cc \
a553a5a3 1410 multicast.cc \
1411 mem_node.cc \
1412 MemBuf.cc \
1413 MemObject.cc \
1414 mime.cc \
0f9db2d6 1415 mime_header.cc \
a553a5a3 1416 neighbors.cc \
a553a5a3 1417 Packer.cc \
1418 Parsing.cc \
1419 pconn.cc \
1420 peer_digest.cc \
9ca29d23 1421 peer_proxy_negotiate_auth.cc \
a553a5a3 1422 peer_select.cc \
f4a21650
HN
1423 peer_sourcehash.cc \
1424 peer_userhash.cc \
a553a5a3 1425 redirect.cc \
a553a5a3 1426 refresh.cc \
1427 Server.cc \
1428 $(SNMP_SOURCE) \
a98bcbee
AJ
1429 SquidMath.h \
1430 SquidMath.cc \
a553a5a3 1431 stat.cc \
1432 StatHist.cc \
1433 stmem.cc \
1434 store.cc \
1435 store_client.cc \
1436 store_digest.cc \
1437 store_dir.cc \
1438 store_io.cc \
1439 store_key_md5.cc \
1440 store_log.cc \
1441 store_rebuild.cc \
1442 store_swapin.cc \
1443 store_swapmeta.cc \
1444 store_swapout.cc \
1445 StoreFileSystem.cc \
1446 StoreIOState.cc \
1447 StoreMeta.cc \
1448 StoreMetaMD5.cc \
1449 StoreMetaSTD.cc \
47f6e231 1450 StoreMetaSTDLFS.cc \
a553a5a3 1451 StoreMetaUnpacker.cc \
1452 StoreMetaURL.cc \
1453 StoreMetaVary.cc \
1454 StoreSwapLogData.cc \
e24ee19d 1455 $(TEST_CALL_SOURCES) \
a553a5a3 1456 tools.cc \
1457 tunnel.cc \
1458 SwapDir.cc \
1459 url.cc \
1460 URLScheme.cc \
1461 urn.cc \
a553a5a3 1462 wccp2.cc \
1463 whois.cc \
8277060a 1464 FadingCounter.cc \
9c8434f6 1465 $(WIN32_SOURCE) \
a553a5a3 1466 wordlist.cc
1467nodist_tests_testEvent_SOURCES = \
4b981814 1468 $(BUILT_SOURCES)
a553a5a3 1469tests_testEvent_LDADD = \
7d6fa4d4 1470 $(COMMON_LIBS) \
9b5c4a9a 1471 icmp/libicmp.la icmp/libicmp-core.la \
ec41b64c 1472 comm/libcomm.la \
82b7abe3 1473 log/liblog.la \
3ae8895c 1474 $(REPL_OBJS) \
51a7ff6e 1475 ${ADAPTATION_LIBS} \
88bfe098 1476 $(ESI_LIBS) \
95d2589c 1477 $(SSL_LIBS) \
25f98340
AJ
1478 $(top_builddir)/lib/libmisccontainers.la \
1479 $(top_builddir)/lib/libmiscencoding.la \
1480 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
1481 $(REGEXLIB) \
1482 $(SNMPLIB) \
3ae8895c
A
1483 $(SQUID_CPPUNIT_LIBS) \
1484 $(SQUID_CPPUNIT_LA) \
1485 $(SSLLIB) \
1486 $(KRB5LIBS) \
0f1173d4 1487 $(COMPAT_LIB) \
3ae8895c 1488 $(XTRA_LIBS)
a553a5a3 1489tests_testEvent_LDFLAGS = $(LIBADD_DL)
25f98340 1490tests_testEvent_DEPENDENCIES = \
3ae8895c
A
1491 $(REPL_OBJS) \
1492 $(SQUID_CPPUNIT_LA)
a553a5a3 1493
1494## Tests of the EventLoop module.
1495tests_testEventLoop_SOURCES = \
5817ee13 1496 $(ACL_REGISTRATION_SOURCES) \
a553a5a3 1497 debug.cc \
1498 EventLoop.h \
1499 EventLoop.cc \
a553a5a3 1500 HttpRequest.cc \
1501 HttpRequestMethod.cc \
1502 mem.cc \
aa839030 1503 RemovalPolicy.cc \
30abd221 1504 String.cc \
a553a5a3 1505 tests/testEventLoop.cc \
1506 tests/testEventLoop.h \
1507 tests/testMain.cc \
d3578172 1508 tests/stub_main_cc.cc \
a553a5a3 1509 time.cc \
5f8252d2 1510 BodyPipe.cc \
a553a5a3 1511 cache_manager.cc \
1512 cache_cf.cc \
1b26be8f 1513 ProtoPort.cc \
1514 ProtoPort.h \
a553a5a3 1515 CacheDigest.cc \
1516 carp.cc \
1517 cbdata.cc \
81c07a23 1518 ChunkedCodingParser.cc \
a553a5a3 1519 client_db.cc \
1520 client_side.cc \
1521 client_side_reply.cc \
1522 client_side_request.cc \
281422f8 1523 ClientInfo.h \
a553a5a3 1524 clientStream.cc \
a553a5a3 1525 ConfigOption.cc \
1526 ConfigParser.cc \
96c2bb61
AR
1527 CpuAffinityMap.cc \
1528 CpuAffinityMap.h \
1529 CpuAffinitySet.cc \
1530 CpuAffinitySet.h \
a553a5a3 1531 $(DELAY_POOL_SOURCE) \
1532 disk.cc \
e1f7507e
AJ
1533 dlink.h \
1534 dlink.cc \
a553a5a3 1535 $(DNSSOURCE) \
a553a5a3 1536 errorpage.cc \
a553a5a3 1537 ETag.cc \
1538 external_acl.cc \
1539 ExternalACLEntry.cc \
1540 fd.cc \
1541 fde.cc \
1542 forward.cc \
1543 fqdncache.cc \
1544 ftp.cc \
1545 gopher.cc \
1546 helper.cc \
48d54e4d
AJ
1547 HelperChildConfig.h \
1548 HelperChildConfig.cc \
bbaf2685 1549 hier_code.h \
a553a5a3 1550 $(HTCPSOURCE) \
1551 http.cc \
1552 HttpBody.cc \
1553 HttpHeader.cc \
1554 HttpHeaderTools.cc \
1555 HttpHdrCc.cc \
1556 HttpHdrContRange.cc \
1557 HttpHdrRange.cc \
1558 HttpHdrSc.cc \
1559 HttpHdrScTarget.cc \
1560 HttpMsg.cc \
1561 HttpReply.cc \
1562 HttpStatusLine.cc \
a553a5a3 1563 icp_v2.cc \
1564 icp_v3.cc \
b5d712b5 1565 $(IPC_SOURCE) \
a553a5a3 1566 ipcache.cc \
1567 int.cc \
1568 internal.cc \
1569 list.cc \
a553a5a3 1570 multicast.cc \
1571 mem_node.cc \
1572 MemBuf.cc \
1573 MemObject.cc \
1574 mime.cc \
0f9db2d6 1575 mime_header.cc \
a553a5a3 1576 neighbors.cc \
a553a5a3 1577 Packer.cc \
1578 Parsing.cc \
1579 pconn.cc \
1580 peer_digest.cc \
9ca29d23 1581 peer_proxy_negotiate_auth.cc \
a553a5a3 1582 peer_select.cc \
f4a21650
HN
1583 peer_sourcehash.cc \
1584 peer_userhash.cc \
a553a5a3 1585 redirect.cc \
a553a5a3 1586 refresh.cc \
1587 Server.cc \
1588 $(SNMP_SOURCE) \
a98bcbee
AJ
1589 SquidMath.h \
1590 SquidMath.cc \
a553a5a3 1591 stat.cc \
1592 StatHist.cc \
1593 stmem.cc \
1594 store.cc \
1595 store_client.cc \
1596 store_digest.cc \
1597 store_dir.cc \
1598 store_io.cc \
1599 store_key_md5.cc \
1600 store_log.cc \
1601 store_rebuild.cc \
1602 store_swapin.cc \
1603 store_swapmeta.cc \
1604 store_swapout.cc \
1605 StoreFileSystem.cc \
1606 StoreIOState.cc \
1607 StoreMeta.cc \
1608 StoreMetaMD5.cc \
1609 StoreMetaSTD.cc \
fa10da4a 1610 StoreMetaSTDLFS.cc \
a553a5a3 1611 StoreMetaUnpacker.cc \
1612 StoreMetaURL.cc \
1613 StoreMetaVary.cc \
1614 StoreSwapLogData.cc \
e24ee19d 1615 $(TEST_CALL_SOURCES) \
a553a5a3 1616 tools.cc \
1617 tunnel.cc \
1618 SwapDir.cc \
1619 url.cc \
1620 URLScheme.cc \
1621 urn.cc \
a553a5a3 1622 wccp2.cc \
1623 whois.cc \
8277060a 1624 FadingCounter.cc \
9c8434f6 1625 $(WIN32_SOURCE) \
a553a5a3 1626 wordlist.cc
1627nodist_tests_testEventLoop_SOURCES = \
4b981814 1628 $(BUILT_SOURCES)
a553a5a3 1629tests_testEventLoop_LDADD = \
7d6fa4d4 1630 $(COMMON_LIBS) \
9b5c4a9a 1631 icmp/libicmp.la icmp/libicmp-core.la \
ec41b64c 1632 comm/libcomm.la \
82b7abe3 1633 log/liblog.la \
3ae8895c 1634 $(REPL_OBJS) \
51a7ff6e 1635 ${ADAPTATION_LIBS} \
88bfe098 1636 $(ESI_LIBS) \
95d2589c 1637 $(SSL_LIBS) \
25f98340
AJ
1638 $(top_builddir)/lib/libmisccontainers.la \
1639 $(top_builddir)/lib/libmiscencoding.la \
1640 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
1641 $(REGEXLIB) \
1642 $(SNMPLIB) \
3ae8895c
A
1643 $(SQUID_CPPUNIT_LIBS) \
1644 $(SQUID_CPPUNIT_LA) \
1645 $(SSLLIB) \
1646 $(KRB5LIBS) \
0f1173d4 1647 $(COMPAT_LIB) \
3ae8895c 1648 $(XTRA_LIBS)
a553a5a3 1649tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
25f98340 1650tests_testEventLoop_DEPENDENCIES = \
3ae8895c
A
1651 $(REPL_OBJS) \
1652 $(SQUID_CPPUNIT_LA)
62ee09ca 1653
f24583c1 1654tests_test_http_range_SOURCES = \
5817ee13 1655 $(ACL_REGISTRATION_SOURCES) \
f24583c1 1656 tests/test_http_range.cc \
5f8252d2 1657 BodyPipe.cc \
f24583c1 1658 cache_cf.cc \
1b26be8f 1659 ProtoPort.cc \
1660 ProtoPort.h \
f24583c1 1661 cache_manager.cc \
1662 CacheDigest.cc \
1663 carp.cc \
1664 cbdata.cc \
81c07a23 1665 ChunkedCodingParser.cc \
f24583c1 1666 client_db.cc \
1667 client_side.cc \
1668 client_side_reply.cc \
1669 client_side_request.cc \
281422f8 1670 ClientInfo.h \
f24583c1 1671 clientStream.cc \
f24583c1 1672 ConfigOption.cc \
1673 ConfigParser.cc \
96c2bb61
AR
1674 CpuAffinityMap.cc \
1675 CpuAffinityMap.h \
1676 CpuAffinitySet.cc \
1677 CpuAffinitySet.h \
d3578172 1678 tests/stub_main_cc.cc \
f24583c1 1679 debug.cc \
1680 $(DELAY_POOL_SOURCE) \
1681 disk.cc \
e1f7507e
AJ
1682 dlink.h \
1683 dlink.cc \
f24583c1 1684 $(DNSSOURCE) \
f24583c1 1685 errorpage.cc \
f24583c1 1686 ETag.cc \
1687 external_acl.cc \
1688 ExternalACLEntry.cc \
1689 fd.cc \
1690 fde.cc \
1691 forward.cc \
1692 fqdncache.cc \
1693 ftp.cc \
f24583c1 1694 gopher.cc \
1695 helper.cc \
48d54e4d
AJ
1696 HelperChildConfig.h \
1697 HelperChildConfig.cc \
bbaf2685 1698 hier_code.h \
f24583c1 1699 $(HTCPSOURCE) \
1700 http.cc \
1701 HttpBody.cc \
1702 HttpHdrCc.cc \
1703 HttpHdrContRange.cc \
1704 HttpHdrRange.cc \
1705 HttpHdrSc.cc \
1706 HttpHdrScTarget.cc \
1707 HttpHeader.cc \
1708 HttpHeaderTools.cc \
1709 HttpMsg.cc \
1710 HttpReply.cc \
1711 HttpRequest.cc \
1712 HttpRequestMethod.cc \
1713 HttpStatusLine.cc \
f24583c1 1714 icp_v2.cc \
1715 icp_v3.cc \
f24583c1 1716 int.cc \
1717 internal.cc \
b5d712b5 1718 $(IPC_SOURCE) \
f24583c1 1719 ipcache.cc \
1720 list.cc \
f24583c1 1721 mem.cc \
1722 mem_node.cc \
1723 MemObject.cc \
1724 mime.cc \
0f9db2d6 1725 mime_header.cc \
f24583c1 1726 multicast.cc \
1727 neighbors.cc \
f24583c1 1728 Parsing.cc \
1729 peer_digest.cc \
9ca29d23 1730 peer_proxy_negotiate_auth.cc \
f24583c1 1731 peer_select.cc \
f4a21650
HN
1732 peer_sourcehash.cc \
1733 peer_userhash.cc \
f24583c1 1734 pconn.cc \
1735 redirect.cc \
1736 refresh.cc \
aa839030 1737 RemovalPolicy.cc \
f24583c1 1738 Server.cc \
1739 $(SNMP_SOURCE) \
a98bcbee
AJ
1740 SquidMath.h \
1741 SquidMath.cc \
f24583c1 1742 stat.cc \
1743 StatHist.cc \
1744 stmem.cc \
1745 store.cc \
1746 store_client.cc \
1747 store_digest.cc \
1748 store_dir.cc \
1749 store_key_md5.cc \
1750 store_io.cc \
1751 store_log.cc \
1752 store_rebuild.cc \
1753 store_swapin.cc \
1754 store_swapmeta.cc \
1755 store_swapout.cc \
1756 StoreFileSystem.cc \
1757 StoreIOState.cc \
1758 StoreMeta.cc \
1759 StoreMetaMD5.cc \
1760 StoreMetaSTD.cc \
47f6e231 1761 StoreMetaSTDLFS.cc \
f24583c1 1762 StoreMetaUnpacker.cc \
1763 StoreMetaURL.cc \
1764 StoreMetaVary.cc \
1765 StoreSwapLogData.cc \
30abd221 1766 String.cc \
f24583c1 1767 SwapDir.cc \
e24ee19d 1768 $(TEST_CALL_SOURCES) \
f24583c1 1769 time.cc \
1770 tools.cc \
1771 tunnel.cc \
1772 url.cc \
1773 URLScheme.cc \
1774 urn.cc \
62288514 1775 wccp2.cc \
f24583c1 1776 whois.cc \
8277060a 1777 FadingCounter.cc \
9c8434f6 1778 $(WIN32_SOURCE) \
f24583c1 1779 wordlist.cc \
1780 Packer.cc \
1781 MemBuf.cc
1782nodist_tests_test_http_range_SOURCES = \
4b981814 1783 $(BUILT_SOURCES)
f24583c1 1784tests_test_http_range_LDADD = \
7d6fa4d4 1785 $(COMMON_LIBS) \
9b5c4a9a 1786 icmp/libicmp.la icmp/libicmp-core.la \
ec41b64c 1787 comm/libcomm.la \
82b7abe3 1788 log/liblog.la \
3ae8895c 1789 $(REPL_OBJS) \
51a7ff6e 1790 ${ADAPTATION_LIBS} \
88bfe098 1791 $(ESI_LIBS) \
95d2589c 1792 $(SSL_LIBS) \
25f98340
AJ
1793 $(top_builddir)/lib/libmisccontainers.la \
1794 $(top_builddir)/lib/libmiscencoding.la \
1795 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
1796 $(REGEXLIB) \
1797 $(SNMPLIB) \
3ae8895c
A
1798 $(SQUID_CPPUNIT_LIBS) \
1799 $(SQUID_CPPUNIT_LA) \
1800 $(SSLLIB) \
1801 $(KRB5LIBS) \
0f1173d4 1802 $(COMPAT_LIB) \
3ae8895c 1803 $(XTRA_LIBS)
36dca327 1804tests_test_http_range_LDFLAGS = $(LIBADD_DL)
f24583c1 1805tests_test_http_range_DEPENDENCIES = \
3ae8895c 1806 $(SQUID_CPPUNIT_LA)
f24583c1 1807
25b6a907 1808
c21ad0f5 1809## Tests of the HttpRequest module.
1810tests_testHttpRequest_SOURCES = \
5817ee13 1811 $(ACL_REGISTRATION_SOURCES) \
985c86bc 1812 HttpRequest.cc \
1813 HttpRequestMethod.cc \
1814 mem.cc \
30abd221 1815 String.cc \
0e566514 1816 tests/testHttpRequest.h \
985c86bc 1817 tests/testHttpRequest.cc \
0e566514 1818 tests/testHttpRequestMethod.h \
985c86bc 1819 tests/testHttpRequestMethod.cc \
1820 tests/testMain.cc \
d3578172 1821 tests/stub_main_cc.cc \
985c86bc 1822 time.cc \
5f8252d2 1823 BodyPipe.cc \
c21ad0f5 1824 cache_manager.cc \
1825 cache_cf.cc \
25f98340 1826 debug.cc \
1b26be8f 1827 ProtoPort.cc \
1828 ProtoPort.h \
c21ad0f5 1829 CacheDigest.cc \
1830 carp.cc \
1831 cbdata.cc \
81c07a23 1832 ChunkedCodingParser.cc \
c21ad0f5 1833 client_db.cc \
1834 client_side.cc \
1835 client_side_reply.cc \
1836 client_side_request.cc \
281422f8 1837 ClientInfo.h \
c21ad0f5 1838 clientStream.cc \
c21ad0f5 1839 ConfigOption.cc \
1840 ConfigParser.cc \
96c2bb61
AR
1841 CpuAffinityMap.cc \
1842 CpuAffinityMap.h \
1843 CpuAffinitySet.cc \
1844 CpuAffinitySet.h \
c21ad0f5 1845 $(DELAY_POOL_SOURCE) \
c21ad0f5 1846 disk.cc \
e1f7507e
AJ
1847 dlink.h \
1848 dlink.cc \
c21ad0f5 1849 $(DNSSOURCE) \
c21ad0f5 1850 errorpage.cc \
c21ad0f5 1851 ETag.cc \
1852 external_acl.cc \
1853 ExternalACLEntry.cc \
1854 fd.cc \
1855 fde.cc \
1856 forward.cc \
1857 fqdncache.cc \
1858 ftp.cc \
c21ad0f5 1859 gopher.cc \
1860 helper.cc \
48d54e4d
AJ
1861 HelperChildConfig.h \
1862 HelperChildConfig.cc \
bbaf2685 1863 hier_code.h \
1edbd3b6 1864 $(HTCPSOURCE) \
c21ad0f5 1865 http.cc \
1866 HttpBody.cc \
1867 HttpHeader.cc \
1868 HttpHeaderTools.cc \
1869 HttpHdrCc.cc \
1870 HttpHdrContRange.cc \
1871 HttpHdrRange.cc \
1872 HttpHdrSc.cc \
1873 HttpHdrScTarget.cc \
1874 HttpMsg.cc \
c21ad0f5 1875 HttpReply.cc \
1876 HttpStatusLine.cc \
c21ad0f5 1877 icp_v2.cc \
1878 icp_v3.cc \
b5d712b5 1879 $(IPC_SOURCE) \
c21ad0f5 1880 ipcache.cc \
c21ad0f5 1881 int.cc \
1882 internal.cc \
1883 list.cc \
c21ad0f5 1884 multicast.cc \
c21ad0f5 1885 mem_node.cc \
1886 MemBuf.cc \
1887 MemObject.cc \
1888 mime.cc \
0f9db2d6 1889 mime_header.cc \
c21ad0f5 1890 neighbors.cc \
c21ad0f5 1891 Packer.cc \
1892 Parsing.cc \
1893 pconn.cc \
1894 peer_digest.cc \
9ca29d23 1895 peer_proxy_negotiate_auth.cc \
c21ad0f5 1896 peer_select.cc \
f4a21650
HN
1897 peer_sourcehash.cc \
1898 peer_userhash.cc \
c21ad0f5 1899 redirect.cc \
1900 refresh.cc \
aa839030 1901 RemovalPolicy.cc \
c21ad0f5 1902 Server.cc \
1903 $(SNMP_SOURCE) \
a98bcbee
AJ
1904 SquidMath.h \
1905 SquidMath.cc \
c21ad0f5 1906 stat.cc \
1907 StatHist.cc \
1908 stmem.cc \
1909 store.cc \
1910 store_client.cc \
1911 store_digest.cc \
1912 store_dir.cc \
1913 store_io.cc \
1914 store_key_md5.cc \
1915 store_log.cc \
1916 store_rebuild.cc \
1917 store_swapin.cc \
1918 store_swapmeta.cc \
1919 store_swapout.cc \
1920 StoreFileSystem.cc \
1921 StoreIOState.cc \
1922 StoreMeta.cc \
1923 StoreMetaMD5.cc \
1924 StoreMetaSTD.cc \
47f6e231 1925 StoreMetaSTDLFS.cc \
c21ad0f5 1926 StoreMetaUnpacker.cc \
1927 StoreMetaURL.cc \
1928 StoreMetaVary.cc \
1929 StoreSwapLogData.cc \
e24ee19d 1930 $(TEST_CALL_SOURCES) \
c21ad0f5 1931 tools.cc \
1932 tunnel.cc \
1933 SwapDir.cc \
1934 url.cc \
985c86bc 1935 URLScheme.cc \
c21ad0f5 1936 urn.cc \
62288514 1937 wccp2.cc \
c21ad0f5 1938 whois.cc \
8277060a 1939 FadingCounter.cc \
9c8434f6 1940 $(WIN32_SOURCE) \
c21ad0f5 1941 wordlist.cc
1942nodist_tests_testHttpRequest_SOURCES = \
4b981814 1943 $(BUILT_SOURCES)
c21ad0f5 1944tests_testHttpRequest_LDADD = \
7d6fa4d4 1945 $(COMMON_LIBS) \
9b5c4a9a 1946 icmp/libicmp.la icmp/libicmp-core.la \
ec41b64c 1947 comm/libcomm.la \
82b7abe3 1948 log/liblog.la \
3ae8895c 1949 $(REPL_OBJS) \
51a7ff6e 1950 ${ADAPTATION_LIBS} \
88bfe098 1951 $(ESI_LIBS) \
95d2589c 1952 $(SSL_LIBS) \
25f98340
AJ
1953 $(top_builddir)/lib/libmisccontainers.la \
1954 $(top_builddir)/lib/libmiscencoding.la \
1955 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
1956 $(REGEXLIB) \
1957 $(SNMPLIB) \
3ae8895c
A
1958 $(SQUID_CPPUNIT_LIBS) \
1959 $(SQUID_CPPUNIT_LA) \
1960 $(SSLLIB) \
1961 $(KRB5LIBS) \
0f1173d4 1962 $(COMPAT_LIB) \
3ae8895c 1963 $(XTRA_LIBS)
c21ad0f5 1964tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
25f98340 1965tests_testHttpRequest_DEPENDENCIES = \
3ae8895c
A
1966 $(REPL_OBJS) \
1967 $(SQUID_CPPUNIT_LA)
c21ad0f5 1968
25b6a907 1969# TODO:mime.cc drags in HttpReply.cc
b1b15292 1970# delay pools need client_side_request.cc
985c86bc 1971# store_key_md5 wants the method.
c8f4eac4 1972STORE_TEST_SOURCES=\
e24ee19d 1973 $(TEST_CALL_SOURCES) \
74925dd4 1974 $(DELAY_POOL_SOURCE) \
c8f4eac4 1975 CacheDigest.cc \
d295d770 1976 ConfigParser.cc \
8ff3fa2e 1977 EventLoop.cc \
25b6a907 1978 HttpMsg.cc \
aa839030 1979 RemovalPolicy.cc \
c8f4eac4 1980 store_dir.cc \
1981 store.cc \
985c86bc 1982 HttpRequestMethod.cc \
c8f4eac4 1983 store_key_md5.cc \
c8f4eac4 1984 Parsing.cc \
1985 ConfigOption.cc \
1986 SwapDir.cc \
c8f4eac4 1987 tests/stub_acl.cc tests/stub_cache_cf.cc \
30abd221 1988 tests/stub_helper.cc cbdata.cc String.cc \
c8f4eac4 1989 tests/stub_comm.cc \
25f98340 1990 tests/stub_debug.cc \
b1b15292 1991 tests/stub_client_side_request.cc \
c8f4eac4 1992 tests/stub_http.cc \
1993 mem_node.cc \
1994 stmem.cc \
25b6a907 1995 tests/stub_mime.cc \
281422f8 1996 HttpHeaderTools.cc HttpHeader.cc mem.cc ClientInfo.h \
3ad63615
AR
1997 MemBuf.cc HttpHdrContRange.cc Packer.cc HttpHdrCc.cc HttpHdrSc.cc \
1998 HttpHdrScTarget.cc url.cc \
c8f4eac4 1999 StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
d295d770 2000 tests/stub_HttpRequest.cc tests/stub_access_log.cc \
b1b15292 2001 refresh.cc \
2002 tests/stub_store_client.cc \
2003 tests/stub_tools.cc \
8ff3fa2e 2004 tests/testStoreSupport.cc \
2005 tests/testStoreSupport.h \
985c86bc 2006 time.cc \
2007 URLScheme.cc \
d295d770 2008 wordlist.cc
c8f4eac4 2009
2010## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2011## first line - what we are testing.
b1b15292 2012tests_testStore_SOURCES= \
2013 tests/stub_store_swapout.cc \
c8f4eac4 2014 tests/testMain.cc \
b1b15292 2015 tests/stub_MemObject.cc \
2016 tests/testStore.cc \
c8f4eac4 2017 tests/testStore.h \
0e566514 2018 tests/CapturingStoreEntry.h \
c21ad0f5 2019 tests/testStoreEntryStream.cc \
2020 tests/testStoreEntryStream.h \
b1b15292 2021 tests/testStoreController.cc \
c8f4eac4 2022 tests/testStoreController.h \
b1b15292 2023 tests/testStoreHashIndex.cc \
c8f4eac4 2024 tests/testStoreHashIndex.h \
2025 tests/TestSwapDir.cc \
2026 tests/TestSwapDir.h \
48d54e4d 2027 tests/stub_HelperChildConfig.cc \
c8f4eac4 2028 tests/stub_HttpReply.cc \
b707cdeb 2029 tests/stub_cache_manager.cc \
8822ebee
AR
2030 tests/stub_Port.cc \
2031 tests/stub_TypedMsgHdr.cc \
2032 tests/stub_UdsOp.cc \
04f55905
AJ
2033 $(STORE_TEST_SOURCES) \
2034 tests/stub_fd.cc
c8f4eac4 2035
95329c22 2036nodist_tests_testStore_SOURCES= \
4b981814 2037 $(TESTSOURCES) \
a98bcbee
AJ
2038 SquidMath.cc \
2039 SquidMath.h \
4b981814 2040 swap_log_op.cc
95329c22 2041
c8f4eac4 2042tests_testStore_LDADD= \
7d6fa4d4 2043 $(COMMON_LIBS) \
25f98340
AJ
2044 $(top_builddir)/lib/libmisccontainers.la \
2045 $(top_builddir)/lib/libmiscencoding.la \
2046 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
2047 $(REGEXLIB) \
2048 $(SQUID_CPPUNIT_LIBS) \
2049 $(SSLLIB) \
8822ebee
AR
2050 CommCalls.o \
2051 DnsLookupDetails.o \
0f1173d4 2052 $(COMPAT_LIB) \
3ae8895c 2053 $(XTRA_LIBS)
c8f4eac4 2054tests_testStore_LDFLAGS = $(LIBADD_DL)
25f98340 2055tests_testStore_DEPENDENCIES = \
3ae8895c 2056 $(SQUID_CPPUNIT_LA)
30abd221 2057
281422f8
AJ
2058## string needs mem.cc.
2059## mem.cc needs ClientInfo.h
2060## libsquid pulls in SquidConfig and children. stub them.
95329c22 2061tests_testString_SOURCES = \
281422f8 2062 ClientInfo.h \
c21ad0f5 2063 mem.cc \
30abd221 2064 String.cc \
c21ad0f5 2065 tests/testMain.cc \
2066 tests/testString.cc \
2067 tests/testString.h \
b707cdeb 2068 tests/stub_cache_manager.cc \
25f98340 2069 tests/stub_debug.cc \
48d54e4d 2070 tests/stub_HelperChildConfig.cc \
575cb927 2071 time.cc
95329c22
HN
2072nodist_tests_testString_SOURCES = \
2073 $(TESTSOURCES)
2074tests_testString_LDADD = \
7d6fa4d4 2075 $(COMMON_LIBS) \
25f98340 2076 $(top_builddir)/lib/libmiscutil.la \
3ae8895c
A
2077 $(REGEXLIB) \
2078 $(SQUID_CPPUNIT_LIBS) \
2079 $(SSLLIB) \
0f1173d4 2080 $(COMPAT_LIB) \
3ae8895c 2081 $(XTRA_LIBS)
c21ad0f5 2082tests_testString_LDFLAGS = $(LIBADD_DL)
25f98340 2083tests_testString_DEPENDENCIES = \
3ae8895c 2084 $(SQUID_CPPUNIT_LA)
c21ad0f5 2085
d295d770 2086SWAP_TEST_SOURCES = \
c8f4eac4 2087 tests/stub_internal.cc \
3fcdb6b9
AJ
2088 tests/stub_CommIO.cc \
2089 tests/stub_store_rebuild.cc \
c8f4eac4 2090 fd.cc \
2091 disk.cc \
2092 filemap.cc \
2093 HttpBody.cc \
c8f4eac4 2094 HttpReply.cc \
2095 HttpStatusLine.cc \
2096 int.cc \
2097 list.cc \
2098 MemObject.cc \
c8f4eac4 2099 StoreSwapLogData.cc \
2100 StoreIOState.cc \
2101 StoreMeta.cc \
2102 StoreMetaMD5.cc \
2103 StoreMetaSTD.cc \
47f6e231 2104 StoreMetaSTDLFS.cc \
c8f4eac4 2105 StoreMetaUnpacker.cc \
2106 StoreMetaURL.cc \
2107 StoreMetaVary.cc \
2108 StoreFileSystem.cc \
2109 store_io.cc \
2110 store_swapout.cc \
2111 store_swapmeta.cc \
a65d4fbb 2112 $(UNLINKDSOURCE) \
e3d21ec7 2113 $(WIN32_SOURCE) \
c8f4eac4 2114 $(STORE_TEST_SOURCES) \
2115 $(DISKIO_SOURCE)
2116
95329c22 2117SWAP_TEST_GEN_SOURCES = \
4b981814 2118 $(TESTSOURCES) \
304b7b73 2119 $(DISKIO_GEN_SOURCE)
95329c22 2120
c8f4eac4 2121SWAP_TEST_DS =\
c8f4eac4 2122 repl_modules.o \
3ae8895c 2123 $(DISK_LIBS) \
7b5b7ba8 2124 $(COMMON_LIBS) \
3ae8895c
A
2125 $(REPL_OBJS) \
2126 $(SQUID_CPPUNIT_LA)
c8f4eac4 2127
95329c22
HN
2128tests_testUfs_SOURCES = \
2129 tests/testUfs.cc \
c8f4eac4 2130 tests/testMain.cc \
2131 tests/testUfs.h \
b707cdeb 2132 tests/stub_cache_manager.cc \
48d54e4d 2133 tests/stub_HelperChildConfig.cc \
8822ebee
AR
2134 tests/stub_Port.cc \
2135 tests/stub_TypedMsgHdr.cc \
2136 tests/stub_UdsOp.cc \
c8f4eac4 2137 $(SWAP_TEST_SOURCES)
95329c22 2138nodist_tests_testUfs_SOURCES = \
4b981814 2139 $(SWAP_TEST_GEN_SOURCES) \
a98bcbee
AJ
2140 SquidMath.cc \
2141 SquidMath.h \
4b981814 2142 swap_log_op.cc
95329c22 2143tests_testUfs_LDADD = \
8822ebee
AR
2144 CommCalls.o \
2145 DnsLookupDetails.o \
25f98340
AJ
2146 $(COMMON_LIBS) \
2147 $(REPL_OBJS) \
2148 $(DISK_LIBS) \
2149 $(DISK_OS_LIBS) \
2150 acl/libapi.la \
2151 $(top_builddir)/lib/libmisccontainers.la \
2152 $(top_builddir)/lib/libmiscencoding.la \
2153 $(top_builddir)/lib/libmiscutil.la \
2154 $(REGEXLIB) \
2155 $(SQUID_CPPUNIT_LIBS) \
2156 $(SSLLIB) \
2157 $(COMPAT_LIB) \
3ae8895c 2158 $(XTRA_LIBS)
c8f4eac4 2159tests_testUfs_LDFLAGS = $(LIBADD_DL)
2160tests_testUfs_DEPENDENCIES = \
2161 $(SWAP_TEST_DS)
2162
95329c22
HN
2163tests_testCoss_SOURCES = \
2164 tests/testCoss.cc \
c8f4eac4 2165 tests/testMain.cc \
2166 tests/testCoss.h \
b707cdeb 2167 tests/stub_cache_manager.cc \
25f98340 2168 tests/stub_debug.cc \
48d54e4d 2169 tests/stub_HelperChildConfig.cc \
c8f4eac4 2170 $(SWAP_TEST_SOURCES)
95329c22 2171nodist_tests_testCoss_SOURCES = \
5e943f64 2172 swap_log_op.cc \
defb3257
FC
2173 SquidMath.cc \
2174 SquidMath.h \
95329c22
HN
2175 $(SWAP_TEST_GEN_SOURCES)
2176tests_testCoss_LDADD = \
9de55861 2177 libsquid.la \
25f98340
AJ
2178 $(REGEXLIB) \
2179 $(COMMON_LIBS) \
2180 $(REPL_OBJS) \
2181 $(DISK_LIBS) \
2182 $(DISK_OS_LIBS) \
2183 acl/libapi.la \
2184 $(top_builddir)/lib/libmisccontainers.la \
2185 $(top_builddir)/lib/libmiscencoding.la \
2186 $(top_builddir)/lib/libmiscutil.la \
2187 $(SQUID_CPPUNIT_LIBS) \
3ae8895c 2188 $(SSLLIB) \
25f98340 2189 $(COMPAT_LIB) \
3ae8895c 2190 $(XTRA_LIBS)
c8f4eac4 2191tests_testCoss_LDFLAGS = $(LIBADD_DL)
2192tests_testCoss_DEPENDENCIES = \
2193 $(SWAP_TEST_DS)
2194
95329c22
HN
2195tests_testNull_SOURCES = \
2196 tests/testNull.cc \
c8f4eac4 2197 tests/testMain.cc \
2198 tests/testNull.h \
2199 $(SWAP_TEST_SOURCES)
95329c22
HN
2200nodist_tests_testNull_SOURCES = \
2201 $(SWAP_TEST_GEN_SOURCES)
2202tests_testNull_LDADD = \
25f98340
AJ
2203 $(REGEXLIB) \
2204 $(COMMON_LIBS) \
2205 $(REPL_OBJS) \
2206 $(DISK_LIBS) \
2207 $(DISK_OS_LIBS) \
2208 acl/libapi.la \
2209 $(top_builddir)/lib/libmisccontainers.la \
2210 $(top_builddir)/lib/libmiscencoding.la \
2211 $(top_builddir)/lib/libmiscutil.la \
2212 $(SQUID_CPPUNIT_LIBS) \
3ae8895c 2213 $(SSLLIB) \
25f98340 2214 $(COMPAT_LIB) \
3ae8895c 2215 $(XTRA_LIBS)
c8f4eac4 2216tests_testNull_LDFLAGS = $(LIBADD_DL)
2217tests_testNull_DEPENDENCIES = \
2218 $(SWAP_TEST_DS)
985c86bc 2219
2220## Tests of the URL module.
2221## TODO: Trim this down once the insanity is over.
2222tests_testURL_SOURCES = \
5817ee13 2223 $(ACL_REGISTRATION_SOURCES) \
985c86bc 2224 url.cc \
2225 URLScheme.cc \
985c86bc 2226 HttpRequest.cc \
2227 HttpRequestMethod.cc \
2228 mem.cc \
aa839030 2229 RemovalPolicy.cc \
30abd221 2230 String.cc \
985c86bc 2231 tests/testURL.cc \
2232 tests/testURL.h \
2233 tests/testURLScheme.cc \
2234 tests/testURLScheme.h \
2235 tests/testMain.cc \
25f98340 2236 tests/stub_debug.cc \
d3578172 2237 tests/stub_main_cc.cc \
985c86bc 2238 time.cc \
5f8252d2 2239 BodyPipe.cc \
985c86bc 2240 cache_manager.cc \
2241 cache_cf.cc \
1b26be8f 2242 ProtoPort.cc \
2243 ProtoPort.h \
985c86bc 2244 CacheDigest.cc \
2245 carp.cc \
2246 cbdata.cc \
81c07a23 2247 ChunkedCodingParser.cc \
985c86bc 2248 client_db.cc \
2249 client_side.cc \
2250 client_side_reply.cc \
2251 client_side_request.cc \
281422f8 2252 ClientInfo.h \
985c86bc 2253 clientStream.cc \
985c86bc 2254 ConfigOption.cc \
2255 ConfigParser.cc \
96c2bb61
AR
2256 CpuAffinityMap.cc \
2257 CpuAffinityMap.h \
2258 CpuAffinitySet.cc \
2259 CpuAffinitySet.h \
985c86bc 2260 $(DELAY_POOL_SOURCE) \
2261 disk.cc \
e1f7507e
AJ
2262 dlink.h \
2263 dlink.cc \
985c86bc 2264 $(DNSSOURCE) \
985c86bc 2265 errorpage.cc \
985c86bc 2266 ETag.cc \
2267 external_acl.cc \
2268 ExternalACLEntry.cc \
2269 fd.cc \
2270 fde.cc \
2271 forward.cc \
2272 fqdncache.cc \
2273 ftp.cc \
2274 gopher.cc \
2275 helper.cc \
48d54e4d
AJ
2276 HelperChildConfig.h \
2277 HelperChildConfig.cc \
bbaf2685 2278 hier_code.h \
1edbd3b6 2279 $(HTCPSOURCE) \
985c86bc 2280 http.cc \
2281 HttpBody.cc \
2282 HttpHeader.cc \
2283 HttpHeaderTools.cc \
2284 HttpHdrCc.cc \
2285 HttpHdrContRange.cc \
2286 HttpHdrRange.cc \
2287 HttpHdrSc.cc \
2288 HttpHdrScTarget.cc \
2289 HttpMsg.cc \
2290 HttpReply.cc \
2291 HttpStatusLine.cc \
985c86bc 2292 icp_v2.cc \
2293 icp_v3.cc \
b5d712b5 2294 $(IPC_SOURCE) \
985c86bc 2295 ipcache.cc \
985c86bc 2296 int.cc \
2297 internal.cc \
2298 list.cc \
985c86bc 2299 multicast.cc \
2300 mem_node.cc \
2301 MemBuf.cc \
2302 MemObject.cc \
2303 mime.cc \
0f9db2d6 2304 mime_header.cc \
985c86bc 2305 neighbors.cc \
985c86bc 2306 Packer.cc \
2307 Parsing.cc \
2308 pconn.cc \
2309 peer_digest.cc \
9ca29d23 2310 peer_proxy_negotiate_auth.cc \
985c86bc 2311 peer_select.cc \
f4a21650
HN
2312 peer_sourcehash.cc \
2313 peer_userhash.cc \
985c86bc 2314 redirect.cc \
2315 refresh.cc \
2316 Server.cc \
2317 $(SNMP_SOURCE) \
a98bcbee
AJ
2318 SquidMath.h \
2319 SquidMath.cc \
985c86bc 2320 stat.cc \
2321 StatHist.cc \
2322 stmem.cc \
2323 store.cc \
2324 store_client.cc \
2325 store_digest.cc \
2326 store_dir.cc \
2327 store_io.cc \
2328 store_key_md5.cc \
2329 store_log.cc \
2330 store_rebuild.cc \
2331 store_swapin.cc \
2332 store_swapmeta.cc \
2333 store_swapout.cc \
2334 StoreFileSystem.cc \
2335 StoreIOState.cc \
2336 StoreMeta.cc \
2337 StoreMetaMD5.cc \
2338 StoreMetaSTD.cc \
47f6e231 2339 StoreMetaSTDLFS.cc \
985c86bc 2340 StoreMetaUnpacker.cc \
2341 StoreMetaURL.cc \
2342 StoreMetaVary.cc \
2343 StoreSwapLogData.cc \
e24ee19d 2344 $(TEST_CALL_SOURCES) \
985c86bc 2345 tools.cc \
2346 tunnel.cc \
2347 SwapDir.cc \
2348 urn.cc \
62288514 2349 wccp2.cc \
985c86bc 2350 whois.cc \
8277060a 2351 FadingCounter.cc \
9c8434f6 2352 $(WIN32_SOURCE) \
985c86bc 2353 wordlist.cc
2354nodist_tests_testURL_SOURCES = \
4b981814 2355 $(BUILT_SOURCES)
985c86bc 2356tests_testURL_LDADD = \
7d6fa4d4 2357 $(COMMON_LIBS) \
9b5c4a9a 2358 icmp/libicmp.la icmp/libicmp-core.la \
ec41b64c 2359 comm/libcomm.la \
82b7abe3 2360 log/liblog.la \
3ae8895c
A
2361 $(REGEXLIB) \
2362 $(REPL_OBJS) \
51a7ff6e 2363 ${ADAPTATION_LIBS} \
88bfe098 2364 $(ESI_LIBS) \
95d2589c 2365 $(SSL_LIBS) \
3ae8895c 2366 $(SNMPLIB) \
25f98340
AJ
2367 $(top_builddir)/lib/libmisccontainers.la \
2368 $(top_builddir)/lib/libmiscencoding.la \
2369 $(top_builddir)/lib/libmiscutil.la \
2370 $(COMPAT_LIB) \
3ae8895c
A
2371 $(SQUID_CPPUNIT_LIBS) \
2372 $(SQUID_CPPUNIT_LA) \
2373 $(SSLLIB) \
2374 $(KRB5LIBS) \
0f1173d4 2375 $(COMPAT_LIB) \
3ae8895c 2376 $(XTRA_LIBS)
985c86bc 2377tests_testURL_LDFLAGS = $(LIBADD_DL)
25f98340 2378tests_testURL_DEPENDENCIES = \
3ae8895c
A
2379 $(REPL_OBJS) \
2380 $(SQUID_CPPUNIT_LA)
ee342e0b
AJ
2381
2382
2383TESTS += testHeaders
2384
2385## Special Universal .h dependency test script
2386## aborts if error encountered
508e9b20 2387testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
a0fdc9bf 2388 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
ee342e0b
AJ
2389## src/repl/ has no .h files and its own makefile.
2390
2391CLEANFILES += testHeaders
2392.PHONY: testHeaders
2393