]> git.ipfire.org Git - thirdparty/squid.git/blob - src/Makefile.am
Cleanup: remove client_side_request.cci file
[thirdparty/squid.git] / src / Makefile.am
1 ## Copyright (C) 1996-2017 The Squid Software Foundation and contributors
2 ##
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
6 ##
7
8 include $(top_srcdir)/src/Common.am
9
10 DNSSOURCE = \
11 dns_internal.cc
12
13 STOREMETA_SOURCE = \
14 StoreMeta.cc \
15 StoreMeta.h \
16 StoreMetaMD5.cc \
17 StoreMetaMD5.h \
18 StoreMetaSTD.cc \
19 StoreMetaSTD.h \
20 StoreMetaSTDLFS.cc \
21 StoreMetaSTDLFS.h \
22 StoreMetaObjSize.h \
23 StoreMetaURL.cc \
24 StoreMetaURL.h \
25 StoreMetaVary.cc \
26 StoreMetaVary.h
27
28 LOADABLE_MODULES_SOURCES = \
29 LoadableModule.h \
30 LoadableModule.cc \
31 LoadableModules.h \
32 LoadableModules.cc
33
34 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO
35 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO
36
37 if ENABLE_AUTH
38 SUBDIRS += auth
39 AUTH_LIBS= auth/libauth.la
40 AUTH_ACL_LIBS= auth/libacls.la
41 check_PROGRAMS+= tests/testACLMaxUserIP
42 endif
43 DIST_SUBDIRS += auth
44
45 SUBDIRS += http ip icmp ident log ipc mgr
46 DIST_SUBDIRS += http ip icmp ident log ipc mgr
47
48 SSL_LIBS=
49 if ENABLE_SSL
50 SUBDIRS += ssl
51 SSL_LIBS += \
52 ssl/libsslsquid.la \
53 ssl/libsslutil.la
54 endif
55 DIST_SUBDIRS += ssl security
56 SUBDIRS += security
57
58 SNMP_ALL_SOURCE = \
59 SnmpRequest.h \
60 snmp_core.h \
61 snmp_core.cc \
62 snmp_agent.h \
63 snmp_agent.cc
64 if ENABLE_SNMP
65 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
66 SUBDIRS += snmp
67 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
68 else
69 SNMP_SOURCE =
70 endif
71 DIST_SUBDIRS += snmp
72
73 if ENABLE_ADAPTATION
74 SUBDIRS += adaptation
75 endif
76 DIST_SUBDIRS += adaptation
77
78 if ENABLE_ESI
79 SUBDIRS += esi
80 ESI_LIBS = \
81 esi/libesi.la \
82 $(top_builddir)/lib/libTrie/libTrie.a \
83 $(XMLLIB) \
84 $(EXPATLIB)
85 else
86 ESI_LIBS =
87 endif
88 DIST_SUBDIRS += esi
89
90 DELAY_POOL_ALL_SOURCE = \
91 CommonPool.h \
92 CompositePoolNode.h \
93 delay_pools.cc \
94 DelayId.cc \
95 DelayId.h \
96 DelayIdComposite.h \
97 DelayBucket.cc \
98 DelayBucket.h \
99 DelayConfig.cc \
100 DelayConfig.h \
101 DelayPool.cc \
102 DelayPool.h \
103 DelayPools.h \
104 DelaySpec.cc \
105 DelaySpec.h \
106 DelayTagged.cc \
107 DelayTagged.h \
108 DelayUser.cc \
109 DelayUser.h \
110 DelayVector.cc \
111 DelayVector.h \
112 NullDelayId.cc \
113 NullDelayId.h \
114 ClientDelayConfig.cc \
115 ClientDelayConfig.h
116
117 if ENABLE_DELAY_POOLS
118 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
119 else
120 DELAY_POOL_SOURCE =
121 endif
122
123 if ENABLE_XPROF_STATS
124 XPROF_STATS_SOURCE = ProfStats.cc
125 else
126 XPROF_STATS_SOURCE =
127 endif
128
129 if ENABLE_HTCP
130 HTCPSOURCE = htcp.cc htcp.h
131 endif
132
133 if ENABLE_LEAKFINDER
134 LEAKFINDERSOURCE = LeakFinder.cc
135 else
136 LEAKFINDERSOURCE =
137 endif
138
139 if ENABLE_UNLINKD
140 UNLINKDSOURCE = unlinkd.h unlinkd.cc
141 UNLINKD = unlinkd
142 else
143 UNLINKDSOURCE = unlinkd.h
144 UNLINKD =
145 endif
146
147 WIN32_ALL_SOURCE = \
148 win32.h \
149 win32.cc \
150 WinSvc.h \
151 WinSvc.cc
152 if ENABLE_WIN32SPECIFIC
153 WIN32_SOURCE = win32.cc
154 WINSVC_SOURCE = WinSvc.cc
155 else
156 WIN32_SOURCE =
157 WINSVC_SOURCE =
158 endif
159
160 if ENABLE_WIN32_IPC
161 IPC_SOURCE = SquidIpc.h ipc_win32.cc
162 else
163 IPC_SOURCE = SquidIpc.h ipc.cc
164 endif
165
166 noinst_LTLIBRARIES = libsquid.la
167
168 EXTRA_PROGRAMS = \
169 unlinkd \
170 recv-announce \
171 tests/testUfs \
172 tests/testRock \
173 ufsdump
174
175 ## cfgen is used when building squid
176 ## ufsdump is a debug utility, it is possibly useful for end users with cache
177 ## corruption, but at this point we do not install it.
178 noinst_PROGRAMS = \
179 cf_gen
180
181 sbin_PROGRAMS = \
182 squid
183
184 bin_PROGRAMS =
185
186 libexec_PROGRAMS = \
187 $(UNLINKD)
188
189 cf_gen_SOURCES = cf_gen.cc
190 nodist_cf_gen_HEADER = cf_gen_defines.cci
191 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
192 cf_gen_LDADD=
193 cf_gen.$(OBJEXT): cf_gen_defines.cci
194
195 ## cf_gen.cc needs src/cf_gen_defines.cci
196 AM_CPPFLAGS += -I$(top_builddir)/src
197
198
199 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
200
201 # common library for all the binaries and tests. This is kindof a catch all
202 # and smaller libraries split from this are encouraged. Using lt convenience
203 # libraries, dependencies should not be a problem either.
204 libsquid_la_SOURCES = \
205 comm.cc \
206 comm.h \
207 CommCalls.cc \
208 CommCalls.h \
209 DescriptorSet.cc \
210 DescriptorSet.h \
211 SquidConfig.h \
212 SquidConfig.cc
213
214 squid_SOURCES = \
215 $(ACL_REGISTRATION_SOURCES) \
216 AccessLogEntry.cc \
217 AccessLogEntry.h \
218 AsyncEngine.cc \
219 AsyncEngine.h \
220 cache_cf.h \
221 AuthReg.h \
222 RefreshPattern.h \
223 cache_cf.cc \
224 CacheDigest.h \
225 CacheDigest.cc \
226 cache_manager.cc \
227 NeighborTypeDomainList.h \
228 CachePeer.cc \
229 CachePeer.h \
230 CacheManager.h \
231 carp.h \
232 carp.cc \
233 cbdata.cc \
234 cbdata.h \
235 client_db.h \
236 client_db.cc \
237 client_side.h \
238 client_side.cc \
239 client_side.h \
240 client_side_reply.cc \
241 client_side_reply.h \
242 client_side_request.cc \
243 client_side_request.h \
244 ClientInfo.h \
245 BodyPipe.cc \
246 BodyPipe.h \
247 ClientInfo.h \
248 ClientRequestContext.h \
249 clientStream.cc \
250 clientStream.h \
251 clientStreamForward.h \
252 CollapsedForwarding.cc \
253 CollapsedForwarding.h \
254 CompletionDispatcher.cc \
255 CompletionDispatcher.h \
256 CommRead.h \
257 ConfigOption.cc \
258 ConfigParser.cc \
259 ConfigParser.h \
260 CpuAffinity.cc \
261 CpuAffinity.h \
262 CpuAffinityMap.cc \
263 CpuAffinityMap.h \
264 CpuAffinitySet.cc \
265 CpuAffinitySet.h \
266 debug.cc \
267 Debug.h \
268 defines.h \
269 $(DELAY_POOL_SOURCE) \
270 fs_io.h \
271 fs_io.cc \
272 dlink.h \
273 dlink.cc \
274 $(DNSSOURCE) \
275 Downloader.cc \
276 Downloader.h \
277 enums.h \
278 err_type.h \
279 err_detail_type.h \
280 errorpage.cc \
281 errorpage.h \
282 ETag.cc \
283 ETag.h \
284 event.cc \
285 event.h \
286 EventLoop.h \
287 EventLoop.cc \
288 external_acl.cc \
289 ExternalACL.h \
290 ExternalACLEntry.cc \
291 ExternalACLEntry.h \
292 FadingCounter.h \
293 FadingCounter.cc \
294 fatal.h \
295 fatal.cc \
296 fd.h \
297 fd.cc \
298 fde.cc \
299 fde.h \
300 FileMap.h \
301 filemap.cc \
302 fqdncache.h \
303 fqdncache.cc \
304 FwdState.cc \
305 FwdState.h \
306 Generic.h \
307 globals.h \
308 gopher.h \
309 gopher.cc \
310 helper.cc \
311 helper.h \
312 hier_code.h \
313 HierarchyLogEntry.h \
314 $(HTCPSOURCE) \
315 http.cc \
316 http.h \
317 HttpHeaderFieldStat.h \
318 HttpHdrCc.h \
319 HttpHdrCc.cc \
320 HttpHdrRange.cc \
321 HttpHdrSc.cc \
322 HttpHdrSc.h \
323 HttpHdrScTarget.cc \
324 HttpHdrScTarget.h \
325 HttpHdrContRange.cc \
326 HttpHdrContRange.h \
327 HttpHeaderStat.h \
328 HttpHeader.h \
329 HttpHeader.cc \
330 HttpHeaderMask.h \
331 HttpHeaderRange.h \
332 HttpHeaderFieldInfo.h \
333 HttpHeaderTools.h \
334 HttpHeaderTools.cc \
335 HttpBody.h \
336 HttpBody.cc \
337 HttpControlMsg.cc \
338 HttpControlMsg.h \
339 HttpMsg.cc \
340 HttpMsg.h \
341 HttpReply.cc \
342 HttpReply.h \
343 RequestFlags.h \
344 RequestFlags.cc \
345 HttpRequest.cc \
346 HttpRequest.h \
347 ICP.h \
348 icp_opcode.h \
349 icp_v2.cc \
350 icp_v3.cc \
351 int.h \
352 int.cc \
353 internal.h \
354 internal.cc \
355 $(IPC_SOURCE) \
356 ipcache.cc \
357 ipcache.h \
358 $(LEAKFINDERSOURCE) \
359 LogTags.cc \
360 LogTags.h \
361 lookup_t.h \
362 main.cc \
363 MasterXaction.cc \
364 MasterXaction.h \
365 mem_node.cc \
366 mem_node.h \
367 MemBuf.cc \
368 MemObject.cc \
369 MemObject.h \
370 MessageSizes.h \
371 mime.h \
372 mime.cc \
373 mime_header.h \
374 mime_header.cc \
375 multicast.h \
376 multicast.cc \
377 neighbors.h \
378 neighbors.cc \
379 Notes.h \
380 Notes.cc \
381 Parsing.cc \
382 Parsing.h \
383 $(XPROF_STATS_SOURCE) \
384 pconn.cc \
385 pconn.h \
386 PeerDigest.h \
387 peer_digest.cc \
388 peer_proxy_negotiate_auth.h \
389 peer_proxy_negotiate_auth.cc \
390 peer_select.cc \
391 peer_sourcehash.h \
392 peer_sourcehash.cc \
393 peer_userhash.h \
394 peer_userhash.cc \
395 PeerPoolMgr.h \
396 PeerPoolMgr.cc \
397 PeerSelectState.h \
398 PingData.h \
399 Pipeline.cc \
400 Pipeline.h \
401 protos.h \
402 redirect.h \
403 redirect.cc \
404 refresh.h \
405 refresh.cc \
406 RemovalPolicy.cc \
407 RemovalPolicy.h \
408 send-announce.h \
409 send-announce.cc \
410 SBufStatsAction.h \
411 SBufStatsAction.cc \
412 sbuf/StringConvert.h \
413 $(SNMP_SOURCE) \
414 SquidMath.h \
415 SquidMath.cc \
416 SquidNew.cc \
417 IoStats.h \
418 stat.h \
419 stat.cc \
420 StatCounters.h \
421 StatCounters.cc \
422 StatHist.h \
423 StatHist.cc \
424 String.cc \
425 StrList.h \
426 StrList.cc \
427 stmem.cc \
428 stmem.h \
429 repl_modules.h \
430 store.cc \
431 Store.h \
432 StoreFileSystem.cc \
433 StoreFileSystem.h \
434 store_io.cc \
435 StoreIOBuffer.h \
436 StoreIOState.cc \
437 StoreIOState.h \
438 store_client.cc \
439 StoreClient.h \
440 store_digest.h \
441 store_digest.cc \
442 store_key_md5.h \
443 store_key_md5.cc \
444 store_log.h \
445 store_log.cc \
446 store_rebuild.h \
447 store_rebuild.cc \
448 store_swapin.h \
449 store_swapin.cc \
450 store_swapmeta.cc \
451 store_swapout.cc \
452 StoreMetaUnpacker.cc \
453 StoreMetaUnpacker.h \
454 $(STOREMETA_SOURCE) \
455 StoreSearch.h \
456 StoreStats.cc \
457 StoreStats.h \
458 StoreSwapLogData.cc \
459 StoreSwapLogData.h \
460 swap_log_op.h \
461 Transients.cc \
462 Transients.h \
463 MemStore.cc \
464 MemStore.h \
465 time.cc \
466 TimeOrTag.h \
467 tools.h \
468 tools.cc \
469 tunnel.cc \
470 typedefs.h \
471 $(UNLINKDSOURCE) \
472 url.cc \
473 URL.h \
474 urn.h \
475 urn.cc \
476 wccp.h \
477 wccp.cc \
478 wccp2.h \
479 wccp2.cc \
480 whois.h \
481 whois.cc \
482 wordlist.h \
483 wordlist.cc \
484 $(WIN32_SOURCE) \
485 $(WINSVC_SOURCE)
486
487 EXTRA_squid_SOURCES = \
488 $(all_AUTHMODULES) \
489 ConfigOption.h \
490 $(DELAY_POOL_ALL_SOURCE) \
491 htcp.cc \
492 htcp.h \
493 ipc.cc \
494 ipc_win32.cc \
495 ProfStats.cc \
496 LeakFinder.cc \
497 LeakFinder.h \
498 $(SNMP_ALL_SOURCE) \
499 $(UNLINKDSOURCE) \
500 $(WIN32_ALL_SOURCE) \
501 $(LOADABLE_MODULES_SOURCES)
502
503 noinst_HEADERS = \
504 MemBuf.h \
505 SquidString.h \
506 SquidTime.h
507
508 BUILT_SOURCES = \
509 cf_gen_defines.cci \
510 cf_parser.cci \
511 err_type.cc \
512 err_detail_type.cc \
513 globals.cc \
514 hier_code.cc \
515 icp_opcode.cc \
516 lookup_t.cc \
517 repl_modules.cc \
518 swap_log_op.cc
519
520 CLEANFILES += $(BUILT_SOURCES)
521
522 nodist_squid_SOURCES = \
523 $(BUILT_SOURCES)
524
525 squid_LDADD = \
526 $(AUTH_ACL_LIBS) \
527 ident/libident.la \
528 acl/libacls.la \
529 acl/libstate.la \
530 $(AUTH_LIBS) \
531 acl/libapi.la \
532 clients/libclients.la \
533 servers/libservers.la \
534 ftp/libftp.la \
535 helper/libhelper.la \
536 http/libhttp.la \
537 dns/libdns.la \
538 base/libbase.la \
539 libsquid.la \
540 ip/libip.la \
541 fs/libfs.la \
542 DiskIO/libdiskio.la \
543 comm/libcomm.la \
544 anyp/libanyp.la \
545 security/libsecurity.la \
546 $(SSL_LIBS) \
547 ipc/libipc.la \
548 mgr/libmgr.la \
549 parser/libparser.la \
550 eui/libeui.la \
551 icmp/libicmp.la \
552 log/liblog.la \
553 format/libformat.la \
554 sbuf/libsbuf.la \
555 $(XTRA_OBJS) \
556 $(REPL_OBJS) \
557 $(NETTLELIB) \
558 $(CRYPTLIB) \
559 $(REGEXLIB) \
560 $(ADAPTATION_LIBS) \
561 $(ESI_LIBS) \
562 $(SNMP_LIBS) \
563 mem/libmem.la \
564 store/libstore.la \
565 $(top_builddir)/lib/libmisccontainers.la \
566 $(top_builddir)/lib/libmiscencoding.la \
567 $(top_builddir)/lib/libmiscutil.la \
568 $(ATOMICLIB) \
569 $(SSLLIB) \
570 $(EPOLL_LIBS) \
571 $(MINGW_LIBS) \
572 $(KRB5LIBS) \
573 $(COMPAT_LIB) \
574 $(XTRA_LIBS)
575
576 if ENABLE_LOADABLE_MODULES
577 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
578 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
579 squid_LDFLAGS = -export-dynamic -dlopen force
580 ## when static module linking is supported and enabled:
581 ## squid_LDFLAGS = -all-static -dlopen self
582 ##
583 ## LTDL headers require their local include path...
584 AM_CPPFLAGS += $(INCLTDL)
585 endif
586
587 ## Kerberos libraries require their include path...
588 AM_CPPFLAGS += $(KRB5INCS)
589
590
591 unlinkd_SOURCES = unlinkd_daemon.cc
592 unlinkd_LDADD = \
593 $(COMPAT_LIB) \
594 $(XTRA_LIBS)
595
596 recv_announce_SOURCES = recv-announce.cc
597
598 ## What requires what..
599 ## many things want ACLChecklist.cc
600 ## ACLChecklist.cc wants AuthUserRequest.cc
601 ## ACLChecklist.cc wants AuthScheme.cc
602 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
603 ## ACLProxyAuth.cc wants ACLUserData
604 ## ACLProxyAuth.cc wants ACLRegexData
605 ## cache_cf.cc wants $(AUTH_LIBS)
606 ## cache_cf.cc wants store/libstore.la
607 ## cache_cf.cc wants AnyP::PortCfg
608 ## client_side wants client_db
609 ## client_db wants SNMP_SOURCE
610 ## snmp_core wants ACLStringData
611 ## tools.cc wants ip/libip.la
612 ## client_side.cc wants ip/libip.la
613 ## libbase.la wants cbdata.*
614 ## libbase.la wants MemBuf.*
615 ufsdump_SOURCES = \
616 ClientInfo.h \
617 cbdata.h \
618 cbdata.cc \
619 debug.cc \
620 int.h \
621 int.cc \
622 mem/forward.h \
623 MemBuf.cc \
624 MemBuf.h \
625 Parsing.h \
626 store_key_md5.h \
627 store_key_md5.cc \
628 tests/stub_StoreMeta.cc \
629 StoreMetaUnpacker.cc \
630 String.cc \
631 SquidNew.cc \
632 tests/stub_time.cc \
633 ufsdump.cc \
634 dlink.h \
635 dlink.cc \
636 helper/ChildConfig.h \
637 tests/stub_HelperChildConfig.cc \
638 RemovalPolicy.cc \
639 $(WIN32_SOURCE) \
640 fd.h \
641 tests/stub_fd.cc
642 ufsdump_LDADD = \
643 ident/libident.la \
644 acl/libacls.la \
645 eui/libeui.la \
646 acl/libstate.la \
647 acl/libapi.la \
648 base/libbase.la \
649 libsquid.la \
650 ip/libip.la \
651 fs/libfs.la \
652 ipc/libipc.la \
653 mgr/libmgr.la \
654 $(XTRA_OBJS) \
655 $(REPL_OBJS) \
656 $(NETTLELIB) \
657 $(CRYPTLIB) \
658 $(REGEXLIB) \
659 $(SSLLIB) \
660 $(COMPAT_LIB) \
661 $(EPOLL_LIBS) \
662 $(MINGW_LIBS) \
663 $(XTRA_LIBS)
664 ufsdump_DEPENDENCIES = \
665 ident/libident.la \
666 acl/libacls.la \
667 eui/libeui.la \
668 acl/libstate.la \
669 acl/libapi.la \
670 base/libbase.la \
671 libsquid.la \
672 ip/libip.la \
673 fs/libfs.la \
674 ipc/libipc.la \
675 mgr/libmgr.la \
676 DiskIO/libdiskio.la \
677 $(REPL_OBJS)
678
679 nodist_ufsdump_SOURCES = \
680 globals.cc
681
682 sysconf_DATA = \
683 squid.conf.default \
684 squid.conf.documented \
685 mime.conf.default
686
687 data_DATA = \
688 mib.txt
689
690 LDADD = \
691 $(AUTH_ACL_LIBS) \
692 ident/libident.la \
693 acl/libacls.la \
694 eui/libeui.la \
695 acl/libstate.la \
696 $(AUTH_LIBS) \
697 acl/libapi.la \
698 base/libbase.la \
699 libsquid.la \
700 ip/libip.la \
701 fs/libfs.la \
702 ipc/libipc.la \
703 mgr/libmgr.la \
704 $(EPOLL_LIBS) \
705 $(MINGW_LIBS) \
706 $(COMPAT_LIB) \
707 $(XTRA_LIBS)
708
709 include $(srcdir)/tests/Stub.list
710
711 EXTRA_DIST = \
712 cf_gen_defines \
713 cf.data.pre \
714 cf.data.depend \
715 cf.data.sed \
716 mk-globals-c.awk \
717 mk-string-arrays.awk \
718 repl_modules.sh \
719 $(STUB_SOURCE) \
720 mib.txt \
721 mime.conf.default
722
723 # Make location configure settings available to the code
724 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
725
726 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
727
728 globals.cc: globals.h mk-globals-c.awk
729 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
730
731 ## Generate files containing string arrays for various enums....
732 hier_code.cc: hier_code.h mk-string-arrays.awk
733 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
734
735 err_type.cc: err_type.h mk-string-arrays.awk
736 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
737
738 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
739 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
740
741 lookup_t.cc: lookup_t.h mk-string-arrays.awk
742 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
743
744 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
745 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
746
747 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
748 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
749
750
751 ## other generated files...
752
753 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
754 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
755
756 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
757 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
758
759 ## If autodependency works well this is not needed anymore
760 cache_cf.o: cf_parser.cci
761
762 # cf_gen builds the configuration files.
763 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
764 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
765
766 # squid.conf.default is built by cf_gen when making cf_parser.cci
767 squid.conf.default squid.conf.documented: cf_parser.cci
768 true
769
770 cf_parser.cci: cf.data cf_gen$(EXEEXT)
771 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
772
773 # The cf_gen_defines.cci is auto-generated and does not exist when the
774 # dependencies computed. We need to add its include files (autoconf.h) here
775 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
776 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
777
778
779 ## FIXME: generate a sed command file from configure. Then this doesn't
780 ## depend on the Makefile.
781 cf.data: cf.data.pre Makefile
782 sed \
783 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
784 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
785 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
786 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
787 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
788 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
789 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
790 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
791 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
792 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
793 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
794 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
795 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
796 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
797 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
798 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
799 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
800 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
801 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
802 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
803 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
804 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
805 -f $(srcdir)/cf.data.sed \
806 < $(srcdir)/cf.data.pre >$@
807
808 repl_modules.cc: repl_modules.sh Makefile
809 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
810
811 include $(top_srcdir)/doc/manuals/Substitute.am
812
813 squid.8: $(srcdir)/squid.8.in Makefile
814 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
815
816 man_MANS = squid.8
817 EXTRA_DIST += squid.8.in
818 CLEANFILES += squid.8
819
820 install-data-local: install-sysconfDATA install-dataDATA
821 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
822 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
823 else \
824 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
825 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
826 fi
827 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
828 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
829 else \
830 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
831 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
832 fi
833 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
834 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
835 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
836 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
837 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
838 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
839 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
840
841 uninstall-local: squid.conf.default
842 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
843 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
844
845 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
846 test_tools.cc *.a
847
848 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
849 cp $(top_srcdir)/test-suite/test_tools.cc .
850
851 # stock tools for unit tests - library independent versions of dlink_list
852 # etc.
853 # globals.cc is needed by test_tools.cc.
854 # Neither of these should be disted from here.
855 TESTSOURCES= \
856 tests/STUB.h \
857 test_tools.cc \
858 globals.cc
859
860 check_PROGRAMS+=\
861 tests/testBoilerplate \
862 tests/testCacheManager \
863 tests/testCharacterSet \
864 tests/testDiskIO \
865 tests/testDns \
866 tests/testEnumIterator \
867 tests/testEvent \
868 tests/testEventLoop \
869 tests/test_http_range \
870 tests/testTokenizer \
871 tests/testHttp1Parser \
872 tests/testHttpReply \
873 tests/testHttpRequest \
874 tests/testIcmp \
875 tests/testIpAddress \
876 tests/testMem \
877 tests/testNetDb \
878 tests/testStore \
879 tests/testString \
880 tests/testURL \
881 tests/testSBuf \
882 tests/testSBufList \
883 tests/testConfigParser \
884 tests/testStatHist \
885 tests/testLookupTable \
886 tests/testYesNoNone
887
888 if ENABLE_FS_ROCK
889 check_PROGRAMS += tests/testRock
890 endif
891 if ENABLE_FS_UFS
892 check_PROGRAMS += tests/testUfs
893 endif
894
895 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
896 TESTS += $(check_PROGRAMS)
897
898 ### Template for new Unit Test Program
899 ## - add tests/testX to check_PROGRAMS above.
900 ## - copy template below and substitue X for class name
901 ## - add other component .(h|cc) files needed to link and run tests
902 ##
903 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
904 ##
905 #tests_testX_SOURCES=\
906 # tests/testX.h \
907 # tests/testX.cc \
908 # X.h \
909 # X.cc
910 #nodist_tests_testX_SOURCES=\
911 # tests/stubs_as_needed.cc\
912 # $(TESTSOURCES)
913 #tests_testX_LDFLAGS = $(LIBADD_DL)
914 #tests_testX_LDADD=\
915 # $(LIBCPPUNIT_LIBS) \
916 # $(COMPAT_LIB) \
917 # $(XTRA_LIBS)
918
919 # - add other component .(h|cc) files needed to link and run tests
920 tests_testHttpReply_SOURCES=\
921 cbdata.cc \
922 cbdata.h \
923 ConfigParser.cc \
924 tests/stub_ETag.cc \
925 fatal.h \
926 tests/stub_fatal.cc \
927 HttpBody.h \
928 HttpBody.cc \
929 HttpHeaderFieldStat.h \
930 HttpHdrCc.h \
931 HttpHdrCc.cc \
932 HttpHdrContRange.cc \
933 HttpHdrContRange.h \
934 HttpHdrRange.cc \
935 HttpHdrSc.cc \
936 HttpHdrSc.h \
937 HttpHdrScTarget.cc \
938 HttpHdrScTarget.h \
939 HttpHeader.h \
940 HttpHeader.cc \
941 HttpHeaderMask.h \
942 HttpHeaderFieldInfo.h \
943 HttpHeaderTools.h \
944 HttpHeaderTools.cc \
945 HttpControlMsg.cc \
946 HttpControlMsg.h \
947 HttpMsg.cc \
948 HttpMsg.h \
949 HttpReply.cc \
950 HttpReply.h \
951 MasterXaction.cc \
952 MasterXaction.h \
953 MemBuf.cc \
954 MemBuf.h \
955 mime_header.h \
956 mime_header.cc \
957 Notes.h \
958 Notes.cc \
959 SquidString.h \
960 SquidTime.h \
961 tests/stub_SBufDetailedStats.cc \
962 String.cc \
963 StrList.h \
964 StrList.cc \
965 log/access_log.h \
966 tests/stub_access_log.cc \
967 cache_cf.h \
968 tests/stub_cache_cf.cc \
969 tests/stub_cache_manager.cc \
970 tests/stub_comm.cc \
971 tests/stub_debug.cc \
972 tests/stub_errorpage.cc \
973 tests/stub_event.cc \
974 tests/stub_fd.cc \
975 tests/stub_HelperChildConfig.cc \
976 tests/stub_libformat.cc \
977 tests/stub_libauth.cc \
978 tests/stub_libcomm.cc \
979 tests/stub_libmgr.cc \
980 tests/stub_libsecurity.cc \
981 tests/stub_libsslsquid.cc \
982 StatCounters.h \
983 StatCounters.cc \
984 StatHist.h \
985 tests/stub_StatHist.cc \
986 repl_modules.h \
987 tests/stub_store.cc \
988 tests/stub_store_stats.cc \
989 tools.h \
990 tests/stub_tools.cc \
991 tests/stub_HttpRequest.cc \
992 tests/testHttpReply.cc \
993 tests/testHttpReply.h \
994 tests/stub_time.cc \
995 url.cc \
996 wordlist.h \
997 wordlist.cc
998 nodist_tests_testHttpReply_SOURCES=\
999 $(TESTSOURCES)
1000 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1001 tests_testHttpReply_LDADD=\
1002 CommCalls.o \
1003 http/libhttp.la \
1004 parser/libparser.la \
1005 acl/libacls.la \
1006 acl/libapi.la \
1007 acl/libstate.la \
1008 anyp/libanyp.la \
1009 ip/libip.la \
1010 base/libbase.la \
1011 ipc/libipc.la \
1012 mem/libmem.la \
1013 sbuf/libsbuf.la \
1014 $(top_builddir)/lib/libmisccontainers.la \
1015 $(top_builddir)/lib/libmiscencoding.la \
1016 $(top_builddir)/lib/libmiscutil.la \
1017 $(NETTLELIB) \
1018 $(SSLLIB) \
1019 $(LIBCPPUNIT_LIBS) \
1020 $(COMPAT_LIB) \
1021 $(XTRA_LIBS)
1022
1023 tests_testACLMaxUserIP_SOURCES= \
1024 cbdata.cc \
1025 ClientInfo.h \
1026 tests/stub_CollapsedForwarding.cc \
1027 ConfigOption.cc \
1028 ConfigParser.cc \
1029 tests/stub_ETag.cc \
1030 event.cc \
1031 fatal.h \
1032 tests/stub_fatal.cc \
1033 FileMap.h \
1034 filemap.cc \
1035 HttpBody.cc \
1036 HttpHeader.h \
1037 HttpHeader.cc \
1038 HttpHeaderFieldInfo.h \
1039 HttpHeaderTools.h \
1040 HttpHeaderTools.cc \
1041 HttpHdrContRange.cc \
1042 HttpHdrRange.cc \
1043 HttpHeaderFieldStat.h \
1044 HttpHdrCc.h \
1045 HttpHdrCc.cc \
1046 HttpHdrSc.cc \
1047 HttpHdrScTarget.cc \
1048 HttpMsg.cc \
1049 int.h \
1050 int.cc \
1051 MasterXaction.cc \
1052 MasterXaction.h \
1053 Notes.cc \
1054 Notes.h \
1055 mem_node.cc \
1056 Parsing.cc \
1057 tests/stub_libsecurity.cc \
1058 SquidMath.cc \
1059 StatCounters.cc \
1060 StatCounters.h \
1061 StatHist.h \
1062 StrList.h \
1063 StrList.cc \
1064 tests/stub_StatHist.cc \
1065 stmem.cc \
1066 tests/stub_SBufDetailedStats.cc \
1067 String.cc \
1068 StoreIOState.cc \
1069 tests/stub_StoreMeta.cc \
1070 StoreMetaUnpacker.cc \
1071 StoreSwapLogData.cc \
1072 store_key_md5.h \
1073 store_key_md5.cc \
1074 swap_log_op.cc \
1075 swap_log_op.h \
1076 tests/stub_SwapDir.cc \
1077 Transients.cc \
1078 log/access_log.h \
1079 tests/stub_access_log.cc \
1080 cache_cf.h \
1081 tests/stub_cache_cf.cc \
1082 tests/stub_client_side.cc \
1083 tests/stub_debug.cc \
1084 tests/stub_DelayId.cc \
1085 tests/stub_errorpage.cc \
1086 fd.h \
1087 tests/stub_fd.cc \
1088 tests/stub_HttpRequest.cc \
1089 tests/stub_HttpReply.cc \
1090 tests/stub_ipc_TypedMsgHdr.cc \
1091 tests/stub_libauth.cc \
1092 tests/stub_libcomm.cc \
1093 tests/stub_libdiskio.cc \
1094 tests/stub_libformat.cc \
1095 tests/stub_libmem.cc \
1096 tests/stub_libsslsquid.cc \
1097 tests/stub_MemObject.cc \
1098 tests/stub_MemStore.cc \
1099 mime.h \
1100 tests/stub_mime.cc \
1101 tests/stub_pconn.cc \
1102 tests/stub_Port.cc \
1103 repl_modules.h \
1104 tests/stub_store.cc \
1105 tests/stub_store_client.cc \
1106 store_rebuild.h \
1107 tests/stub_store_rebuild.cc \
1108 tests/stub_store_stats.cc \
1109 tests/stub_store_swapout.cc \
1110 tools.h \
1111 tests/stub_tools.cc \
1112 tests/stub_cache_manager.cc \
1113 tests/stub_UdsOp.cc \
1114 tests/testACLMaxUserIP.cc \
1115 tests/testACLMaxUserIP.h \
1116 tests/stub_time.cc \
1117 url.cc \
1118 URL.h \
1119 MemBuf.cc \
1120 wordlist.h \
1121 wordlist.cc
1122 nodist_tests_testACLMaxUserIP_SOURCES= \
1123 $(TESTSOURCES)
1124 tests_testACLMaxUserIP_LDADD= \
1125 libsquid.la \
1126 helper/libhelper.la \
1127 http/libhttp.la \
1128 parser/libparser.la \
1129 $(AUTH_ACL_LIBS) \
1130 ident/libident.la \
1131 acl/libacls.la \
1132 eui/libeui.la \
1133 acl/libstate.la \
1134 acl/libapi.la \
1135 anyp/libanyp.la \
1136 base/libbase.la \
1137 ip/libip.la \
1138 ipc/libipc.la \
1139 mgr/libmgr.la \
1140 sbuf/libsbuf.la \
1141 $(top_builddir)/lib/libmisccontainers.la \
1142 $(top_builddir)/lib/libmiscencoding.la \
1143 $(top_builddir)/lib/libmiscutil.la \
1144 $(NETTLELIB) \
1145 $(REGEXLIB) \
1146 $(SSLLIB) \
1147 $(LIBCPPUNIT_LIBS) \
1148 $(COMPAT_LIB) \
1149 $(XTRA_LIBS)
1150 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1151
1152 ## a demonstration test that does nothing but shows the salient points
1153 ## involved in writing tests.
1154 tests_testBoilerplate_SOURCES = \
1155 tests/testBoilerplate.cc \
1156 tests/testBoilerplate.h \
1157 tests/stub_debug.cc \
1158 tests/stub_libmem.cc \
1159 tests/stub_time.cc
1160 nodist_tests_testBoilerplate_SOURCES = \
1161 tests/stub_cbdata.cc \
1162 tests/stub_MemBuf.cc \
1163 $(TESTSOURCES)
1164 tests_testBoilerplate_LDADD= \
1165 $(SSLLIB) \
1166 base/libbase.la \
1167 $(LIBCPPUNIT_LIBS) \
1168 $(COMPAT_LIB) \
1169 $(XTRA_LIBS)
1170 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1171
1172 ## Tests of base/libbase.la objects
1173 tests_testCharacterSet_SOURCES = \
1174 tests/testCharacterSet.cc \
1175 tests/testCharacterSet.h
1176 nodist_tests_testCharacterSet_SOURCES = \
1177 base/CharacterSet.h \
1178 $(TESTSOURCES) \
1179 tests/stub_cbdata.cc \
1180 tests/stub_debug.cc \
1181 tests/stub_libmem.cc \
1182 tests/stub_MemBuf.cc
1183 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1184 tests_testCharacterSet_LDADD= \
1185 base/libbase.la \
1186 $(LIBCPPUNIT_LIBS) \
1187 $(COMPAT_LIB) \
1188 $(XTRA_LIBS)
1189
1190 ## Tests of the CacheManager module.
1191 tests_testCacheManager_SOURCES = \
1192 AccessLogEntry.cc \
1193 debug.cc \
1194 RequestFlags.h \
1195 RequestFlags.cc \
1196 HttpRequest.cc \
1197 String.cc \
1198 tests/testCacheManager.cc \
1199 tests/testCacheManager.h \
1200 tests/stub_main_cc.cc \
1201 tests/stub_HttpControlMsg.cc \
1202 tests/stub_ipc_Forwarder.cc \
1203 tests/stub_store_stats.cc \
1204 tests/stub_EventLoop.cc \
1205 time.cc \
1206 BodyPipe.cc \
1207 cache_manager.cc \
1208 cache_cf.h \
1209 AuthReg.h \
1210 RefreshPattern.h \
1211 cache_cf.cc \
1212 CachePeer.cc \
1213 CachePeer.h \
1214 CacheDigest.h \
1215 tests/stub_CacheDigest.cc \
1216 carp.h \
1217 tests/stub_carp.cc \
1218 cbdata.cc \
1219 client_db.h \
1220 client_db.cc \
1221 client_side.h \
1222 client_side.cc \
1223 client_side_reply.cc \
1224 client_side_request.cc \
1225 ClientInfo.h \
1226 clientStream.cc \
1227 tests/stub_CollapsedForwarding.cc \
1228 ConfigOption.cc \
1229 ConfigParser.cc \
1230 CpuAffinityMap.cc \
1231 CpuAffinityMap.h \
1232 CpuAffinitySet.cc \
1233 CpuAffinitySet.h \
1234 $(DELAY_POOL_SOURCE) \
1235 fs_io.h \
1236 fs_io.cc \
1237 dlink.h \
1238 dlink.cc \
1239 $(DNSSOURCE) \
1240 errorpage.cc \
1241 tests/stub_ETag.cc \
1242 event.cc \
1243 external_acl.cc \
1244 ExternalACLEntry.cc \
1245 fatal.h \
1246 tests/stub_fatal.cc \
1247 fd.h \
1248 fd.cc \
1249 fde.cc \
1250 FileMap.h \
1251 filemap.cc \
1252 fqdncache.h \
1253 fqdncache.cc \
1254 FwdState.cc \
1255 FwdState.h \
1256 gopher.h \
1257 gopher.cc \
1258 hier_code.h \
1259 helper.cc \
1260 $(HTCPSOURCE) \
1261 http.cc \
1262 HttpBody.h \
1263 HttpBody.cc \
1264 HttpHeader.h \
1265 HttpHeader.cc \
1266 HttpHeaderFieldInfo.h \
1267 HttpHeaderTools.h \
1268 HttpHeaderTools.cc \
1269 HttpHeaderFieldStat.h \
1270 HttpHdrCc.h \
1271 HttpHdrCc.cc \
1272 HttpHdrContRange.cc \
1273 HttpHdrRange.cc \
1274 HttpHdrSc.cc \
1275 HttpHdrScTarget.cc \
1276 HttpMsg.cc \
1277 HttpReply.cc \
1278 icp_v2.cc \
1279 icp_v3.cc \
1280 $(IPC_SOURCE) \
1281 ipcache.cc \
1282 int.h \
1283 int.cc \
1284 internal.h \
1285 internal.cc \
1286 LogTags.cc \
1287 tests/stub_libsecurity.cc \
1288 MasterXaction.cc \
1289 MasterXaction.h \
1290 multicast.h \
1291 multicast.cc \
1292 mem_node.cc \
1293 MemBuf.cc \
1294 MemObject.cc \
1295 mime.h \
1296 mime.cc \
1297 mime_header.h \
1298 mime_header.cc \
1299 neighbors.h \
1300 neighbors.cc \
1301 Notes.cc \
1302 Notes.h \
1303 Parsing.cc \
1304 pconn.cc \
1305 peer_digest.cc \
1306 peer_proxy_negotiate_auth.h \
1307 peer_proxy_negotiate_auth.cc \
1308 peer_select.cc \
1309 peer_sourcehash.h \
1310 peer_sourcehash.cc \
1311 peer_userhash.h \
1312 peer_userhash.cc \
1313 PeerPoolMgr.h \
1314 PeerPoolMgr.cc \
1315 Pipeline.cc \
1316 Pipeline.h \
1317 redirect.h \
1318 tests/stub_redirect.cc \
1319 refresh.h \
1320 refresh.cc \
1321 RemovalPolicy.cc \
1322 tests/stub_SBufDetailedStats.cc \
1323 $(SNMP_SOURCE) \
1324 SquidMath.h \
1325 SquidMath.cc \
1326 IoStats.h \
1327 stat.h \
1328 stat.cc \
1329 StatCounters.h \
1330 StatCounters.cc \
1331 StatHist.h \
1332 StrList.h \
1333 StrList.cc \
1334 tests/stub_libauth_acls.cc \
1335 tests/stub_libauth.cc \
1336 tests/stub_libdiskio.cc \
1337 tests/stub_StatHist.cc \
1338 stmem.cc \
1339 repl_modules.h \
1340 store.cc \
1341 store_client.cc \
1342 store_digest.h \
1343 tests/stub_store_digest.cc \
1344 store_io.cc \
1345 store_key_md5.h \
1346 store_key_md5.cc \
1347 store_log.h \
1348 store_log.cc \
1349 store_rebuild.h \
1350 store_rebuild.cc \
1351 store_swapin.h \
1352 store_swapin.cc \
1353 store_swapmeta.cc \
1354 store_swapout.cc \
1355 StoreFileSystem.cc \
1356 StoreIOState.cc \
1357 tests/stub_StoreMeta.cc \
1358 StoreMetaUnpacker.cc \
1359 StoreSwapLogData.cc \
1360 tools.h \
1361 tools.cc \
1362 Transients.cc \
1363 tests/stub_tunnel.cc \
1364 tests/stub_SwapDir.cc \
1365 MemStore.cc \
1366 $(UNLINKDSOURCE) \
1367 url.cc \
1368 urn.h \
1369 urn.cc \
1370 wccp2.h \
1371 tests/stub_wccp2.cc \
1372 whois.h \
1373 tests/stub_whois.cc \
1374 FadingCounter.cc \
1375 $(WIN32_SOURCE) \
1376 wordlist.h \
1377 wordlist.cc
1378 nodist_tests_testCacheManager_SOURCES = \
1379 $(BUILT_SOURCES)
1380 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1381 tests_testCacheManager_LDADD = \
1382 libsquid.la \
1383 clients/libclients.la \
1384 servers/libservers.la \
1385 ftp/libftp.la \
1386 helper/libhelper.la \
1387 http/libhttp.la \
1388 parser/libparser.la \
1389 ident/libident.la \
1390 acl/libacls.la \
1391 acl/libstate.la \
1392 acl/libapi.la \
1393 dns/libdns.la \
1394 base/libbase.la \
1395 ip/libip.la \
1396 fs/libfs.la \
1397 comm/libcomm.la \
1398 eui/libeui.la \
1399 icmp/libicmp.la \
1400 log/liblog.la \
1401 format/libformat.la \
1402 $(REPL_OBJS) \
1403 $(ADAPTATION_LIBS) \
1404 $(ESI_LIBS) \
1405 $(SSL_LIBS) \
1406 anyp/libanyp.la \
1407 ipc/libipc.la \
1408 mgr/libmgr.la \
1409 $(SNMP_LIBS) \
1410 mem/libmem.la \
1411 store/libstore.la \
1412 sbuf/libsbuf.la \
1413 $(top_builddir)/lib/libmisccontainers.la \
1414 $(top_builddir)/lib/libmiscencoding.la \
1415 $(top_builddir)/lib/libmiscutil.la \
1416 $(NETTLELIB) \
1417 $(REGEXLIB) \
1418 $(SSLLIB) \
1419 $(KRB5LIBS) \
1420 $(LIBCPPUNIT_LIBS) \
1421 $(COMPAT_LIB) \
1422 $(XTRA_LIBS)
1423 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1424
1425 tests_testDiskIO_SOURCES = \
1426 AccessLogEntry.cc \
1427 AccessLogEntry.h \
1428 CacheDigest.h \
1429 tests/stub_CacheDigest.cc \
1430 cbdata.cc \
1431 client_db.h \
1432 ClientInfo.h \
1433 tests/stub_CollapsedForwarding.cc \
1434 ConfigOption.cc \
1435 ConfigParser.cc \
1436 $(DELAY_POOL_SOURCE) \
1437 fs_io.h \
1438 fs_io.cc \
1439 tests/stub_ETag.cc \
1440 EventLoop.cc \
1441 event.cc \
1442 fatal.h \
1443 tests/stub_fatal.cc \
1444 fd.h \
1445 fd.cc \
1446 fde.h \
1447 fde.cc \
1448 FileMap.h \
1449 filemap.cc \
1450 HttpBody.h \
1451 HttpBody.cc \
1452 HttpHeaderFieldStat.h \
1453 HttpHdrCc.h \
1454 HttpHdrCc.cc \
1455 HttpHdrContRange.cc \
1456 HttpHdrSc.cc \
1457 HttpHdrScTarget.cc \
1458 HttpHdrRange.cc \
1459 HttpHeaderFieldInfo.h \
1460 HttpHeaderTools.h \
1461 HttpHeaderTools.cc \
1462 HttpHeader.h \
1463 HttpHeader.cc \
1464 HttpMsg.cc \
1465 HttpReply.cc \
1466 int.h \
1467 int.cc \
1468 MasterXaction.cc \
1469 MasterXaction.h \
1470 MemBuf.cc \
1471 MemObject.cc \
1472 mem_node.cc \
1473 Notes.h \
1474 Notes.cc \
1475 Parsing.cc \
1476 refresh.h \
1477 refresh.cc \
1478 RemovalPolicy.cc \
1479 RequestFlags.h \
1480 RequestFlags.cc \
1481 tests/stub_libsecurity.cc \
1482 StatCounters.h \
1483 StatCounters.cc \
1484 StatHist.h \
1485 tests/stub_StatHist.cc \
1486 stmem.cc \
1487 tests/stub_SBufDetailedStats.cc \
1488 StoreFileSystem.cc \
1489 StoreIOState.cc \
1490 tests/stub_StoreMeta.cc \
1491 StoreMetaUnpacker.cc \
1492 StoreSwapLogData.cc \
1493 store_io.cc \
1494 store_key_md5.h \
1495 store_key_md5.cc \
1496 store_swapout.cc \
1497 store_swapmeta.cc \
1498 repl_modules.h \
1499 store.cc \
1500 String.cc \
1501 StrList.h \
1502 StrList.cc \
1503 tests/stub_SwapDir.cc \
1504 Transients.cc \
1505 log/access_log.h \
1506 tests/stub_access_log.cc \
1507 tests/stub_acl.cc \
1508 cache_cf.h \
1509 tests/stub_cache_cf.cc \
1510 tests/stub_cache_manager.cc \
1511 tests/stub_client_db.cc \
1512 client_side_request.h \
1513 tests/stub_client_side_request.cc \
1514 tests/stub_debug.cc \
1515 tests/stub_errorpage.cc \
1516 tests/stub_helper.cc \
1517 tests/stub_HelperChildConfig.cc \
1518 tests/stub_HttpRequest.cc \
1519 tests/stub_http.cc \
1520 tests/stub_icp.cc \
1521 internal.h \
1522 tests/stub_internal.cc \
1523 tests/stub_ipc.cc \
1524 tests/stub_ipcache.cc \
1525 tests/stub_libauth_acls.cc \
1526 tests/stub_libauth.cc \
1527 tests/stub_libeui.cc \
1528 tests/stub_libformat.cc \
1529 tests/stub_libicmp.cc \
1530 tests/stub_liblog.cc \
1531 tests/stub_MemStore.cc \
1532 mime.h \
1533 tests/stub_mime.cc \
1534 tests/stub_neighbors.cc \
1535 tests/stub_pconn.cc \
1536 tests/stub_Port.cc \
1537 tests/stub_stat.cc \
1538 tests/stub_store_client.cc \
1539 tests/stub_store_stats.cc \
1540 store_rebuild.h \
1541 tests/stub_store_rebuild.cc \
1542 tests/stub_UdsOp.cc \
1543 tests/testDiskIO.cc \
1544 tests/testDiskIO.h \
1545 tests/testStoreSupport.cc \
1546 tests/testStoreSupport.h \
1547 tests/stub_time.cc \
1548 $(UNLINKDSOURCE) \
1549 url.cc \
1550 $(WIN32_SOURCE) \
1551 wordlist.h \
1552 wordlist.cc \
1553 tools.h \
1554 tests/stub_tools.cc
1555 nodist_tests_testDiskIO_SOURCES= \
1556 $(TESTSOURCES) \
1557 SquidMath.cc \
1558 SquidMath.h \
1559 swap_log_op.cc
1560 tests_testDiskIO_LDADD = \
1561 libsquid.la \
1562 http/libhttp.la \
1563 parser/libparser.la \
1564 SquidConfig.o \
1565 CommCalls.o \
1566 ident/libident.la \
1567 acl/libacls.la \
1568 acl/libstate.la \
1569 comm/libcomm.la \
1570 ip/libip.la \
1571 fs/libfs.la \
1572 ipc/libipc.la \
1573 $(REPL_OBJS) \
1574 $(ADAPTATION_LIBS) \
1575 DiskIO/libdiskio.la \
1576 acl/libapi.la \
1577 anyp/libanyp.la \
1578 mgr/libmgr.la \
1579 $(SSL_LIBS) \
1580 ipc/libipc.la \
1581 dns/libdns.la \
1582 base/libbase.la \
1583 mem/libmem.la \
1584 store/libstore.la \
1585 sbuf/libsbuf.la \
1586 $(top_builddir)/lib/libmisccontainers.la \
1587 $(top_builddir)/lib/libmiscencoding.la \
1588 $(top_builddir)/lib/libmiscutil.la \
1589 $(NETTLELIB) \
1590 $(REGEXLIB) \
1591 $(SSLLIB) \
1592 $(LIBCPPUNIT_LIBS) \
1593 $(COMPAT_LIB) \
1594 $(XTRA_LIBS)
1595 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1596 tests_testDiskIO_DEPENDENCIES = \
1597 DiskIO/libdiskio.la \
1598 $(SWAP_TEST_DS)
1599
1600 tests_testDns_SOURCES= \
1601 tests/testRFC1035.cc \
1602 tests/testRFC1035.h
1603 nodist_tests_testDns_SOURCES= \
1604 tests/stub_debug.cc \
1605 tests/stub_libmem.cc \
1606 tests/stub_SBuf.cc \
1607 tests/stub_tools.cc
1608 tests_testDns_LDADD= \
1609 dns/libdns.la \
1610 base/libbase.la \
1611 $(top_builddir)/lib/libmiscutil.la \
1612 $(LIBCPPUNIT_LIBS) \
1613 $(COMPAT_LIB) \
1614 $(XTRA_LIBS)
1615 tests_testDns_LDFLAGS= $(LIBADD_DL)
1616
1617 tests_testEvent_SOURCES = \
1618 AccessLogEntry.cc \
1619 BodyPipe.cc \
1620 CacheDigest.h \
1621 tests/stub_CacheDigest.cc \
1622 cache_cf.h \
1623 AuthReg.h \
1624 RefreshPattern.h \
1625 cache_cf.cc \
1626 CachePeer.cc \
1627 CachePeer.h \
1628 cache_manager.cc \
1629 carp.h \
1630 tests/stub_carp.cc \
1631 cbdata.cc \
1632 client_db.h \
1633 client_db.cc \
1634 client_side.h \
1635 client_side.cc \
1636 client_side_reply.cc \
1637 client_side_request.cc \
1638 ClientInfo.h \
1639 clientStream.cc \
1640 tests/stub_CollapsedForwarding.cc \
1641 ConfigOption.cc \
1642 ConfigParser.cc \
1643 CpuAffinityMap.cc \
1644 CpuAffinityMap.h \
1645 CpuAffinitySet.cc \
1646 CpuAffinitySet.h \
1647 debug.cc \
1648 $(DELAY_POOL_SOURCE) \
1649 fs_io.h \
1650 fs_io.cc \
1651 dlink.h \
1652 dlink.cc \
1653 $(DNSSOURCE) \
1654 errorpage.cc \
1655 tests/stub_ETag.cc \
1656 event.cc \
1657 EventLoop.h \
1658 EventLoop.cc \
1659 external_acl.cc \
1660 ExternalACLEntry.cc \
1661 FadingCounter.cc \
1662 fatal.h \
1663 tests/stub_fatal.cc \
1664 fd.h \
1665 fd.cc \
1666 fde.cc \
1667 FileMap.h \
1668 filemap.cc \
1669 fqdncache.h \
1670 fqdncache.cc \
1671 FwdState.cc \
1672 FwdState.h \
1673 gopher.h \
1674 gopher.cc \
1675 helper.cc \
1676 hier_code.h \
1677 $(HTCPSOURCE) \
1678 http.cc \
1679 HttpBody.h \
1680 HttpBody.cc \
1681 tests/stub_HttpControlMsg.cc \
1682 HttpHeader.h \
1683 HttpHeader.cc \
1684 HttpHeaderFieldInfo.h \
1685 HttpHeaderTools.h \
1686 HttpHeaderTools.cc \
1687 HttpHeaderFieldStat.h \
1688 HttpHdrCc.h \
1689 HttpHdrCc.cc \
1690 HttpHdrContRange.cc \
1691 HttpHdrRange.cc \
1692 HttpHdrSc.cc \
1693 HttpHdrScTarget.cc \
1694 HttpMsg.cc \
1695 HttpReply.cc \
1696 PeerPoolMgr.h \
1697 PeerPoolMgr.cc \
1698 RequestFlags.h \
1699 RequestFlags.cc \
1700 HttpRequest.cc \
1701 icp_v2.cc \
1702 icp_v3.cc \
1703 $(IPC_SOURCE) \
1704 ipcache.cc \
1705 int.h \
1706 int.cc \
1707 internal.h \
1708 internal.cc \
1709 LogTags.cc \
1710 tests/stub_libsecurity.cc \
1711 MasterXaction.cc \
1712 MasterXaction.h \
1713 tests/stub_libmem.cc \
1714 mem_node.cc \
1715 MemBuf.cc \
1716 MemObject.cc \
1717 mime.h \
1718 mime.cc \
1719 mime_header.h \
1720 mime_header.cc \
1721 multicast.h \
1722 multicast.cc \
1723 neighbors.h \
1724 neighbors.cc \
1725 Notes.cc \
1726 Notes.h \
1727 Parsing.cc \
1728 pconn.cc \
1729 peer_digest.cc \
1730 peer_proxy_negotiate_auth.h \
1731 peer_proxy_negotiate_auth.cc \
1732 peer_select.cc \
1733 peer_sourcehash.h \
1734 peer_sourcehash.cc \
1735 peer_userhash.h \
1736 peer_userhash.cc \
1737 Pipeline.cc \
1738 Pipeline.h \
1739 redirect.h \
1740 tests/stub_redirect.cc \
1741 refresh.h \
1742 refresh.cc \
1743 RemovalPolicy.cc \
1744 StrList.h \
1745 StrList.cc \
1746 tests/stub_SBufDetailedStats.cc \
1747 $(SNMP_SOURCE) \
1748 SquidMath.cc \
1749 SquidMath.h \
1750 IoStats.h \
1751 stat.h \
1752 stat.cc \
1753 StatCounters.h \
1754 StatCounters.cc \
1755 StatHist.h \
1756 StatHist.cc \
1757 stmem.cc \
1758 repl_modules.h \
1759 store.cc \
1760 store_client.cc \
1761 store_digest.h \
1762 tests/stub_store_digest.cc \
1763 store_io.cc \
1764 store_key_md5.h \
1765 store_key_md5.cc \
1766 store_log.h \
1767 store_log.cc \
1768 store_rebuild.h \
1769 store_rebuild.cc \
1770 store_swapin.h \
1771 store_swapin.cc \
1772 store_swapmeta.cc \
1773 store_swapout.cc \
1774 StoreFileSystem.cc \
1775 StoreIOState.cc \
1776 tests/stub_StoreMeta.cc \
1777 StoreMetaUnpacker.cc \
1778 StoreSwapLogData.cc \
1779 String.cc \
1780 tests/stub_SwapDir.cc \
1781 tests/CapturingStoreEntry.h \
1782 tests/testEvent.cc \
1783 tests/testEvent.h \
1784 tests/stub_main_cc.cc \
1785 tests/stub_ipc_Forwarder.cc \
1786 tests/stub_libauth_acls.cc \
1787 tests/stub_libauth.cc \
1788 tests/stub_libdiskio.cc \
1789 tests/stub_libeui.cc \
1790 tests/stub_store_stats.cc \
1791 time.cc \
1792 tools.h \
1793 tools.cc \
1794 Transients.cc \
1795 tests/stub_tunnel.cc \
1796 MemStore.cc \
1797 $(UNLINKDSOURCE) \
1798 url.cc \
1799 urn.h \
1800 urn.cc \
1801 wccp2.h \
1802 tests/stub_wccp2.cc \
1803 whois.h \
1804 tests/stub_whois.cc \
1805 $(WIN32_SOURCE) \
1806 wordlist.h \
1807 wordlist.cc
1808 nodist_tests_testEvent_SOURCES = \
1809 $(BUILT_SOURCES)
1810 tests_testEvent_LDADD = \
1811 libsquid.la \
1812 clients/libclients.la \
1813 servers/libservers.la \
1814 ftp/libftp.la \
1815 helper/libhelper.la \
1816 http/libhttp.la \
1817 parser/libparser.la \
1818 ident/libident.la \
1819 acl/libacls.la \
1820 acl/libstate.la \
1821 acl/libapi.la \
1822 dns/libdns.la \
1823 base/libbase.la \
1824 ip/libip.la \
1825 fs/libfs.la \
1826 anyp/libanyp.la \
1827 icmp/libicmp.la \
1828 comm/libcomm.la \
1829 log/liblog.la \
1830 format/libformat.la \
1831 $(REPL_OBJS) \
1832 $(ADAPTATION_LIBS) \
1833 $(ESI_LIBS) \
1834 $(SSL_LIBS) \
1835 $(top_builddir)/lib/libmisccontainers.la \
1836 $(top_builddir)/lib/libmiscencoding.la \
1837 $(top_builddir)/lib/libmiscutil.la \
1838 ipc/libipc.la \
1839 mgr/libmgr.la \
1840 store/libstore.la \
1841 sbuf/libsbuf.la \
1842 $(SNMP_LIBS) \
1843 $(NETTLELIB) \
1844 $(REGEXLIB) \
1845 $(SSLLIB) \
1846 $(KRB5LIBS) \
1847 $(LIBCPPUNIT_LIBS) \
1848 $(COMPAT_LIB) \
1849 $(XTRA_LIBS)
1850 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1851
1852 ## Tests of the EventLoop module.
1853 tests_testEventLoop_SOURCES = \
1854 AccessLogEntry.cc \
1855 BodyPipe.cc \
1856 CacheDigest.h \
1857 tests/stub_CacheDigest.cc \
1858 cache_manager.cc \
1859 cache_cf.h \
1860 AuthReg.h \
1861 RefreshPattern.h \
1862 cache_cf.cc \
1863 CachePeer.cc \
1864 CachePeer.h \
1865 carp.h \
1866 tests/stub_carp.cc \
1867 cbdata.cc \
1868 client_db.h \
1869 client_db.cc \
1870 client_side.h \
1871 client_side.cc \
1872 client_side_reply.cc \
1873 client_side_request.cc \
1874 ClientInfo.h \
1875 clientStream.cc \
1876 tests/stub_CollapsedForwarding.cc \
1877 ConfigOption.cc \
1878 ConfigParser.cc \
1879 CpuAffinityMap.cc \
1880 CpuAffinityMap.h \
1881 CpuAffinitySet.cc \
1882 CpuAffinitySet.h \
1883 debug.cc \
1884 $(DELAY_POOL_SOURCE) \
1885 fs_io.h \
1886 fs_io.cc \
1887 dlink.h \
1888 dlink.cc \
1889 $(DNSSOURCE) \
1890 errorpage.cc \
1891 tests/stub_ETag.cc \
1892 EventLoop.h \
1893 EventLoop.cc \
1894 event.cc \
1895 external_acl.cc \
1896 ExternalACLEntry.cc \
1897 FadingCounter.cc \
1898 fatal.h \
1899 tests/stub_fatal.cc \
1900 fd.h \
1901 fd.cc \
1902 fde.cc \
1903 FileMap.h \
1904 filemap.cc \
1905 fqdncache.h \
1906 fqdncache.cc \
1907 FwdState.cc \
1908 FwdState.h \
1909 gopher.h \
1910 gopher.cc \
1911 helper.cc \
1912 hier_code.h \
1913 $(HTCPSOURCE) \
1914 http.cc \
1915 HttpBody.h \
1916 HttpBody.cc \
1917 tests/stub_HttpControlMsg.cc \
1918 HttpHeader.h \
1919 HttpHeader.cc \
1920 HttpHeaderFieldInfo.h \
1921 HttpHeaderTools.h \
1922 HttpHeaderTools.cc \
1923 HttpHeaderFieldStat.h \
1924 HttpHdrCc.h \
1925 HttpHdrCc.cc \
1926 HttpHdrContRange.cc \
1927 HttpHdrRange.cc \
1928 HttpHdrSc.cc \
1929 HttpHdrScTarget.cc \
1930 HttpMsg.cc \
1931 HttpReply.cc \
1932 PeerPoolMgr.h \
1933 PeerPoolMgr.cc \
1934 RequestFlags.h \
1935 RequestFlags.cc \
1936 HttpRequest.cc \
1937 icp_v2.cc \
1938 icp_v3.cc \
1939 $(IPC_SOURCE) \
1940 ipcache.cc \
1941 int.h \
1942 int.cc \
1943 internal.h \
1944 internal.cc \
1945 LogTags.cc \
1946 MasterXaction.cc \
1947 MasterXaction.h \
1948 MemBuf.cc \
1949 MemObject.cc \
1950 tests/stub_libmem.cc \
1951 mem_node.cc \
1952 mime.h \
1953 mime.cc \
1954 mime_header.h \
1955 mime_header.cc \
1956 multicast.h \
1957 multicast.cc \
1958 neighbors.h \
1959 neighbors.cc \
1960 Notes.cc \
1961 Notes.h \
1962 Parsing.cc \
1963 pconn.cc \
1964 peer_digest.cc \
1965 peer_proxy_negotiate_auth.h \
1966 peer_proxy_negotiate_auth.cc \
1967 peer_select.cc \
1968 peer_sourcehash.h \
1969 peer_sourcehash.cc \
1970 peer_userhash.h \
1971 peer_userhash.cc \
1972 Pipeline.cc \
1973 Pipeline.h \
1974 RemovalPolicy.cc \
1975 redirect.h \
1976 tests/stub_redirect.cc \
1977 refresh.h \
1978 refresh.cc \
1979 tests/stub_SBufDetailedStats.cc \
1980 $(SNMP_SOURCE) \
1981 SquidMath.h \
1982 SquidMath.cc \
1983 IoStats.h \
1984 stat.h \
1985 stat.cc \
1986 StatCounters.h \
1987 StatCounters.cc \
1988 StatHist.h \
1989 StatHist.cc \
1990 stmem.cc \
1991 repl_modules.h \
1992 store.cc \
1993 store_client.cc \
1994 store_digest.h \
1995 tests/stub_store_digest.cc \
1996 store_io.cc \
1997 store_key_md5.h \
1998 store_key_md5.cc \
1999 store_log.h \
2000 store_log.cc \
2001 store_rebuild.h \
2002 store_rebuild.cc \
2003 store_swapin.h \
2004 store_swapin.cc \
2005 store_swapmeta.cc \
2006 store_swapout.cc \
2007 StoreFileSystem.cc \
2008 StoreIOState.cc \
2009 tests/stub_StoreMeta.cc \
2010 StoreMetaUnpacker.cc \
2011 StoreSwapLogData.cc \
2012 String.cc \
2013 StrList.h \
2014 StrList.cc \
2015 tests/stub_SwapDir.cc \
2016 tests/testEventLoop.cc \
2017 tests/testEventLoop.h \
2018 tests/stub_main_cc.cc \
2019 tests/stub_ipc_Forwarder.cc \
2020 tests/stub_libauth_acls.cc \
2021 tests/stub_libauth.cc \
2022 tests/stub_libdiskio.cc \
2023 tests/stub_libeui.cc \
2024 tests/stub_libsecurity.cc \
2025 tests/stub_store_stats.cc \
2026 time.cc \
2027 tools.h \
2028 tools.cc \
2029 Transients.cc \
2030 tests/stub_tunnel.cc \
2031 MemStore.cc \
2032 $(UNLINKDSOURCE) \
2033 url.cc \
2034 urn.h \
2035 urn.cc \
2036 wccp2.h \
2037 tests/stub_wccp2.cc \
2038 whois.h \
2039 tests/stub_whois.cc \
2040 $(WIN32_SOURCE) \
2041 wordlist.h \
2042 wordlist.cc
2043 nodist_tests_testEventLoop_SOURCES = \
2044 $(BUILT_SOURCES)
2045 tests_testEventLoop_LDADD = \
2046 libsquid.la \
2047 clients/libclients.la \
2048 servers/libservers.la \
2049 ftp/libftp.la \
2050 helper/libhelper.la \
2051 http/libhttp.la \
2052 parser/libparser.la \
2053 ident/libident.la \
2054 acl/libacls.la \
2055 acl/libstate.la \
2056 acl/libapi.la \
2057 dns/libdns.la \
2058 base/libbase.la \
2059 ip/libip.la \
2060 fs/libfs.la \
2061 anyp/libanyp.la \
2062 icmp/libicmp.la \
2063 comm/libcomm.la \
2064 log/liblog.la \
2065 format/libformat.la \
2066 $(REPL_OBJS) \
2067 $(ADAPTATION_LIBS) \
2068 $(ESI_LIBS) \
2069 $(SSL_LIBS) \
2070 $(top_builddir)/lib/libmisccontainers.la \
2071 $(top_builddir)/lib/libmiscencoding.la \
2072 $(top_builddir)/lib/libmiscutil.la \
2073 ipc/libipc.la \
2074 mgr/libmgr.la \
2075 sbuf/libsbuf.la \
2076 store/libstore.la \
2077 $(SNMP_LIBS) \
2078 $(NETTLELIB) \
2079 $(REGEXLIB) \
2080 $(SSLLIB) \
2081 $(KRB5LIBS) \
2082 $(LIBCPPUNIT_LIBS) \
2083 $(COMPAT_LIB) \
2084 $(XTRA_LIBS)
2085 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2086
2087 tests_test_http_range_SOURCES = \
2088 AccessLogEntry.cc \
2089 BodyPipe.cc \
2090 cache_cf.h \
2091 AuthReg.h \
2092 RefreshPattern.h \
2093 cache_cf.cc \
2094 CachePeer.cc \
2095 CachePeer.h \
2096 cache_manager.cc \
2097 CacheDigest.h \
2098 tests/stub_CacheDigest.cc \
2099 carp.h \
2100 tests/stub_carp.cc \
2101 cbdata.cc \
2102 client_db.h \
2103 client_db.cc \
2104 client_side.h \
2105 client_side.cc \
2106 client_side_reply.cc \
2107 client_side_request.cc \
2108 ClientInfo.h \
2109 clientStream.cc \
2110 tests/stub_CollapsedForwarding.cc \
2111 ConfigOption.cc \
2112 ConfigParser.cc \
2113 CpuAffinityMap.cc \
2114 CpuAffinityMap.h \
2115 CpuAffinitySet.cc \
2116 CpuAffinitySet.h \
2117 debug.cc \
2118 $(DELAY_POOL_SOURCE) \
2119 fs_io.h \
2120 fs_io.cc \
2121 dlink.h \
2122 dlink.cc \
2123 $(DNSSOURCE) \
2124 errorpage.cc \
2125 tests/stub_ETag.cc \
2126 event.cc \
2127 FadingCounter.cc \
2128 fatal.h \
2129 tests/stub_libauth.cc \
2130 tests/stub_fatal.cc \
2131 fd.h \
2132 fd.cc \
2133 fde.cc \
2134 FileMap.h \
2135 filemap.cc \
2136 fqdncache.h \
2137 fqdncache.cc \
2138 FwdState.cc \
2139 FwdState.h \
2140 gopher.h \
2141 gopher.cc \
2142 helper.cc \
2143 hier_code.h \
2144 $(HTCPSOURCE) \
2145 http.cc \
2146 HttpBody.h \
2147 HttpBody.cc \
2148 tests/stub_HttpControlMsg.cc \
2149 HttpHeaderFieldStat.h \
2150 HttpHdrCc.h \
2151 HttpHdrCc.cc \
2152 HttpHdrContRange.cc \
2153 HttpHdrRange.cc \
2154 HttpHdrSc.cc \
2155 HttpHdrScTarget.cc \
2156 HttpHeader.h \
2157 HttpHeader.cc \
2158 HttpHeaderFieldInfo.h \
2159 HttpHeaderTools.h \
2160 HttpHeaderTools.cc \
2161 HttpMsg.cc \
2162 HttpReply.cc \
2163 PeerPoolMgr.h \
2164 PeerPoolMgr.cc \
2165 RequestFlags.h \
2166 RequestFlags.cc \
2167 HttpRequest.cc \
2168 icp_v2.cc \
2169 icp_v3.cc \
2170 int.h \
2171 int.cc \
2172 internal.h \
2173 internal.cc \
2174 $(IPC_SOURCE) \
2175 ipcache.cc \
2176 LogTags.cc \
2177 MasterXaction.cc \
2178 MasterXaction.h \
2179 MemBuf.cc \
2180 MemObject.cc \
2181 tests/stub_libmem.cc \
2182 mem_node.cc \
2183 mime.h \
2184 mime.cc \
2185 mime_header.h \
2186 mime_header.cc \
2187 multicast.h \
2188 multicast.cc \
2189 neighbors.h \
2190 neighbors.cc \
2191 Notes.cc \
2192 Notes.h \
2193 Parsing.cc \
2194 peer_digest.cc \
2195 peer_proxy_negotiate_auth.h \
2196 peer_proxy_negotiate_auth.cc \
2197 peer_select.cc \
2198 peer_sourcehash.h \
2199 peer_sourcehash.cc \
2200 peer_userhash.h \
2201 peer_userhash.cc \
2202 Pipeline.cc \
2203 Pipeline.h \
2204 pconn.cc \
2205 redirect.h \
2206 tests/stub_redirect.cc \
2207 refresh.h \
2208 refresh.cc \
2209 RemovalPolicy.cc \
2210 tests/stub_SBufDetailedStats.cc \
2211 $(SNMP_SOURCE) \
2212 SquidMath.h \
2213 SquidMath.cc \
2214 IoStats.h \
2215 stat.h \
2216 stat.cc \
2217 StatCounters.h \
2218 StatCounters.cc \
2219 StatHist.h \
2220 StatHist.cc \
2221 stmem.cc \
2222 repl_modules.h \
2223 store.cc \
2224 store_client.cc \
2225 store_digest.h \
2226 tests/stub_store_digest.cc \
2227 store_key_md5.h \
2228 store_key_md5.cc \
2229 store_io.cc \
2230 store_log.h \
2231 store_log.cc \
2232 store_rebuild.h \
2233 store_rebuild.cc \
2234 store_swapin.h \
2235 store_swapin.cc \
2236 store_swapmeta.cc \
2237 store_swapout.cc \
2238 StoreFileSystem.cc \
2239 StoreIOState.cc \
2240 tests/stub_StoreMeta.cc \
2241 StoreMetaUnpacker.cc \
2242 StoreSwapLogData.cc \
2243 String.cc \
2244 StrList.h \
2245 StrList.cc \
2246 tests/stub_SwapDir.cc \
2247 Transients.cc \
2248 tests/test_http_range.cc \
2249 tests/stub_external_acl.cc \
2250 tests/stub_ipc_Forwarder.cc \
2251 tests/stub_libdiskio.cc \
2252 tests/stub_libeui.cc \
2253 tests/stub_libsecurity.cc \
2254 tests/stub_main_cc.cc \
2255 tests/stub_MemStore.cc \
2256 tests/stub_store_stats.cc \
2257 tests/stub_EventLoop.cc \
2258 time.cc \
2259 tools.h \
2260 tools.cc \
2261 tests/stub_tunnel.cc \
2262 $(UNLINKDSOURCE) \
2263 url.cc \
2264 urn.h \
2265 urn.cc \
2266 wccp2.h \
2267 tests/stub_wccp2.cc \
2268 whois.h \
2269 tests/stub_whois.cc \
2270 $(WIN32_SOURCE) \
2271 wordlist.h \
2272 wordlist.cc
2273 nodist_tests_test_http_range_SOURCES = \
2274 $(BUILT_SOURCES)
2275 tests_test_http_range_LDADD = \
2276 libsquid.la \
2277 clients/libclients.la \
2278 servers/libservers.la \
2279 ftp/libftp.la \
2280 helper/libhelper.la \
2281 http/libhttp.la \
2282 parser/libparser.la \
2283 ident/libident.la \
2284 acl/libacls.la \
2285 acl/libstate.la \
2286 acl/libapi.la \
2287 parser/libparser.la \
2288 ip/libip.la \
2289 fs/libfs.la \
2290 anyp/libanyp.la \
2291 icmp/libicmp.la \
2292 comm/libcomm.la \
2293 log/liblog.la \
2294 format/libformat.la \
2295 $(REPL_OBJS) \
2296 $(ADAPTATION_LIBS) \
2297 $(ESI_LIBS) \
2298 $(SSL_LIBS) \
2299 ipc/libipc.la \
2300 dns/libdns.la \
2301 base/libbase.la \
2302 mgr/libmgr.la \
2303 sbuf/libsbuf.la \
2304 store/libstore.la \
2305 $(SNMP_LIBS) \
2306 $(top_builddir)/lib/libmisccontainers.la \
2307 $(top_builddir)/lib/libmiscencoding.la \
2308 $(top_builddir)/lib/libmiscutil.la \
2309 $(NETTLELIB) \
2310 $(REGEXLIB) \
2311 $(SSLLIB) \
2312 $(KRB5LIBS) \
2313 $(LIBCPPUNIT_LIBS) \
2314 $(COMPAT_LIB) \
2315 $(XTRA_LIBS)
2316 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2317
2318 ## Tests of parser/* objects
2319 tests_testTokenizer_SOURCES = \
2320 tests/testTokenizer.h \
2321 tests/testTokenizer.cc
2322 nodist_tests_testTokenizer_SOURCES = \
2323 parser/Tokenizer.h \
2324 SquidString.h \
2325 String.cc \
2326 $(TESTSOURCES) \
2327 tests/stub_debug.cc \
2328 tests/stub_libmem.cc \
2329 tests/stub_time.cc \
2330 tests/stub_SBufDetailedStats.cc
2331 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2332 tests_testTokenizer_LDADD = \
2333 parser/libparser.la \
2334 base/libbase.la \
2335 sbuf/libsbuf.la \
2336 $(top_builddir)/lib/libmiscutil.la \
2337 $(LIBCPPUNIT_LIBS) \
2338 $(COMPAT_LIB) \
2339 $(XTRA_LIBS)
2340
2341 tests_testHttp1Parser_SOURCES = \
2342 Debug.h \
2343 MemBuf.cc \
2344 MemBuf.h \
2345 tests/stub_MemObject.cc \
2346 mime_header.cc \
2347 mime_header.h \
2348 String.cc \
2349 cache_cf.h \
2350 tests/stub_SBufDetailedStats.cc \
2351 tests/stub_cache_cf.cc \
2352 tests/stub_cache_manager.cc \
2353 tests/stub_comm.cc \
2354 tests/stub_cbdata.cc \
2355 tests/stub_debug.cc \
2356 tests/stub_event.cc \
2357 tests/stub_HelperChildConfig.cc \
2358 tests/stub_libmem.cc \
2359 tests/stub_libsecurity.cc \
2360 tests/stub_stmem.cc \
2361 tests/stub_store.cc \
2362 tests/stub_store_stats.cc \
2363 tools.h \
2364 tests/stub_tools.cc \
2365 tests/testHttp1Parser.cc \
2366 tests/testHttp1Parser.h \
2367 tests/stub_time.cc \
2368 wordlist.h \
2369 wordlist.cc
2370 nodist_tests_testHttp1Parser_SOURCES = \
2371 $(TESTSOURCES)
2372 tests_testHttp1Parser_LDADD= \
2373 http/libhttp.la \
2374 parser/libparser.la \
2375 anyp/libanyp.la \
2376 SquidConfig.o \
2377 base/libbase.la \
2378 ip/libip.la \
2379 sbuf/libsbuf.la \
2380 $(top_builddir)/lib/libmiscutil.la \
2381 $(SSLLIB) \
2382 $(LIBCPPUNIT_LIBS) \
2383 $(COMPAT_LIB) \
2384 $(XTRA_LIBS)
2385 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2386
2387 ## Tests of the HttpRequest module.
2388 tests_testHttpRequest_SOURCES = \
2389 AccessLogEntry.cc \
2390 RequestFlags.h \
2391 RequestFlags.cc \
2392 HttpRequest.cc \
2393 tests/stub_libmem.cc \
2394 String.cc \
2395 tests/testHttpRequest.h \
2396 tests/testHttpRequest.cc \
2397 tests/testHttpRequestMethod.h \
2398 tests/testHttpRequestMethod.cc \
2399 tests/stub_libauth.cc \
2400 tests/stub_main_cc.cc \
2401 tests/stub_ipc_Forwarder.cc \
2402 tests/stub_libdiskio.cc \
2403 tests/stub_libeui.cc \
2404 tests/stub_store_stats.cc \
2405 tests/stub_EventLoop.cc \
2406 time.cc \
2407 BodyPipe.cc \
2408 cache_manager.cc \
2409 cache_cf.h \
2410 AuthReg.h \
2411 RefreshPattern.h \
2412 cache_cf.cc \
2413 debug.cc \
2414 CacheDigest.h \
2415 tests/stub_CacheDigest.cc \
2416 CachePeer.cc \
2417 CachePeer.h \
2418 carp.h \
2419 tests/stub_carp.cc \
2420 cbdata.cc \
2421 client_db.h \
2422 client_db.cc \
2423 client_side.h \
2424 client_side.cc \
2425 client_side_reply.cc \
2426 client_side_request.cc \
2427 ClientInfo.h \
2428 clientStream.cc \
2429 tests/stub_CollapsedForwarding.cc \
2430 ConfigOption.cc \
2431 ConfigParser.cc \
2432 CpuAffinityMap.cc \
2433 CpuAffinityMap.h \
2434 CpuAffinitySet.cc \
2435 CpuAffinitySet.h \
2436 $(DELAY_POOL_SOURCE) \
2437 fs_io.h \
2438 fs_io.cc \
2439 dlink.h \
2440 dlink.cc \
2441 $(DNSSOURCE) \
2442 errorpage.cc \
2443 tests/stub_ETag.cc \
2444 external_acl.cc \
2445 ExternalACLEntry.cc \
2446 fatal.h \
2447 tests/stub_fatal.cc \
2448 fd.h \
2449 fd.cc \
2450 fde.cc \
2451 fqdncache.h \
2452 fqdncache.cc \
2453 FwdState.cc \
2454 FwdState.h \
2455 gopher.h \
2456 gopher.cc \
2457 helper.cc \
2458 hier_code.h \
2459 $(HTCPSOURCE) \
2460 http.cc \
2461 HttpBody.h \
2462 HttpBody.cc \
2463 tests/stub_HttpControlMsg.cc \
2464 HttpHeader.h \
2465 HttpHeader.cc \
2466 HttpHeaderFieldInfo.h \
2467 HttpHeaderTools.h \
2468 HttpHeaderTools.cc \
2469 HttpHeaderFieldStat.h \
2470 HttpHdrCc.h \
2471 HttpHdrCc.cc \
2472 HttpHdrContRange.cc \
2473 HttpHdrRange.cc \
2474 HttpHdrSc.cc \
2475 HttpHdrScTarget.cc \
2476 HttpMsg.cc \
2477 HttpReply.cc \
2478 icp_v2.cc \
2479 icp_v3.cc \
2480 $(IPC_SOURCE) \
2481 ipcache.cc \
2482 int.h \
2483 int.cc \
2484 internal.h \
2485 internal.cc \
2486 LogTags.cc \
2487 tests/stub_libsecurity.cc \
2488 MasterXaction.cc \
2489 MasterXaction.h \
2490 multicast.h \
2491 multicast.cc \
2492 mem_node.cc \
2493 MemBuf.cc \
2494 MemObject.cc \
2495 mime.h \
2496 mime.cc \
2497 mime_header.h \
2498 mime_header.cc \
2499 neighbors.h \
2500 neighbors.cc \
2501 Notes.cc \
2502 Notes.h \
2503 Parsing.cc \
2504 pconn.cc \
2505 peer_digest.cc \
2506 peer_proxy_negotiate_auth.h \
2507 peer_proxy_negotiate_auth.cc \
2508 peer_select.cc \
2509 peer_sourcehash.h \
2510 peer_sourcehash.cc \
2511 peer_userhash.h \
2512 peer_userhash.cc \
2513 PeerPoolMgr.h \
2514 PeerPoolMgr.cc \
2515 Pipeline.cc \
2516 Pipeline.h \
2517 redirect.h \
2518 tests/stub_libauth_acls.cc \
2519 tests/stub_redirect.cc \
2520 refresh.h \
2521 refresh.cc \
2522 RemovalPolicy.cc \
2523 tests/stub_SBufDetailedStats.cc \
2524 $(SNMP_SOURCE) \
2525 SquidMath.h \
2526 SquidMath.cc \
2527 IoStats.h \
2528 stat.h \
2529 stat.cc \
2530 StatCounters.h \
2531 StatCounters.cc \
2532 StatHist.h \
2533 StatHist.cc \
2534 stmem.cc \
2535 repl_modules.h \
2536 store.cc \
2537 store_client.cc \
2538 store_digest.h \
2539 tests/stub_store_digest.cc \
2540 store_io.cc \
2541 store_key_md5.h \
2542 store_key_md5.cc \
2543 store_log.h \
2544 store_log.cc \
2545 store_rebuild.h \
2546 store_rebuild.cc \
2547 store_swapin.h \
2548 store_swapin.cc \
2549 store_swapmeta.cc \
2550 store_swapout.cc \
2551 StoreFileSystem.cc \
2552 StoreIOState.cc \
2553 tests/stub_StoreMeta.cc \
2554 StoreMetaUnpacker.cc \
2555 StoreSwapLogData.cc \
2556 StrList.h \
2557 StrList.cc \
2558 event.cc \
2559 tools.h \
2560 tools.cc \
2561 Transients.cc \
2562 tests/stub_tunnel.cc \
2563 tests/stub_SwapDir.cc \
2564 MemStore.cc \
2565 url.cc \
2566 urn.h \
2567 urn.cc \
2568 wccp2.h \
2569 tests/stub_wccp2.cc \
2570 whois.h \
2571 tests/stub_whois.cc \
2572 FadingCounter.cc \
2573 $(WIN32_SOURCE) \
2574 wordlist.h \
2575 wordlist.cc
2576 nodist_tests_testHttpRequest_SOURCES = \
2577 $(BUILT_SOURCES)
2578 tests_testHttpRequest_LDADD = \
2579 libsquid.la \
2580 clients/libclients.la \
2581 servers/libservers.la \
2582 helper/libhelper.la \
2583 ftp/libftp.la \
2584 http/libhttp.la \
2585 ident/libident.la \
2586 acl/libacls.la \
2587 acl/libstate.la \
2588 acl/libapi.la \
2589 parser/libparser.la \
2590 ip/libip.la \
2591 fs/libfs.la \
2592 $(SSL_LIBS) \
2593 ipc/libipc.la \
2594 parser/libparser.la \
2595 dns/libdns.la \
2596 base/libbase.la \
2597 mgr/libmgr.la \
2598 anyp/libanyp.la \
2599 $(SNMP_LIBS) \
2600 icmp/libicmp.la \
2601 comm/libcomm.la \
2602 log/liblog.la \
2603 format/libformat.la \
2604 store/libstore.la \
2605 sbuf/libsbuf.la \
2606 $(REPL_OBJS) \
2607 $(ADAPTATION_LIBS) \
2608 $(ESI_LIBS) \
2609 $(top_builddir)/lib/libmisccontainers.la \
2610 $(top_builddir)/lib/libmiscencoding.la \
2611 $(top_builddir)/lib/libmiscutil.la \
2612 $(NETTLELIB) \
2613 $(REGEXLIB) \
2614 $(SSLLIB) \
2615 $(KRB5LIBS) \
2616 $(LIBCPPUNIT_LIBS) \
2617 $(COMPAT_LIB) \
2618 $(XTRA_LIBS)
2619 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2620
2621 ## Tests for icmp/* objects
2622 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2623 tests_testIcmp_SOURCES = \
2624 tests/testIcmp.h \
2625 tests/testIcmp.cc
2626 nodist_tests_testIcmp_SOURCES = \
2627 icmp/Icmp.h \
2628 SquidTime.h \
2629 tests/stub_debug.cc \
2630 tests/stub_libmem.cc \
2631 time.cc \
2632 globals.cc
2633 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2634 tests_testIcmp_LDADD=\
2635 icmp/libicmpcore.la \
2636 ip/libip.la \
2637 base/libbase.la \
2638 $(LIBCPPUNIT_LIBS) \
2639 $(COMPAT_LIB) \
2640 $(XTRA_LIBS)
2641
2642 tests_testNetDb_SOURCES = \
2643 tests/testNetDb.cc \
2644 tests/testNetDb.h
2645 nodist_tests_testNetDb_SOURCES = \
2646 SquidTime.h \
2647 tests/stub_debug.cc \
2648 tests/stub_libmem.cc \
2649 time.cc \
2650 globals.cc
2651 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2652 tests_testNetDb_LDADD = \
2653 icmp/libicmp.la \
2654 ip/libip.la \
2655 base/libbase.la \
2656 $(top_builddir)/lib/libmisccontainers.la \
2657 $(LIBCPPUNIT_LIBS) \
2658 $(COMPAT_LIB) \
2659 $(XTRA_LIBS)
2660
2661 ## Tests for ip/* objects
2662 tests_testIpAddress_SOURCES= \
2663 tests/testAddress.cc \
2664 tests/testAddress.h
2665 nodist_tests_testIpAddress_SOURCES= \
2666 ip/Address.h \
2667 tests/stub_debug.cc \
2668 tests/stub_libmem.cc \
2669 tests/stub_tools.cc
2670 tests_testIpAddress_LDADD= \
2671 ip/libip.la \
2672 base/libbase.la \
2673 $(LIBCPPUNIT_LIBS) \
2674 $(COMPAT_LIB) \
2675 $(XTRA_LIBS)
2676 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2677
2678 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2679 ## first line - what we are testing.
2680 tests_testStore_SOURCES= \
2681 CacheDigest.h \
2682 tests/stub_CacheDigest.cc \
2683 cbdata.cc \
2684 ClientInfo.h \
2685 tests/stub_CollapsedForwarding.cc \
2686 ConfigOption.cc \
2687 ConfigParser.cc \
2688 $(DELAY_POOL_SOURCE) \
2689 fs_io.h \
2690 fs_io.cc \
2691 ETag.cc \
2692 event.cc \
2693 EventLoop.cc \
2694 fatal.h \
2695 tests/stub_fatal.cc \
2696 FileMap.h \
2697 filemap.cc \
2698 HttpHeaderFieldStat.h \
2699 HttpHdrCc.h \
2700 HttpHdrCc.cc \
2701 HttpHdrContRange.cc \
2702 HttpHdrRange.cc \
2703 HttpHdrSc.cc \
2704 HttpHdrScTarget.cc \
2705 HttpHeaderFieldInfo.h \
2706 HttpHeaderTools.h \
2707 HttpHeaderTools.cc \
2708 HttpHeader.h \
2709 HttpHeader.cc \
2710 HttpMsg.cc \
2711 RequestFlags.cc \
2712 RequestFlags.h \
2713 int.h \
2714 int.cc \
2715 MasterXaction.cc \
2716 MasterXaction.h \
2717 mem_node.cc \
2718 MemBuf.cc \
2719 MemObject.cc \
2720 Notes.h \
2721 Notes.cc \
2722 Parsing.cc \
2723 RemovalPolicy.cc \
2724 refresh.h \
2725 refresh.cc \
2726 StatCounters.h \
2727 StatCounters.cc \
2728 StatHist.h \
2729 StatHist.cc \
2730 stmem.cc \
2731 repl_modules.h \
2732 store.cc \
2733 store_io.cc \
2734 store_swapout.cc \
2735 StoreIOState.cc \
2736 tests/stub_StoreMeta.cc \
2737 StoreMetaUnpacker.cc \
2738 StoreSwapLogData.cc \
2739 store_key_md5.h \
2740 store_key_md5.cc \
2741 tests/stub_SBufDetailedStats.cc \
2742 String.cc \
2743 StrList.h \
2744 StrList.cc \
2745 tests/CapturingStoreEntry.h \
2746 log/access_log.h \
2747 tests/stub_access_log.cc \
2748 tests/stub_acl.cc \
2749 cache_cf.h \
2750 tests/stub_cache_cf.cc \
2751 tests/stub_cache_manager.cc \
2752 tests/stub_client_side_request.cc \
2753 tests/stub_comm.cc \
2754 tests/stub_debug.cc \
2755 tests/stub_errorpage.cc \
2756 fd.h \
2757 fde.h \
2758 tests/stub_fd.cc \
2759 tests/stub_helper.cc \
2760 tests/stub_HelperChildConfig.cc \
2761 tests/stub_http.cc \
2762 tests/stub_libauth.cc \
2763 tests/stub_libeui.cc \
2764 tests/stub_libdiskio.cc \
2765 tests/stub_libformat.cc \
2766 tests/stub_libsecurity.cc \
2767 tests/stub_libsslsquid.cc \
2768 HttpBody.h \
2769 HttpBody.cc \
2770 tests/stub_HttpReply.cc \
2771 tests/stub_HttpRequest.cc \
2772 tests/stub_libcomm.cc \
2773 tests/stub_MemStore.cc \
2774 mime.h \
2775 tests/stub_mime.cc \
2776 tests/stub_Port.cc \
2777 tests/stub_stat.cc \
2778 tests/stub_store_client.cc \
2779 tests/stub_store_stats.cc \
2780 store_rebuild.h \
2781 tests/stub_store_rebuild.cc \
2782 tests/stub_store_swapout.cc \
2783 tools.h \
2784 Transients.cc \
2785 tests/stub_tools.cc \
2786 tests/stub_UdsOp.cc \
2787 tests/testPackableStream.cc \
2788 tests/testPackableStream.h \
2789 tests/testStore.cc \
2790 tests/testStore.h \
2791 tests/testStoreController.cc \
2792 tests/testStoreController.h \
2793 tests/testStoreHashIndex.cc \
2794 tests/testStoreHashIndex.h \
2795 tests/testStoreSupport.cc \
2796 tests/testStoreSupport.h \
2797 tests/TestSwapDir.cc \
2798 tests/TestSwapDir.h \
2799 tests/stub_time.cc \
2800 url.cc \
2801 wordlist.h \
2802 wordlist.cc
2803
2804 nodist_tests_testStore_SOURCES= \
2805 $(TESTSOURCES) \
2806 SquidMath.cc \
2807 SquidMath.h \
2808 swap_log_op.cc
2809
2810 tests_testStore_LDADD= \
2811 libsquid.la \
2812 http/libhttp.la \
2813 parser/libparser.la \
2814 ident/libident.la \
2815 acl/libacls.la \
2816 acl/libstate.la \
2817 acl/libapi.la \
2818 dns/libdns.la \
2819 base/libbase.la \
2820 ip/libip.la \
2821 fs/libfs.la \
2822 mgr/libmgr.la \
2823 ipc/libipc.la \
2824 anyp/libanyp.la \
2825 mem/libmem.la \
2826 store/libstore.la \
2827 sbuf/libsbuf.la \
2828 DiskIO/libdiskio.la \
2829 $(top_builddir)/lib/libmisccontainers.la \
2830 $(top_builddir)/lib/libmiscencoding.la \
2831 $(top_builddir)/lib/libmiscutil.la \
2832 $(NETTLELIB) \
2833 $(REGEXLIB) \
2834 $(SSLLIB) \
2835 CommCalls.o \
2836 $(LIBCPPUNIT_LIBS) \
2837 $(COMPAT_LIB) \
2838 $(XTRA_LIBS)
2839 tests_testStore_LDFLAGS = $(LIBADD_DL)
2840
2841 ## string needs mem.cc.
2842 ## mem.cc needs ClientInfo.h
2843 ## libsquid pulls in SquidConfig and children. stub them.
2844 tests_testString_SOURCES = \
2845 ClientInfo.h \
2846 MemBuf.cc \
2847 String.cc \
2848 tests/stub_SBufDetailedStats.cc \
2849 tests/testString.cc \
2850 tests/testString.h \
2851 cache_cf.h \
2852 tests/stub_cache_cf.cc \
2853 tests/stub_cache_manager.cc \
2854 tests/stub_cbdata.cc \
2855 tests/stub_debug.cc \
2856 tests/stub_HelperChildConfig.cc \
2857 tests/stub_libmem.cc \
2858 tools.h \
2859 tests/stub_tools.cc \
2860 tests/stub_time.cc \
2861 wordlist.h \
2862 wordlist.cc
2863 nodist_tests_testString_SOURCES = \
2864 $(TESTSOURCES)
2865 tests_testString_LDADD = \
2866 base/libbase.la \
2867 libsquid.la \
2868 ip/libip.la \
2869 sbuf/libsbuf.la \
2870 $(top_builddir)/lib/libmiscutil.la \
2871 $(REGEXLIB) \
2872 $(SSLLIB) \
2873 $(LIBCPPUNIT_LIBS) \
2874 $(COMPAT_LIB) \
2875 $(XTRA_LIBS)
2876 tests_testString_LDFLAGS = $(LIBADD_DL)
2877
2878 SWAP_TEST_DS =\
2879 repl_modules.o \
2880 ident/libident.la \
2881 acl/libacls.la \
2882 acl/libstate.la \
2883 acl/libapi.la \
2884 base/libbase.la \
2885 libsquid.la \
2886 ip/libip.la \
2887 fs/libfs.la \
2888 DiskIO/libdiskio.la \
2889 ipc/libipc.la \
2890 mgr/libmgr.la \
2891 $(REPL_OBJS)
2892
2893 tests_testUfs_SOURCES = \
2894 AccessLogEntry.cc \
2895 AccessLogEntry.h \
2896 tests/testUfs.cc \
2897 tests/testUfs.h \
2898 tests/stub_cache_manager.cc \
2899 tests/stub_client_db.cc \
2900 tests/stub_CollapsedForwarding.cc \
2901 tests/stub_HelperChildConfig.cc \
2902 tests/stub_icp.cc \
2903 tests/stub_ipc.cc \
2904 tests/stub_ipcache.cc \
2905 tests/stub_libeui.cc \
2906 tests/stub_libicmp.cc \
2907 tests/stub_liblog.cc \
2908 tests/stub_MemStore.cc \
2909 tests/stub_neighbors.cc \
2910 tests/stub_pconn.cc \
2911 tests/stub_Port.cc \
2912 tests/stub_UdsOp.cc \
2913 internal.h \
2914 tests/stub_internal.cc \
2915 tests/stub_libformat.cc \
2916 tests/stub_libsecurity.cc \
2917 tests/stub_stat.cc \
2918 store_rebuild.h \
2919 tests/stub_store_rebuild.cc \
2920 tests/stub_store_stats.cc \
2921 fatal.h \
2922 tests/stub_fatal.cc \
2923 fd.h \
2924 fd.cc \
2925 fde.h \
2926 fde.cc \
2927 client_db.h \
2928 fs_io.h \
2929 fs_io.cc \
2930 FileMap.h \
2931 filemap.cc \
2932 HttpBody.h \
2933 HttpBody.cc \
2934 HttpReply.cc \
2935 int.h \
2936 int.cc \
2937 RequestFlags.h \
2938 RequestFlags.cc \
2939 Transients.cc \
2940 MasterXaction.cc \
2941 MasterXaction.h \
2942 MemObject.cc \
2943 Notes.h \
2944 Notes.cc \
2945 StoreSwapLogData.cc \
2946 StoreIOState.cc \
2947 StoreMetaUnpacker.cc \
2948 $(STOREMETA_SOURCE) \
2949 StoreFileSystem.cc \
2950 store_io.cc \
2951 store_swapout.cc \
2952 store_swapmeta.cc \
2953 $(UNLINKDSOURCE) \
2954 $(WIN32_SOURCE) \
2955 event.cc \
2956 $(DELAY_POOL_SOURCE) \
2957 CacheDigest.h \
2958 tests/stub_CacheDigest.cc \
2959 ConfigParser.cc \
2960 EventLoop.cc \
2961 HttpMsg.cc \
2962 RemovalPolicy.cc \
2963 repl_modules.h \
2964 store.cc \
2965 store_key_md5.h \
2966 store_key_md5.cc \
2967 Parsing.cc \
2968 ConfigOption.cc \
2969 tests/stub_acl.cc \
2970 cache_cf.h \
2971 tests/stub_cache_cf.cc \
2972 tests/stub_helper.cc \
2973 cbdata.cc \
2974 tests/stub_SBufDetailedStats.cc \
2975 String.cc \
2976 tests/stub_debug.cc \
2977 tests/stub_client_side_request.cc \
2978 tests/stub_http.cc \
2979 tests/stub_libauth.cc \
2980 mem_node.cc \
2981 stmem.cc \
2982 mime.h \
2983 tests/stub_mime.cc \
2984 HttpHeaderFieldInfo.h \
2985 HttpHeaderTools.h \
2986 HttpHeaderTools.cc \
2987 HttpHeader.h \
2988 HttpHeader.cc \
2989 ClientInfo.h \
2990 MemBuf.cc \
2991 HttpHdrContRange.cc \
2992 HttpHeaderFieldStat.h \
2993 HttpHdrCc.h \
2994 HttpHdrCc.cc \
2995 HttpHdrSc.cc \
2996 HttpHdrScTarget.cc \
2997 url.cc \
2998 StatCounters.h \
2999 StatCounters.cc \
3000 StatHist.h \
3001 StatHist.cc \
3002 StrList.h \
3003 StrList.cc \
3004 HttpHdrRange.cc \
3005 ETag.cc \
3006 tests/stub_errorpage.cc \
3007 tests/stub_HttpRequest.cc \
3008 log/access_log.h \
3009 tests/stub_access_log.cc \
3010 refresh.h \
3011 refresh.cc \
3012 tests/stub_store_client.cc \
3013 tools.h \
3014 tests/stub_tools.cc \
3015 tests/testStoreSupport.cc \
3016 tests/testStoreSupport.h \
3017 time.cc \
3018 wordlist.h \
3019 wordlist.cc
3020
3021 nodist_tests_testUfs_SOURCES = \
3022 $(TESTSOURCES) \
3023 SquidMath.cc \
3024 SquidMath.h \
3025 swap_log_op.cc
3026 tests_testUfs_LDADD = \
3027 http/libhttp.la \
3028 parser/libparser.la \
3029 CommCalls.o \
3030 ident/libident.la \
3031 acl/libacls.la \
3032 acl/libstate.la \
3033 acl/libapi.la \
3034 libsquid.la \
3035 ip/libip.la \
3036 fs/libfs.la \
3037 mgr/libmgr.la \
3038 $(REPL_OBJS) \
3039 acl/libacls.la \
3040 DiskIO/libdiskio.la \
3041 acl/libapi.la \
3042 $(SSL_LIBS) \
3043 ipc/libipc.la \
3044 comm/libcomm.la \
3045 anyp/libanyp.la \
3046 dns/libdns.la \
3047 base/libbase.la \
3048 ip/libip.la \
3049 mem/libmem.la \
3050 store/libstore.la \
3051 $(ADAPTATION_LIBS) \
3052 sbuf/libsbuf.la \
3053 $(top_builddir)/lib/libmisccontainers.la \
3054 $(top_builddir)/lib/libmiscencoding.la \
3055 $(top_builddir)/lib/libmiscutil.la \
3056 $(NETTLELIB) \
3057 $(REGEXLIB) \
3058 $(SSLLIB) \
3059 $(LIBCPPUNIT_LIBS) \
3060 $(COMPAT_LIB) \
3061 $(XTRA_LIBS)
3062 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3063 tests_testUfs_DEPENDENCIES = \
3064 $(SWAP_TEST_DS)
3065
3066 check_PROGRAMS += testRefCount
3067 testRefCount_SOURCES= \
3068 base/Lock.h \
3069 base/RefCount.h \
3070 tests/stub_cbdata.cc \
3071 tests/stub_debug.cc \
3072 tests/stub_libmem.cc \
3073 tests/stub_MemBuf.cc \
3074 tests/testRefCount.cc
3075 testRefCount_LDADD = \
3076 base/libbase.la \
3077 $(top_builddir)/lib/libmiscutil.la \
3078 $(COMPAT_LIB) \
3079 $(XTRA_LIBS)
3080
3081 tests_testRock_SOURCES = \
3082 AccessLogEntry.cc \
3083 AccessLogEntry.h \
3084 cbdata.cc \
3085 CacheDigest.h \
3086 CollapsedForwarding.h \
3087 CollapsedForwarding.cc \
3088 tests/stub_CacheDigest.cc \
3089 ConfigOption.cc \
3090 ConfigParser.cc \
3091 fs_io.h \
3092 fs_io.cc \
3093 ETag.cc \
3094 EventLoop.cc \
3095 event.cc \
3096 fatal.h \
3097 fatal.cc \
3098 fd.h \
3099 fd.cc \
3100 fde.h \
3101 fde.cc \
3102 FileMap.h \
3103 filemap.cc \
3104 HttpHeaderFieldStat.h \
3105 HttpBody.h \
3106 HttpBody.cc \
3107 HttpHdrCc.cc \
3108 HttpHdrContRange.cc \
3109 HttpHdrRange.cc \
3110 HttpHdrSc.cc \
3111 HttpHdrScTarget.cc \
3112 HttpHeader.h \
3113 HttpHeader.cc \
3114 HttpHeaderFieldInfo.h \
3115 HttpHeaderTools.h \
3116 HttpHeaderTools.cc \
3117 HttpMsg.cc \
3118 HttpReply.cc \
3119 int.h \
3120 int.cc \
3121 MasterXaction.cc \
3122 MasterXaction.h \
3123 MemBuf.cc \
3124 MemObject.cc \
3125 mem_node.cc \
3126 Notes.h \
3127 Notes.cc \
3128 Parsing.cc \
3129 RemovalPolicy.cc \
3130 RequestFlags.cc \
3131 RequestFlags.h \
3132 StatCounters.h \
3133 StatCounters.cc \
3134 StatHist.h \
3135 tests/stub_StatHist.cc \
3136 stmem.cc \
3137 repl_modules.h \
3138 tests/stub_stat.cc \
3139 store.cc \
3140 StoreFileSystem.cc \
3141 StoreIOState.cc \
3142 StoreMetaUnpacker.cc \
3143 $(STOREMETA_SOURCE) \
3144 StoreSwapLogData.cc \
3145 store_io.cc \
3146 store_key_md5.h \
3147 store_key_md5.cc \
3148 store_swapmeta.cc \
3149 store_swapout.cc \
3150 tests/stub_SBufDetailedStats.cc \
3151 String.cc \
3152 StrList.h \
3153 StrList.cc \
3154 Transients.h \
3155 Transients.cc \
3156 tests/testRock.cc \
3157 tests/testRock.h \
3158 tests/testStoreSupport.cc \
3159 tests/testStoreSupport.h \
3160 log/access_log.h \
3161 tests/stub_access_log.cc \
3162 cache_cf.h \
3163 tests/stub_cache_cf.cc \
3164 client_db.h \
3165 tests/stub_cache_manager.cc \
3166 tests/stub_client_db.cc \
3167 tests/stub_client_side_request.cc \
3168 tests/stub_debug.cc \
3169 tests/stub_errorpage.cc \
3170 tests/stub_HelperChildConfig.cc \
3171 tests/stub_http.cc \
3172 tests/stub_HttpRequest.cc \
3173 tests/stub_libauth.cc \
3174 tests/stub_icp.cc \
3175 tests/stub_ipc.cc \
3176 tests/stub_ipcache.cc \
3177 tests/stub_libeui.cc \
3178 tests/stub_libformat.cc \
3179 tests/stub_libicmp.cc \
3180 tests/stub_liblog.cc \
3181 tests/stub_libmgr.cc \
3182 tests/stub_libsecurity.cc \
3183 tests/stub_MemStore.cc \
3184 mime.h \
3185 tests/stub_mime.cc \
3186 tests/stub_neighbors.cc \
3187 tests/stub_Port.cc \
3188 tests/stub_pconn.cc \
3189 tests/stub_store_client.cc \
3190 store_rebuild.h \
3191 tests/stub_store_rebuild.cc \
3192 tests/stub_store_stats.cc \
3193 tools.h \
3194 tests/stub_tools.cc \
3195 time.cc \
3196 url.cc \
3197 wordlist.h \
3198 wordlist.cc \
3199 $(DELAY_POOL_SOURCE) \
3200 $(UNLINKDSOURCE)
3201 nodist_tests_testRock_SOURCES = \
3202 swap_log_op.cc \
3203 SquidMath.cc \
3204 SquidMath.h \
3205 $(TESTSOURCES)
3206 tests_testRock_LDADD = \
3207 http/libhttp.la \
3208 parser/libparser.la \
3209 libsquid.la \
3210 comm/libcomm.la \
3211 ip/libip.la \
3212 fs/libfs.la \
3213 $(COMMON_LIBS) \
3214 $(REPL_OBJS) \
3215 DiskIO/libdiskio.la \
3216 acl/libacls.la \
3217 acl/libapi.la \
3218 acl/libstate.la \
3219 anyp/libanyp.la \
3220 eui/libeui.la \
3221 $(SSL_LIBS) \
3222 ipc/libipc.la \
3223 base/libbase.la \
3224 mem/libmem.la \
3225 store/libstore.la \
3226 $(ADAPTATION_LIBS) \
3227 sbuf/libsbuf.la \
3228 $(top_builddir)/lib/libmisccontainers.la \
3229 $(top_builddir)/lib/libmiscencoding.la \
3230 $(top_builddir)/lib/libmiscutil.la \
3231 $(NETTLELIB) \
3232 $(REGEXLIB) \
3233 $(SSLLIB) \
3234 $(LIBCPPUNIT_LIBS) \
3235 $(COMPAT_LIB) \
3236 $(XTRA_LIBS)
3237 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3238 tests_testRock_DEPENDENCIES = \
3239 $(SWAP_TEST_DS)
3240
3241 ## Tests of the URL module.
3242 ## TODO: Trim this down once the insanity is over.
3243 tests_testURL_SOURCES = \
3244 AccessLogEntry.cc \
3245 BodyPipe.cc \
3246 cache_cf.h \
3247 AuthReg.h \
3248 RefreshPattern.h \
3249 cache_cf.cc \
3250 tests/stub_cache_manager.cc \
3251 CacheDigest.h \
3252 tests/stub_CacheDigest.cc \
3253 CachePeer.cc \
3254 CachePeer.h \
3255 carp.h \
3256 tests/stub_carp.cc \
3257 cbdata.cc \
3258 client_db.h \
3259 client_db.cc \
3260 client_side.h \
3261 client_side.cc \
3262 client_side_reply.cc \
3263 client_side_request.cc \
3264 ClientInfo.h \
3265 clientStream.cc \
3266 tests/stub_CollapsedForwarding.cc \
3267 ConfigOption.cc \
3268 ConfigParser.cc \
3269 CpuAffinityMap.cc \
3270 CpuAffinityMap.h \
3271 CpuAffinitySet.cc \
3272 CpuAffinitySet.h \
3273 $(DELAY_POOL_SOURCE) \
3274 fs_io.h \
3275 fs_io.cc \
3276 dlink.h \
3277 dlink.cc \
3278 $(DNSSOURCE) \
3279 errorpage.cc \
3280 ETag.cc \
3281 event.cc \
3282 external_acl.cc \
3283 ExternalACLEntry.cc \
3284 fatal.h \
3285 tests/stub_fatal.cc \
3286 fd.h \
3287 fd.cc \
3288 fde.cc \
3289 FileMap.h \
3290 filemap.cc \
3291 fqdncache.h \
3292 fqdncache.cc \
3293 FwdState.cc \
3294 FwdState.h \
3295 gopher.h \
3296 gopher.cc \
3297 helper.cc \
3298 hier_code.h \
3299 $(HTCPSOURCE) \
3300 http.cc \
3301 HttpBody.h \
3302 HttpBody.cc \
3303 tests/stub_HttpControlMsg.cc \
3304 HttpHeaderFieldStat.h \
3305 HttpHdrCc.h \
3306 HttpHdrCc.cc \
3307 HttpHdrContRange.cc \
3308 HttpHdrRange.cc \
3309 HttpHdrSc.cc \
3310 HttpHdrScTarget.cc \
3311 HttpHeader.h \
3312 HttpHeader.cc \
3313 HttpHeaderFieldInfo.h \
3314 HttpHeaderTools.h \
3315 HttpHeaderTools.cc \
3316 HttpMsg.cc \
3317 HttpReply.cc \
3318 PeerPoolMgr.h \
3319 PeerPoolMgr.cc \
3320 RequestFlags.h \
3321 RequestFlags.cc \
3322 HttpRequest.cc \
3323 icp_v2.cc \
3324 icp_v3.cc \
3325 $(IPC_SOURCE) \
3326 ipcache.cc \
3327 int.h \
3328 int.cc \
3329 internal.h \
3330 internal.cc \
3331 tests/stub_libeui.cc \
3332 LogTags.cc \
3333 MasterXaction.cc \
3334 MasterXaction.h \
3335 multicast.h \
3336 multicast.cc \
3337 mem_node.cc \
3338 MemBuf.cc \
3339 MemObject.cc \
3340 mime.h \
3341 mime.cc \
3342 mime_header.h \
3343 mime_header.cc \
3344 neighbors.h \
3345 neighbors.cc \
3346 Notes.h \
3347 Notes.cc \
3348 Parsing.cc \
3349 pconn.cc \
3350 peer_digest.cc \
3351 peer_proxy_negotiate_auth.h \
3352 peer_proxy_negotiate_auth.cc \
3353 peer_select.cc \
3354 peer_sourcehash.h \
3355 peer_sourcehash.cc \
3356 peer_userhash.h \
3357 peer_userhash.cc \
3358 Pipeline.cc \
3359 Pipeline.h \
3360 redirect.h \
3361 tests/stub_redirect.cc \
3362 refresh.h \
3363 refresh.cc \
3364 RemovalPolicy.cc \
3365 tests/stub_SBufDetailedStats.cc \
3366 $(SNMP_SOURCE) \
3367 SquidMath.h \
3368 SquidMath.cc \
3369 IoStats.h \
3370 stat.h \
3371 stat.cc \
3372 StatCounters.h \
3373 StatCounters.cc \
3374 StatHist.h \
3375 tests/stub_StatHist.cc \
3376 stmem.cc \
3377 repl_modules.h \
3378 store.cc \
3379 store_client.cc \
3380 store_digest.h \
3381 tests/stub_store_digest.cc \
3382 store_io.cc \
3383 store_key_md5.h \
3384 store_key_md5.cc \
3385 store_log.h \
3386 store_log.cc \
3387 store_rebuild.h \
3388 store_rebuild.cc \
3389 store_swapin.h \
3390 store_swapin.cc \
3391 store_swapmeta.cc \
3392 store_swapout.cc \
3393 StoreFileSystem.cc \
3394 StoreIOState.cc \
3395 tests/stub_StoreMeta.cc \
3396 StoreMetaUnpacker.cc \
3397 StoreSwapLogData.cc \
3398 String.cc \
3399 StrList.h \
3400 StrList.cc \
3401 Transients.cc \
3402 tests/stub_SwapDir.cc \
3403 MemStore.cc \
3404 tests/stub_debug.cc \
3405 tests/stub_libauth_acls.cc \
3406 tests/stub_libauth.cc \
3407 tests/stub_libdiskio.cc \
3408 tests/stub_libmem.cc \
3409 tests/stub_libsecurity.cc \
3410 tests/stub_main_cc.cc \
3411 tests/stub_ipc_Forwarder.cc \
3412 tests/stub_store_stats.cc \
3413 tests/testURL.cc \
3414 tests/testURL.h \
3415 tests/testUriScheme.cc \
3416 tests/testUriScheme.h \
3417 tests/stub_time.cc \
3418 tests/stub_EventLoop.cc \
3419 tools.h \
3420 tools.cc \
3421 tests/stub_tunnel.cc \
3422 url.cc \
3423 urn.h \
3424 urn.cc \
3425 wccp2.h \
3426 tests/stub_wccp2.cc \
3427 whois.h \
3428 tests/stub_whois.cc \
3429 FadingCounter.cc \
3430 $(WIN32_SOURCE) \
3431 wordlist.h \
3432 wordlist.cc
3433 nodist_tests_testURL_SOURCES = \
3434 $(BUILT_SOURCES)
3435 tests_testURL_LDADD = \
3436 libsquid.la \
3437 clients/libclients.la \
3438 servers/libservers.la \
3439 helper/libhelper.la \
3440 http/libhttp.la \
3441 ftp/libftp.la \
3442 parser/libparser.la \
3443 anyp/libanyp.la \
3444 ident/libident.la \
3445 acl/libacls.la \
3446 eui/libeui.la \
3447 acl/libstate.la \
3448 acl/libapi.la \
3449 dns/libdns.la \
3450 base/libbase.la \
3451 ip/libip.la \
3452 fs/libfs.la \
3453 $(SSL_LIBS) \
3454 ipc/libipc.la \
3455 mgr/libmgr.la \
3456 $(SNMP_LIBS) \
3457 icmp/libicmp.la \
3458 comm/libcomm.la \
3459 log/liblog.la \
3460 format/libformat.la \
3461 store/libstore.la \
3462 sbuf/libsbuf.la \
3463 $(REGEXLIB) \
3464 $(REPL_OBJS) \
3465 $(ADAPTATION_LIBS) \
3466 $(ESI_LIBS) \
3467 $(top_builddir)/lib/libmisccontainers.la \
3468 $(top_builddir)/lib/libmiscencoding.la \
3469 $(top_builddir)/lib/libmiscutil.la \
3470 $(NETTLELIB) \
3471 $(SSLLIB) \
3472 $(KRB5LIBS) \
3473 $(LIBCPPUNIT_LIBS) \
3474 $(COMPAT_LIB) \
3475 $(XTRA_LIBS)
3476 tests_testURL_LDFLAGS = $(LIBADD_DL)
3477
3478 tests_testSBuf_SOURCES= \
3479 tests/testSBuf.h \
3480 tests/testSBuf.cc \
3481 tests/SBufFindTest.h \
3482 tests/SBufFindTest.cc \
3483 tests/stub_SBufDetailedStats.cc \
3484 tests/stub_time.cc \
3485 tests/stub_debug.cc \
3486 tests/stub_fatal.cc \
3487 tests/stub_libmem.cc
3488 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3489 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3490 tests_testSBuf_LDADD= \
3491 sbuf/libsbuf.la \
3492 base/libbase.la \
3493 $(LIBCPPUNIT_LIBS) \
3494 $(COMPAT_LIB) \
3495 $(XTRA_LIBS)
3496
3497 tests_testSBufList_SOURCES= \
3498 tests/testSBufList.h \
3499 tests/testSBufList.cc \
3500 tests/stub_SBufDetailedStats.cc \
3501 tests/stub_time.cc \
3502 tests/stub_debug.cc \
3503 tests/stub_fatal.cc \
3504 tests/stub_libmem.cc
3505 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3506 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3507 tests_testSBufList_LDADD=\
3508 sbuf/libsbuf.la \
3509 base/libbase.la \
3510 $(LIBCPPUNIT_LIBS) \
3511 $(COMPAT_LIB) \
3512 $(XTRA_LIBS)
3513
3514 tests_testConfigParser_SOURCES = \
3515 ClientInfo.h \
3516 tests/stub_MemBuf.cc \
3517 tests/stub_time.cc \
3518 tests/stub_SBufDetailedStats.cc \
3519 String.cc \
3520 ConfigParser.cc \
3521 fatal.h \
3522 tests/stub_fatal.cc \
3523 tests/testConfigParser.cc \
3524 tests/testConfigParser.h \
3525 cache_cf.h \
3526 tests/stub_cache_cf.cc \
3527 tests/stub_cbdata.cc \
3528 tests/stub_debug.cc \
3529 tests/stub_libmem.cc \
3530 tests/stub_HelperChildConfig.cc \
3531 tools.h \
3532 tests/stub_tools.cc \
3533 wordlist.h \
3534 wordlist.cc
3535 nodist_tests_testConfigParser_SOURCES = \
3536 $(TESTSOURCES)
3537 tests_testConfigParser_LDADD = \
3538 libsquid.la \
3539 ip/libip.la \
3540 sbuf/libsbuf.la \
3541 base/libbase.la \
3542 $(top_builddir)/lib/libmiscutil.la \
3543 $(REGEXLIB) \
3544 $(SSLLIB) \
3545 $(LIBCPPUNIT_LIBS) \
3546 $(COMPAT_LIB) \
3547 $(XTRA_LIBS)
3548 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3549
3550 tests_testStatHist_SOURCES = \
3551 tests/stub_cbdata.cc \
3552 fatal.h \
3553 tests/stub_fatal.cc \
3554 tests/stub_MemBuf.cc \
3555 tests/stub_SBufDetailedStats.cc \
3556 StatHist.cc \
3557 StatHist.h \
3558 String.cc \
3559 tests/stub_cache_manager.cc \
3560 tests/stub_comm.cc \
3561 tests/stub_debug.cc \
3562 tests/stub_DelayId.cc \
3563 tests/stub_HelperChildConfig.cc \
3564 tests/stub_libmem.cc \
3565 tests/stub_MemObject.cc \
3566 mime.h \
3567 tests/stub_mime.cc \
3568 tests/stub_pconn.cc \
3569 tests/stub_stmem.cc \
3570 repl_modules.h \
3571 tests/stub_store.cc \
3572 tests/stub_store_stats.cc \
3573 time.cc \
3574 tools.h \
3575 tests/stub_tools.cc \
3576 tests/testStatHist.cc \
3577 tests/testStatHist.h
3578 nodist_tests_testStatHist_SOURCES = \
3579 $(TESTSOURCES)
3580 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3581 tests_testStatHist_LDADD = \
3582 sbuf/libsbuf.la \
3583 base/libbase.la \
3584 $(top_builddir)/lib/libmiscutil.la \
3585 $(top_builddir)/lib/libmisccontainers.la \
3586 $(LIBCPPUNIT_LIBS) \
3587 $(COMPAT_LIB)
3588
3589 tests_testLookupTable_SOURCES = \
3590 tests/testLookupTable.h \
3591 tests/testLookupTable.cc \
3592 tests/stub_debug.cc \
3593 tests/stub_libmem.cc \
3594 tests/stub_SBufDetailedStats.cc \
3595 base/LookupTable.h
3596 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3597 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3598 tests_testLookupTable_LDADD = \
3599 sbuf/libsbuf.la \
3600 base/libbase.la \
3601 $(LIBCPPUNIT_LIBS) \
3602 $(COMPAT_LIB) \
3603 $(XTRA_LIBS)
3604
3605 tests_testEnumIterator_SOURCES = \
3606 base/EnumIterator.h \
3607 tests/stub_debug.cc \
3608 tests/stub_libmem.cc \
3609 tests/testEnumIterator.h \
3610 tests/testEnumIterator.cc
3611 nodist_tests_testEnumIterator_SOURCES = \
3612 $(TESTSOURCES)
3613 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3614 tests_testEnumIterator_LDADD = \
3615 base/libbase.la \
3616 $(LIBCPPUNIT_LIBS) \
3617 $(COMPAT_LIB) \
3618 $(XTRA_LIBS)
3619
3620 tests_testYesNoNone_SOURCES = \
3621 tests/testYesNoNone.cc \
3622 tests/testYesNoNone.h
3623 nodist_tests_testYesNoNone_SOURCES = \
3624 tests/STUB.h \
3625 tests/stub_debug.cc \
3626 tests/stub_libmem.cc \
3627 base/YesNoNone.h
3628 tests_testYesNoNone_LDADD= \
3629 base/libbase.la \
3630 $(LIBCPPUNIT_LIBS) \
3631 $(COMPAT_LIB) \
3632 $(XTRA_LIBS)
3633 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3634
3635 tests_testMem_SOURCES = \
3636 tests/testMem.cc \
3637 tests/testMem.h
3638 nodist_tests_testMem_SOURCES = \
3639 tests/stub_debug.cc \
3640 tests/stub_time.cc \
3641 $(TESTSOURCES)
3642 tests_testMem_LDADD= \
3643 base/libbase.la \
3644 mem/libmem.la \
3645 $(top_builddir)/lib/libmiscutil.la \
3646 $(LIBCPPUNIT_LIBS) \
3647 $(COMPAT_LIB) \
3648 $(XTRA_LIBS)
3649 tests_testMem_LDFLAGS = $(LIBADD_DL)
3650
3651 TESTS += testHeaders
3652
3653 ## Special Universal .h dependency test script
3654 ## aborts if error encountered
3655 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3656 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3657 ## src/repl/ has no .h files and its own makefile.
3658
3659 CLEANFILES += testHeaders
3660 .PHONY: testHeaders
3661