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