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