]> git.ipfire.org Git - thirdparty/squid.git/blob - src/Makefile.am
C++11: Remove GnuRegex and all -lregex related code
[thirdparty/squid.git] / src / Makefile.am
1 ## Copyright (C) 1996-2016 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 HttpHdrCc.cci \
321 HttpHdrRange.cc \
322 HttpHdrSc.cc \
323 HttpHdrSc.h \
324 HttpHdrScTarget.cc \
325 HttpHdrScTarget.h \
326 HttpHdrContRange.cc \
327 HttpHdrContRange.h \
328 HttpHeaderStat.h \
329 HttpHeader.h \
330 HttpHeader.cc \
331 HttpHeaderMask.h \
332 HttpHeaderRange.h \
333 HttpHeaderFieldInfo.h \
334 HttpHeaderTools.h \
335 HttpHeaderTools.cc \
336 HttpBody.h \
337 HttpBody.cc \
338 HttpControlMsg.cc \
339 HttpControlMsg.h \
340 HttpMsg.cc \
341 HttpMsg.h \
342 HttpReply.cc \
343 HttpReply.h \
344 RequestFlags.h \
345 RequestFlags.cc \
346 HttpRequest.cc \
347 HttpRequest.h \
348 ICP.h \
349 icp_opcode.h \
350 icp_v2.cc \
351 icp_v3.cc \
352 int.h \
353 int.cc \
354 internal.h \
355 internal.cc \
356 $(IPC_SOURCE) \
357 ipcache.cc \
358 ipcache.h \
359 $(LEAKFINDERSOURCE) \
360 LogTags.cc \
361 LogTags.h \
362 lookup_t.h \
363 main.cc \
364 MasterXaction.cc \
365 MasterXaction.h \
366 mem_node.cc \
367 mem_node.h \
368 MemBuf.cc \
369 MemObject.cc \
370 MemObject.h \
371 MessageSizes.h \
372 mime.h \
373 mime.cc \
374 mime_header.h \
375 mime_header.cc \
376 multicast.h \
377 multicast.cc \
378 neighbors.h \
379 neighbors.cc \
380 Notes.h \
381 Notes.cc \
382 Parsing.cc \
383 Parsing.h \
384 $(XPROF_STATS_SOURCE) \
385 pconn.cc \
386 pconn.h \
387 PeerDigest.h \
388 peer_digest.cc \
389 peer_proxy_negotiate_auth.h \
390 peer_proxy_negotiate_auth.cc \
391 peer_select.cc \
392 peer_sourcehash.h \
393 peer_sourcehash.cc \
394 peer_userhash.h \
395 peer_userhash.cc \
396 PeerPoolMgr.h \
397 PeerPoolMgr.cc \
398 PeerSelectState.h \
399 PingData.h \
400 Pipeline.cc \
401 Pipeline.h \
402 protos.h \
403 redirect.h \
404 redirect.cc \
405 refresh.h \
406 refresh.cc \
407 RemovalPolicy.cc \
408 RemovalPolicy.h \
409 send-announce.h \
410 send-announce.cc \
411 SBufStatsAction.h \
412 SBufStatsAction.cc \
413 sbuf/StringConvert.h \
414 $(SNMP_SOURCE) \
415 SquidMath.h \
416 SquidMath.cc \
417 SquidNew.cc \
418 IoStats.h \
419 stat.h \
420 stat.cc \
421 StatCounters.h \
422 StatCounters.cc \
423 StatHist.h \
424 StatHist.cc \
425 String.cc \
426 StrList.h \
427 StrList.cc \
428 stmem.cc \
429 stmem.h \
430 repl_modules.h \
431 store.cc \
432 Store.h \
433 StoreFileSystem.cc \
434 StoreFileSystem.h \
435 store_io.cc \
436 StoreIOBuffer.h \
437 StoreIOState.cc \
438 StoreIOState.h \
439 store_client.cc \
440 StoreClient.h \
441 store_digest.h \
442 store_digest.cc \
443 store_key_md5.h \
444 store_key_md5.cc \
445 store_log.h \
446 store_log.cc \
447 store_rebuild.h \
448 store_rebuild.cc \
449 store_swapin.h \
450 store_swapin.cc \
451 store_swapmeta.cc \
452 store_swapout.cc \
453 StoreMetaUnpacker.cc \
454 StoreMetaUnpacker.h \
455 $(STOREMETA_SOURCE) \
456 StoreSearch.h \
457 StoreStats.cc \
458 StoreStats.h \
459 StoreSwapLogData.cc \
460 StoreSwapLogData.h \
461 swap_log_op.h \
462 Transients.cc \
463 Transients.h \
464 MemStore.cc \
465 MemStore.h \
466 time.cc \
467 TimeOrTag.h \
468 tools.h \
469 tools.cc \
470 tunnel.cc \
471 typedefs.h \
472 $(UNLINKDSOURCE) \
473 url.cc \
474 URL.h \
475 urn.h \
476 urn.cc \
477 wccp.h \
478 wccp.cc \
479 wccp2.h \
480 wccp2.cc \
481 whois.h \
482 whois.cc \
483 wordlist.h \
484 wordlist.cc \
485 $(WIN32_SOURCE) \
486 $(WINSVC_SOURCE)
487
488 EXTRA_squid_SOURCES = \
489 $(all_AUTHMODULES) \
490 ConfigOption.h \
491 $(DELAY_POOL_ALL_SOURCE) \
492 htcp.cc \
493 htcp.h \
494 ipc.cc \
495 ipc_win32.cc \
496 ProfStats.cc \
497 LeakFinder.cc \
498 LeakFinder.h \
499 $(SNMP_ALL_SOURCE) \
500 $(UNLINKDSOURCE) \
501 $(WIN32_ALL_SOURCE) \
502 $(LOADABLE_MODULES_SOURCES)
503
504 noinst_HEADERS = \
505 client_side_request.cci \
506 MemBuf.h \
507 String.cci \
508 SquidString.h \
509 SquidTime.h
510
511 BUILT_SOURCES = \
512 cf_gen_defines.cci \
513 cf_parser.cci \
514 err_type.cc \
515 err_detail_type.cc \
516 globals.cc \
517 hier_code.cc \
518 icp_opcode.cc \
519 lookup_t.cc \
520 repl_modules.cc \
521 swap_log_op.cc
522
523 CLEANFILES += $(BUILT_SOURCES)
524
525 nodist_squid_SOURCES = \
526 $(BUILT_SOURCES)
527
528 squid_LDADD = \
529 $(AUTH_ACL_LIBS) \
530 ident/libident.la \
531 acl/libacls.la \
532 acl/libstate.la \
533 $(AUTH_LIBS) \
534 acl/libapi.la \
535 clients/libclients.la \
536 servers/libservers.la \
537 ftp/libftp.la \
538 helper/libhelper.la \
539 http/libhttp.la \
540 dns/libdns.la \
541 base/libbase.la \
542 libsquid.la \
543 ip/libip.la \
544 fs/libfs.la \
545 DiskIO/libdiskio.la \
546 comm/libcomm.la \
547 anyp/libanyp.la \
548 security/libsecurity.la \
549 $(SSL_LIBS) \
550 ipc/libipc.la \
551 mgr/libmgr.la \
552 parser/libparser.la \
553 eui/libeui.la \
554 icmp/libicmp.la \
555 log/liblog.la \
556 format/libformat.la \
557 sbuf/libsbuf.la \
558 $(XTRA_OBJS) \
559 $(REPL_OBJS) \
560 $(NETTLELIB) \
561 $(CRYPTLIB) \
562 $(ADAPTATION_LIBS) \
563 $(ESI_LIBS) \
564 $(SNMP_LIBS) \
565 mem/libmem.la \
566 store/libstore.la \
567 $(top_builddir)/lib/libmisccontainers.la \
568 $(top_builddir)/lib/libmiscencoding.la \
569 $(top_builddir)/lib/libmiscutil.la \
570 $(ATOMICLIB) \
571 $(SSLLIB) \
572 $(EPOLL_LIBS) \
573 $(MINGW_LIBS) \
574 $(KRB5LIBS) \
575 $(COMPAT_LIB) \
576 $(XTRA_LIBS)
577
578 if ENABLE_LOADABLE_MODULES
579 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
580 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
581 squid_LDFLAGS = -export-dynamic -dlopen force
582 ## when static module linking is supported and enabled:
583 ## squid_LDFLAGS = -all-static -dlopen self
584 ##
585 ## LTDL headers require their local include path...
586 AM_CPPFLAGS += $(INCLTDL)
587 endif
588
589 ## Kerberos libraries require their include path...
590 AM_CPPFLAGS += $(KRB5INCS)
591
592
593 unlinkd_SOURCES = unlinkd_daemon.cc
594 unlinkd_LDADD = \
595 $(COMPAT_LIB) \
596 $(XTRA_LIBS)
597
598 recv_announce_SOURCES = recv-announce.cc
599
600 ## What requires what..
601 ## many things want ACLChecklist.cc
602 ## ACLChecklist.cc wants AuthUserRequest.cc
603 ## ACLChecklist.cc wants AuthScheme.cc
604 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
605 ## ACLProxyAuth.cc wants ACLUserData
606 ## ACLProxyAuth.cc wants ACLRegexData
607 ## cache_cf.cc wants $(AUTH_LIBS)
608 ## cache_cf.cc wants store/libstore.la
609 ## cache_cf.cc wants AnyP::PortCfg
610 ## client_side wants client_db
611 ## client_db wants SNMP_SOURCE
612 ## snmp_core wants ACLStringData
613 ## tools.cc wants ip/libip.la
614 ## client_side.cc wants ip/libip.la
615 ## libbase.la wants cbdata.*
616 ## libbase.la wants MemBuf.*
617 ufsdump_SOURCES = \
618 ClientInfo.h \
619 cbdata.h \
620 cbdata.cc \
621 debug.cc \
622 int.h \
623 int.cc \
624 mem/forward.h \
625 MemBuf.cc \
626 MemBuf.h \
627 Parsing.h \
628 store_key_md5.h \
629 store_key_md5.cc \
630 tests/stub_StoreMeta.cc \
631 StoreMetaUnpacker.cc \
632 String.cc \
633 SquidNew.cc \
634 tests/stub_time.cc \
635 ufsdump.cc \
636 dlink.h \
637 dlink.cc \
638 helper/ChildConfig.h \
639 tests/stub_HelperChildConfig.cc \
640 RemovalPolicy.cc \
641 $(WIN32_SOURCE) \
642 fd.h \
643 tests/stub_fd.cc
644 ufsdump_LDADD = \
645 ident/libident.la \
646 acl/libacls.la \
647 eui/libeui.la \
648 acl/libstate.la \
649 acl/libapi.la \
650 base/libbase.la \
651 libsquid.la \
652 ip/libip.la \
653 fs/libfs.la \
654 ipc/libipc.la \
655 mgr/libmgr.la \
656 $(XTRA_OBJS) \
657 $(REPL_OBJS) \
658 $(NETTLELIB) \
659 $(CRYPTLIB) \
660 $(SSLLIB) \
661 $(COMPAT_LIB) \
662 $(EPOLL_LIBS) \
663 $(MINGW_LIBS) \
664 $(XTRA_LIBS)
665 ufsdump_DEPENDENCIES = \
666 ident/libident.la \
667 acl/libacls.la \
668 eui/libeui.la \
669 acl/libstate.la \
670 acl/libapi.la \
671 base/libbase.la \
672 libsquid.la \
673 ip/libip.la \
674 fs/libfs.la \
675 ipc/libipc.la \
676 mgr/libmgr.la \
677 DiskIO/libdiskio.la \
678 $(REPL_OBJS)
679
680 nodist_ufsdump_SOURCES = \
681 globals.cc
682
683 sysconf_DATA = \
684 squid.conf.default \
685 squid.conf.documented \
686 mime.conf.default
687
688 data_DATA = \
689 mib.txt
690
691 LDADD = \
692 $(AUTH_ACL_LIBS) \
693 ident/libident.la \
694 acl/libacls.la \
695 eui/libeui.la \
696 acl/libstate.la \
697 $(AUTH_LIBS) \
698 acl/libapi.la \
699 base/libbase.la \
700 libsquid.la \
701 ip/libip.la \
702 fs/libfs.la \
703 ipc/libipc.la \
704 mgr/libmgr.la \
705 $(EPOLL_LIBS) \
706 $(MINGW_LIBS) \
707 $(COMPAT_LIB) \
708 $(XTRA_LIBS)
709
710 include $(srcdir)/tests/Stub.list
711
712 EXTRA_DIST = \
713 cf_gen_defines \
714 cf.data.pre \
715 cf.data.depend \
716 cf.data.sed \
717 mk-globals-c.awk \
718 mk-string-arrays.awk \
719 repl_modules.sh \
720 $(STUB_SOURCE) \
721 mib.txt \
722 mime.conf.default
723
724 # Make location configure settings available to the code
725 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
726
727 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
728
729 globals.cc: globals.h mk-globals-c.awk
730 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
731
732 ## Generate files containing string arrays for various enums....
733 hier_code.cc: hier_code.h mk-string-arrays.awk
734 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
735
736 err_type.cc: err_type.h mk-string-arrays.awk
737 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
738
739 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
740 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
741
742 lookup_t.cc: lookup_t.h mk-string-arrays.awk
743 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
744
745 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
746 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
747
748 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
749 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
750
751
752 ## other generated files...
753
754 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
755 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
756
757 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
758 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
759
760 ## If autodependency works well this is not needed anymore
761 cache_cf.o: cf_parser.cci
762
763 # cf_gen builds the configuration files.
764 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
765 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
766
767 # squid.conf.default is built by cf_gen when making cf_parser.cci
768 squid.conf.default squid.conf.documented: cf_parser.cci
769 true
770
771 cf_parser.cci: cf.data cf_gen$(EXEEXT)
772 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
773
774 # The cf_gen_defines.cci is auto-generated and does not exist when the
775 # dependencies computed. We need to add its include files (autoconf.h) here
776 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
777 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
778
779
780 ## FIXME: generate a sed command file from configure. Then this doesn't
781 ## depend on the Makefile.
782 cf.data: cf.data.pre Makefile
783 sed \
784 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
785 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
786 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
787 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
788 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
789 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
790 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
791 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
792 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
793 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
794 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
795 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
796 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
797 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
798 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
799 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
800 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
801 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
802 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
803 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
804 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
805 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
806 -f $(srcdir)/cf.data.sed \
807 < $(srcdir)/cf.data.pre >$@
808
809 repl_modules.cc: repl_modules.sh Makefile
810 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
811
812 include $(top_srcdir)/doc/manuals/Substitute.am
813
814 squid.8: $(srcdir)/squid.8.in Makefile
815 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
816
817 man_MANS = squid.8
818 EXTRA_DIST += squid.8.in
819 CLEANFILES += squid.8
820
821 install-data-local: install-sysconfDATA install-dataDATA
822 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
823 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
824 else \
825 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
826 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
827 fi
828 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
829 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
830 else \
831 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
832 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
833 fi
834 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
835 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
836 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
837 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
838 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
839 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
840 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
841
842 uninstall-local: squid.conf.default
843 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
844 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
845
846 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
847 test_tools.cc *.a
848
849 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
850 cp $(top_srcdir)/test-suite/test_tools.cc .
851
852 # stock tools for unit tests - library independent versions of dlink_list
853 # etc.
854 # globals.cc is needed by test_tools.cc.
855 # Neither of these should be disted from here.
856 TESTSOURCES= \
857 tests/STUB.h \
858 test_tools.cc \
859 globals.cc
860
861 check_PROGRAMS+=\
862 tests/testBoilerplate \
863 tests/testCacheManager \
864 tests/testCharacterSet \
865 tests/testDiskIO \
866 tests/testDns \
867 tests/testEnumIterator \
868 tests/testEvent \
869 tests/testEventLoop \
870 tests/test_http_range \
871 tests/testTokenizer \
872 tests/testHttp1Parser \
873 tests/testHttpReply \
874 tests/testHttpRequest \
875 tests/testIcmp \
876 tests/testIpAddress \
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 HttpHdrCc.cci \
933 HttpHdrContRange.cc \
934 HttpHdrContRange.h \
935 HttpHdrRange.cc \
936 HttpHdrSc.cc \
937 HttpHdrSc.h \
938 HttpHdrScTarget.cc \
939 HttpHdrScTarget.h \
940 HttpHeader.h \
941 HttpHeader.cc \
942 HttpHeaderMask.h \
943 HttpHeaderFieldInfo.h \
944 HttpHeaderTools.h \
945 HttpHeaderTools.cc \
946 HttpControlMsg.cc \
947 HttpControlMsg.h \
948 HttpMsg.cc \
949 HttpMsg.h \
950 HttpReply.cc \
951 HttpReply.h \
952 MasterXaction.cc \
953 MasterXaction.h \
954 MemBuf.cc \
955 MemBuf.h \
956 mime_header.h \
957 mime_header.cc \
958 Notes.h \
959 Notes.cc \
960 SquidString.h \
961 SquidTime.h \
962 tests/stub_SBufDetailedStats.cc \
963 String.cc \
964 StrList.h \
965 StrList.cc \
966 log/access_log.h \
967 tests/stub_access_log.cc \
968 cache_cf.h \
969 tests/stub_cache_cf.cc \
970 tests/stub_cache_manager.cc \
971 tests/stub_comm.cc \
972 tests/stub_debug.cc \
973 tests/stub_errorpage.cc \
974 tests/stub_event.cc \
975 tests/stub_fd.cc \
976 tests/stub_HelperChildConfig.cc \
977 tests/stub_libformat.cc \
978 tests/stub_libauth.cc \
979 tests/stub_libcomm.cc \
980 tests/stub_libmgr.cc \
981 tests/stub_libsecurity.cc \
982 tests/stub_libsslsquid.cc \
983 StatCounters.h \
984 StatCounters.cc \
985 StatHist.h \
986 tests/stub_StatHist.cc \
987 repl_modules.h \
988 tests/stub_store.cc \
989 tests/stub_store_stats.cc \
990 tools.h \
991 tests/stub_tools.cc \
992 tests/stub_HttpRequest.cc \
993 tests/testHttpReply.cc \
994 tests/testHttpReply.h \
995 tests/stub_time.cc \
996 url.cc \
997 wordlist.h \
998 wordlist.cc
999 nodist_tests_testHttpReply_SOURCES=\
1000 $(TESTSOURCES)
1001 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1002 tests_testHttpReply_LDADD=\
1003 CommCalls.o \
1004 http/libhttp.la \
1005 parser/libparser.la \
1006 acl/libacls.la \
1007 acl/libapi.la \
1008 acl/libstate.la \
1009 anyp/libanyp.la \
1010 ip/libip.la \
1011 base/libbase.la \
1012 ipc/libipc.la \
1013 mem/libmem.la \
1014 sbuf/libsbuf.la \
1015 $(top_builddir)/lib/libmisccontainers.la \
1016 $(top_builddir)/lib/libmiscencoding.la \
1017 $(top_builddir)/lib/libmiscutil.la \
1018 $(NETTLELIB) \
1019 $(SSLLIB) \
1020 $(LIBCPPUNIT_LIBS) \
1021 $(COMPAT_LIB) \
1022 $(XTRA_LIBS)
1023
1024 tests_testACLMaxUserIP_SOURCES= \
1025 cbdata.cc \
1026 ClientInfo.h \
1027 tests/stub_CollapsedForwarding.cc \
1028 ConfigOption.cc \
1029 ConfigParser.cc \
1030 tests/stub_ETag.cc \
1031 event.cc \
1032 fatal.h \
1033 tests/stub_fatal.cc \
1034 FileMap.h \
1035 filemap.cc \
1036 HttpBody.cc \
1037 HttpHeader.h \
1038 HttpHeader.cc \
1039 HttpHeaderFieldInfo.h \
1040 HttpHeaderTools.h \
1041 HttpHeaderTools.cc \
1042 HttpHdrContRange.cc \
1043 HttpHdrRange.cc \
1044 HttpHeaderFieldStat.h \
1045 HttpHdrCc.h \
1046 HttpHdrCc.cc \
1047 HttpHdrCc.cci \
1048 HttpHdrSc.cc \
1049 HttpHdrScTarget.cc \
1050 HttpMsg.cc \
1051 int.h \
1052 int.cc \
1053 MasterXaction.cc \
1054 MasterXaction.h \
1055 Notes.cc \
1056 Notes.h \
1057 mem_node.cc \
1058 Parsing.cc \
1059 tests/stub_libsecurity.cc \
1060 SquidMath.cc \
1061 StatCounters.cc \
1062 StatCounters.h \
1063 StatHist.h \
1064 StrList.h \
1065 StrList.cc \
1066 tests/stub_StatHist.cc \
1067 stmem.cc \
1068 tests/stub_SBufDetailedStats.cc \
1069 String.cc \
1070 StoreIOState.cc \
1071 tests/stub_StoreMeta.cc \
1072 StoreMetaUnpacker.cc \
1073 StoreSwapLogData.cc \
1074 store_key_md5.h \
1075 store_key_md5.cc \
1076 swap_log_op.cc \
1077 swap_log_op.h \
1078 tests/stub_SwapDir.cc \
1079 Transients.cc \
1080 log/access_log.h \
1081 tests/stub_access_log.cc \
1082 cache_cf.h \
1083 tests/stub_cache_cf.cc \
1084 tests/stub_client_side.cc \
1085 tests/stub_debug.cc \
1086 tests/stub_DelayId.cc \
1087 tests/stub_errorpage.cc \
1088 fd.h \
1089 tests/stub_fd.cc \
1090 tests/stub_HttpRequest.cc \
1091 tests/stub_HttpReply.cc \
1092 tests/stub_ipc_TypedMsgHdr.cc \
1093 tests/stub_libauth.cc \
1094 tests/stub_libcomm.cc \
1095 tests/stub_libdiskio.cc \
1096 tests/stub_libformat.cc \
1097 tests/stub_libmem.cc \
1098 tests/stub_libsslsquid.cc \
1099 tests/stub_MemObject.cc \
1100 tests/stub_MemStore.cc \
1101 mime.h \
1102 tests/stub_mime.cc \
1103 tests/stub_pconn.cc \
1104 tests/stub_Port.cc \
1105 repl_modules.h \
1106 tests/stub_store.cc \
1107 tests/stub_store_client.cc \
1108 store_rebuild.h \
1109 tests/stub_store_rebuild.cc \
1110 tests/stub_store_stats.cc \
1111 tests/stub_store_swapout.cc \
1112 tools.h \
1113 tests/stub_tools.cc \
1114 tests/stub_cache_manager.cc \
1115 tests/stub_UdsOp.cc \
1116 tests/testACLMaxUserIP.cc \
1117 tests/testACLMaxUserIP.h \
1118 tests/stub_time.cc \
1119 url.cc \
1120 URL.h \
1121 MemBuf.cc \
1122 wordlist.h \
1123 wordlist.cc
1124 nodist_tests_testACLMaxUserIP_SOURCES= \
1125 $(TESTSOURCES)
1126 tests_testACLMaxUserIP_LDADD= \
1127 libsquid.la \
1128 helper/libhelper.la \
1129 http/libhttp.la \
1130 parser/libparser.la \
1131 $(AUTH_ACL_LIBS) \
1132 ident/libident.la \
1133 acl/libacls.la \
1134 eui/libeui.la \
1135 acl/libstate.la \
1136 acl/libapi.la \
1137 anyp/libanyp.la \
1138 base/libbase.la \
1139 ip/libip.la \
1140 ipc/libipc.la \
1141 mgr/libmgr.la \
1142 sbuf/libsbuf.la \
1143 $(top_builddir)/lib/libmisccontainers.la \
1144 $(top_builddir)/lib/libmiscencoding.la \
1145 $(top_builddir)/lib/libmiscutil.la \
1146 $(NETTLELIB) \
1147 $(SSLLIB) \
1148 $(LIBCPPUNIT_LIBS) \
1149 $(COMPAT_LIB) \
1150 $(XTRA_LIBS)
1151 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1152
1153 ## a demonstration test that does nothing but shows the salient points
1154 ## involved in writing tests.
1155 tests_testBoilerplate_SOURCES = \
1156 tests/testBoilerplate.cc \
1157 tests/testBoilerplate.h \
1158 tests/stub_debug.cc \
1159 tests/stub_libmem.cc \
1160 tests/stub_time.cc
1161 nodist_tests_testBoilerplate_SOURCES = \
1162 tests/stub_cbdata.cc \
1163 tests/stub_MemBuf.cc \
1164 $(TESTSOURCES)
1165 tests_testBoilerplate_LDADD= \
1166 $(SSLLIB) \
1167 base/libbase.la \
1168 $(LIBCPPUNIT_LIBS) \
1169 $(COMPAT_LIB) \
1170 $(XTRA_LIBS)
1171 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1172
1173 ## Tests of base/libbase.la objects
1174 tests_testCharacterSet_SOURCES = \
1175 tests/testCharacterSet.cc \
1176 tests/testCharacterSet.h
1177 nodist_tests_testCharacterSet_SOURCES = \
1178 base/CharacterSet.h \
1179 $(TESTSOURCES) \
1180 tests/stub_cbdata.cc \
1181 tests/stub_debug.cc \
1182 tests/stub_libmem.cc \
1183 tests/stub_MemBuf.cc
1184 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1185 tests_testCharacterSet_LDADD= \
1186 base/libbase.la \
1187 $(LIBCPPUNIT_LIBS) \
1188 $(COMPAT_LIB) \
1189 $(XTRA_LIBS)
1190
1191 ## Tests of the CacheManager module.
1192 tests_testCacheManager_SOURCES = \
1193 AccessLogEntry.cc \
1194 debug.cc \
1195 RequestFlags.h \
1196 RequestFlags.cc \
1197 HttpRequest.cc \
1198 String.cc \
1199 tests/testCacheManager.cc \
1200 tests/testCacheManager.h \
1201 tests/stub_main_cc.cc \
1202 tests/stub_HttpControlMsg.cc \
1203 tests/stub_ipc_Forwarder.cc \
1204 tests/stub_store_stats.cc \
1205 tests/stub_EventLoop.cc \
1206 time.cc \
1207 BodyPipe.cc \
1208 cache_manager.cc \
1209 cache_cf.h \
1210 AuthReg.h \
1211 RefreshPattern.h \
1212 cache_cf.cc \
1213 CachePeer.cc \
1214 CachePeer.h \
1215 CacheDigest.h \
1216 tests/stub_CacheDigest.cc \
1217 carp.h \
1218 tests/stub_carp.cc \
1219 cbdata.cc \
1220 client_db.h \
1221 client_db.cc \
1222 client_side.h \
1223 client_side.cc \
1224 client_side_reply.cc \
1225 client_side_request.cc \
1226 ClientInfo.h \
1227 clientStream.cc \
1228 tests/stub_CollapsedForwarding.cc \
1229 ConfigOption.cc \
1230 ConfigParser.cc \
1231 CpuAffinityMap.cc \
1232 CpuAffinityMap.h \
1233 CpuAffinitySet.cc \
1234 CpuAffinitySet.h \
1235 $(DELAY_POOL_SOURCE) \
1236 fs_io.h \
1237 fs_io.cc \
1238 dlink.h \
1239 dlink.cc \
1240 $(DNSSOURCE) \
1241 errorpage.cc \
1242 tests/stub_ETag.cc \
1243 event.cc \
1244 external_acl.cc \
1245 ExternalACLEntry.cc \
1246 fatal.h \
1247 tests/stub_fatal.cc \
1248 fd.h \
1249 fd.cc \
1250 fde.cc \
1251 FileMap.h \
1252 filemap.cc \
1253 fqdncache.h \
1254 fqdncache.cc \
1255 FwdState.cc \
1256 FwdState.h \
1257 gopher.h \
1258 gopher.cc \
1259 hier_code.h \
1260 helper.cc \
1261 $(HTCPSOURCE) \
1262 http.cc \
1263 HttpBody.h \
1264 HttpBody.cc \
1265 HttpHeader.h \
1266 HttpHeader.cc \
1267 HttpHeaderFieldInfo.h \
1268 HttpHeaderTools.h \
1269 HttpHeaderTools.cc \
1270 HttpHeaderFieldStat.h \
1271 HttpHdrCc.h \
1272 HttpHdrCc.cc \
1273 HttpHdrCc.cci \
1274 HttpHdrContRange.cc \
1275 HttpHdrRange.cc \
1276 HttpHdrSc.cc \
1277 HttpHdrScTarget.cc \
1278 HttpMsg.cc \
1279 HttpReply.cc \
1280 icp_v2.cc \
1281 icp_v3.cc \
1282 $(IPC_SOURCE) \
1283 ipcache.cc \
1284 int.h \
1285 int.cc \
1286 internal.h \
1287 internal.cc \
1288 LogTags.cc \
1289 tests/stub_libsecurity.cc \
1290 MasterXaction.cc \
1291 MasterXaction.h \
1292 multicast.h \
1293 multicast.cc \
1294 mem_node.cc \
1295 MemBuf.cc \
1296 MemObject.cc \
1297 mime.h \
1298 mime.cc \
1299 mime_header.h \
1300 mime_header.cc \
1301 neighbors.h \
1302 neighbors.cc \
1303 Notes.cc \
1304 Notes.h \
1305 Parsing.cc \
1306 pconn.cc \
1307 peer_digest.cc \
1308 peer_proxy_negotiate_auth.h \
1309 peer_proxy_negotiate_auth.cc \
1310 peer_select.cc \
1311 peer_sourcehash.h \
1312 peer_sourcehash.cc \
1313 peer_userhash.h \
1314 peer_userhash.cc \
1315 PeerPoolMgr.h \
1316 PeerPoolMgr.cc \
1317 Pipeline.cc \
1318 Pipeline.h \
1319 redirect.h \
1320 tests/stub_redirect.cc \
1321 refresh.h \
1322 refresh.cc \
1323 RemovalPolicy.cc \
1324 tests/stub_SBufDetailedStats.cc \
1325 $(SNMP_SOURCE) \
1326 SquidMath.h \
1327 SquidMath.cc \
1328 IoStats.h \
1329 stat.h \
1330 stat.cc \
1331 StatCounters.h \
1332 StatCounters.cc \
1333 StatHist.h \
1334 StrList.h \
1335 StrList.cc \
1336 tests/stub_libauth_acls.cc \
1337 tests/stub_libauth.cc \
1338 tests/stub_libdiskio.cc \
1339 tests/stub_StatHist.cc \
1340 stmem.cc \
1341 repl_modules.h \
1342 store.cc \
1343 store_client.cc \
1344 store_digest.h \
1345 tests/stub_store_digest.cc \
1346 store_io.cc \
1347 store_key_md5.h \
1348 store_key_md5.cc \
1349 store_log.h \
1350 store_log.cc \
1351 store_rebuild.h \
1352 store_rebuild.cc \
1353 store_swapin.h \
1354 store_swapin.cc \
1355 store_swapmeta.cc \
1356 store_swapout.cc \
1357 StoreFileSystem.cc \
1358 StoreIOState.cc \
1359 tests/stub_StoreMeta.cc \
1360 StoreMetaUnpacker.cc \
1361 StoreSwapLogData.cc \
1362 tools.h \
1363 tools.cc \
1364 Transients.cc \
1365 tests/stub_tunnel.cc \
1366 tests/stub_SwapDir.cc \
1367 MemStore.cc \
1368 $(UNLINKDSOURCE) \
1369 url.cc \
1370 urn.h \
1371 urn.cc \
1372 wccp2.h \
1373 tests/stub_wccp2.cc \
1374 whois.h \
1375 tests/stub_whois.cc \
1376 FadingCounter.cc \
1377 $(WIN32_SOURCE) \
1378 wordlist.h \
1379 wordlist.cc
1380 nodist_tests_testCacheManager_SOURCES = \
1381 $(BUILT_SOURCES)
1382 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1383 tests_testCacheManager_LDADD = \
1384 libsquid.la \
1385 clients/libclients.la \
1386 servers/libservers.la \
1387 ftp/libftp.la \
1388 helper/libhelper.la \
1389 http/libhttp.la \
1390 parser/libparser.la \
1391 ident/libident.la \
1392 acl/libacls.la \
1393 acl/libstate.la \
1394 acl/libapi.la \
1395 dns/libdns.la \
1396 base/libbase.la \
1397 ip/libip.la \
1398 fs/libfs.la \
1399 comm/libcomm.la \
1400 eui/libeui.la \
1401 icmp/libicmp.la \
1402 log/liblog.la \
1403 format/libformat.la \
1404 $(REPL_OBJS) \
1405 $(ADAPTATION_LIBS) \
1406 $(ESI_LIBS) \
1407 $(SSL_LIBS) \
1408 anyp/libanyp.la \
1409 ipc/libipc.la \
1410 mgr/libmgr.la \
1411 $(SNMP_LIBS) \
1412 mem/libmem.la \
1413 store/libstore.la \
1414 sbuf/libsbuf.la \
1415 $(top_builddir)/lib/libmisccontainers.la \
1416 $(top_builddir)/lib/libmiscencoding.la \
1417 $(top_builddir)/lib/libmiscutil.la \
1418 $(NETTLELIB) \
1419 $(SSLLIB) \
1420 $(KRB5LIBS) \
1421 $(LIBCPPUNIT_LIBS) \
1422 $(COMPAT_LIB) \
1423 $(XTRA_LIBS)
1424 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1425
1426 tests_testDiskIO_SOURCES = \
1427 AccessLogEntry.cc \
1428 AccessLogEntry.h \
1429 CacheDigest.h \
1430 tests/stub_CacheDigest.cc \
1431 cbdata.cc \
1432 client_db.h \
1433 ClientInfo.h \
1434 tests/stub_CollapsedForwarding.cc \
1435 ConfigOption.cc \
1436 ConfigParser.cc \
1437 $(DELAY_POOL_SOURCE) \
1438 fs_io.h \
1439 fs_io.cc \
1440 tests/stub_ETag.cc \
1441 EventLoop.cc \
1442 event.cc \
1443 fatal.h \
1444 tests/stub_fatal.cc \
1445 fd.h \
1446 fd.cc \
1447 fde.h \
1448 fde.cc \
1449 FileMap.h \
1450 filemap.cc \
1451 HttpBody.h \
1452 HttpBody.cc \
1453 HttpHeaderFieldStat.h \
1454 HttpHdrCc.h \
1455 HttpHdrCc.cc \
1456 HttpHdrCc.cci \
1457 HttpHdrContRange.cc \
1458 HttpHdrSc.cc \
1459 HttpHdrScTarget.cc \
1460 HttpHdrRange.cc \
1461 HttpHeaderFieldInfo.h \
1462 HttpHeaderTools.h \
1463 HttpHeaderTools.cc \
1464 HttpHeader.h \
1465 HttpHeader.cc \
1466 HttpMsg.cc \
1467 HttpReply.cc \
1468 int.h \
1469 int.cc \
1470 MasterXaction.cc \
1471 MasterXaction.h \
1472 MemBuf.cc \
1473 MemObject.cc \
1474 mem_node.cc \
1475 Notes.h \
1476 Notes.cc \
1477 Parsing.cc \
1478 refresh.h \
1479 refresh.cc \
1480 RemovalPolicy.cc \
1481 RequestFlags.h \
1482 RequestFlags.cc \
1483 tests/stub_libsecurity.cc \
1484 StatCounters.h \
1485 StatCounters.cc \
1486 StatHist.h \
1487 tests/stub_StatHist.cc \
1488 stmem.cc \
1489 tests/stub_SBufDetailedStats.cc \
1490 StoreFileSystem.cc \
1491 StoreIOState.cc \
1492 tests/stub_StoreMeta.cc \
1493 StoreMetaUnpacker.cc \
1494 StoreSwapLogData.cc \
1495 store_io.cc \
1496 store_key_md5.h \
1497 store_key_md5.cc \
1498 store_swapout.cc \
1499 store_swapmeta.cc \
1500 repl_modules.h \
1501 store.cc \
1502 String.cc \
1503 StrList.h \
1504 StrList.cc \
1505 tests/stub_SwapDir.cc \
1506 Transients.cc \
1507 log/access_log.h \
1508 tests/stub_access_log.cc \
1509 tests/stub_acl.cc \
1510 cache_cf.h \
1511 tests/stub_cache_cf.cc \
1512 tests/stub_cache_manager.cc \
1513 tests/stub_client_db.cc \
1514 client_side_request.h \
1515 tests/stub_client_side_request.cc \
1516 tests/stub_debug.cc \
1517 tests/stub_errorpage.cc \
1518 tests/stub_helper.cc \
1519 tests/stub_HelperChildConfig.cc \
1520 tests/stub_HttpRequest.cc \
1521 tests/stub_http.cc \
1522 tests/stub_icp.cc \
1523 internal.h \
1524 tests/stub_internal.cc \
1525 tests/stub_ipc.cc \
1526 tests/stub_ipcache.cc \
1527 tests/stub_libauth_acls.cc \
1528 tests/stub_libauth.cc \
1529 tests/stub_libeui.cc \
1530 tests/stub_libformat.cc \
1531 tests/stub_libicmp.cc \
1532 tests/stub_liblog.cc \
1533 tests/stub_MemStore.cc \
1534 mime.h \
1535 tests/stub_mime.cc \
1536 tests/stub_neighbors.cc \
1537 tests/stub_pconn.cc \
1538 tests/stub_Port.cc \
1539 tests/stub_stat.cc \
1540 tests/stub_store_client.cc \
1541 tests/stub_store_stats.cc \
1542 store_rebuild.h \
1543 tests/stub_store_rebuild.cc \
1544 tests/stub_UdsOp.cc \
1545 tests/testDiskIO.cc \
1546 tests/testDiskIO.h \
1547 tests/testStoreSupport.cc \
1548 tests/testStoreSupport.h \
1549 tests/stub_time.cc \
1550 $(UNLINKDSOURCE) \
1551 url.cc \
1552 $(WIN32_SOURCE) \
1553 wordlist.h \
1554 wordlist.cc \
1555 tools.h \
1556 tests/stub_tools.cc
1557 nodist_tests_testDiskIO_SOURCES= \
1558 $(TESTSOURCES) \
1559 SquidMath.cc \
1560 SquidMath.h \
1561 swap_log_op.cc
1562 tests_testDiskIO_LDADD = \
1563 libsquid.la \
1564 http/libhttp.la \
1565 parser/libparser.la \
1566 SquidConfig.o \
1567 CommCalls.o \
1568 ident/libident.la \
1569 acl/libacls.la \
1570 acl/libstate.la \
1571 comm/libcomm.la \
1572 ip/libip.la \
1573 fs/libfs.la \
1574 ipc/libipc.la \
1575 $(REPL_OBJS) \
1576 $(ADAPTATION_LIBS) \
1577 DiskIO/libdiskio.la \
1578 acl/libapi.la \
1579 anyp/libanyp.la \
1580 mgr/libmgr.la \
1581 $(SSL_LIBS) \
1582 ipc/libipc.la \
1583 dns/libdns.la \
1584 base/libbase.la \
1585 mem/libmem.la \
1586 store/libstore.la \
1587 sbuf/libsbuf.la \
1588 $(top_builddir)/lib/libmisccontainers.la \
1589 $(top_builddir)/lib/libmiscencoding.la \
1590 $(top_builddir)/lib/libmiscutil.la \
1591 $(NETTLELIB) \
1592 $(SSLLIB) \
1593 $(LIBCPPUNIT_LIBS) \
1594 $(COMPAT_LIB) \
1595 $(XTRA_LIBS)
1596 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1597 tests_testDiskIO_DEPENDENCIES = \
1598 DiskIO/libdiskio.la \
1599 $(SWAP_TEST_DS)
1600
1601 tests_testDns_SOURCES= \
1602 tests/testRFC1035.cc \
1603 tests/testRFC1035.h
1604 nodist_tests_testDns_SOURCES= \
1605 tests/stub_debug.cc \
1606 tests/stub_libmem.cc \
1607 tests/stub_SBuf.cc \
1608 tests/stub_tools.cc
1609 tests_testDns_LDADD= \
1610 dns/libdns.la \
1611 base/libbase.la \
1612 $(top_builddir)/lib/libmiscutil.la \
1613 $(LIBCPPUNIT_LIBS) \
1614 $(COMPAT_LIB) \
1615 $(XTRA_LIBS)
1616 tests_testDns_LDFLAGS= $(LIBADD_DL)
1617
1618 tests_testEvent_SOURCES = \
1619 AccessLogEntry.cc \
1620 BodyPipe.cc \
1621 CacheDigest.h \
1622 tests/stub_CacheDigest.cc \
1623 cache_cf.h \
1624 AuthReg.h \
1625 RefreshPattern.h \
1626 cache_cf.cc \
1627 CachePeer.cc \
1628 CachePeer.h \
1629 cache_manager.cc \
1630 carp.h \
1631 tests/stub_carp.cc \
1632 cbdata.cc \
1633 client_db.h \
1634 client_db.cc \
1635 client_side.h \
1636 client_side.cc \
1637 client_side_reply.cc \
1638 client_side_request.cc \
1639 ClientInfo.h \
1640 clientStream.cc \
1641 tests/stub_CollapsedForwarding.cc \
1642 ConfigOption.cc \
1643 ConfigParser.cc \
1644 CpuAffinityMap.cc \
1645 CpuAffinityMap.h \
1646 CpuAffinitySet.cc \
1647 CpuAffinitySet.h \
1648 debug.cc \
1649 $(DELAY_POOL_SOURCE) \
1650 fs_io.h \
1651 fs_io.cc \
1652 dlink.h \
1653 dlink.cc \
1654 $(DNSSOURCE) \
1655 errorpage.cc \
1656 tests/stub_ETag.cc \
1657 event.cc \
1658 EventLoop.h \
1659 EventLoop.cc \
1660 external_acl.cc \
1661 ExternalACLEntry.cc \
1662 FadingCounter.cc \
1663 fatal.h \
1664 tests/stub_fatal.cc \
1665 fd.h \
1666 fd.cc \
1667 fde.cc \
1668 FileMap.h \
1669 filemap.cc \
1670 fqdncache.h \
1671 fqdncache.cc \
1672 FwdState.cc \
1673 FwdState.h \
1674 gopher.h \
1675 gopher.cc \
1676 helper.cc \
1677 hier_code.h \
1678 $(HTCPSOURCE) \
1679 http.cc \
1680 HttpBody.h \
1681 HttpBody.cc \
1682 tests/stub_HttpControlMsg.cc \
1683 HttpHeader.h \
1684 HttpHeader.cc \
1685 HttpHeaderFieldInfo.h \
1686 HttpHeaderTools.h \
1687 HttpHeaderTools.cc \
1688 HttpHeaderFieldStat.h \
1689 HttpHdrCc.h \
1690 HttpHdrCc.cc \
1691 HttpHdrCc.cci \
1692 HttpHdrContRange.cc \
1693 HttpHdrRange.cc \
1694 HttpHdrSc.cc \
1695 HttpHdrScTarget.cc \
1696 HttpMsg.cc \
1697 HttpReply.cc \
1698 PeerPoolMgr.h \
1699 PeerPoolMgr.cc \
1700 RequestFlags.h \
1701 RequestFlags.cc \
1702 HttpRequest.cc \
1703 icp_v2.cc \
1704 icp_v3.cc \
1705 $(IPC_SOURCE) \
1706 ipcache.cc \
1707 int.h \
1708 int.cc \
1709 internal.h \
1710 internal.cc \
1711 LogTags.cc \
1712 tests/stub_libsecurity.cc \
1713 MasterXaction.cc \
1714 MasterXaction.h \
1715 tests/stub_libmem.cc \
1716 mem_node.cc \
1717 MemBuf.cc \
1718 MemObject.cc \
1719 mime.h \
1720 mime.cc \
1721 mime_header.h \
1722 mime_header.cc \
1723 multicast.h \
1724 multicast.cc \
1725 neighbors.h \
1726 neighbors.cc \
1727 Notes.cc \
1728 Notes.h \
1729 Parsing.cc \
1730 pconn.cc \
1731 peer_digest.cc \
1732 peer_proxy_negotiate_auth.h \
1733 peer_proxy_negotiate_auth.cc \
1734 peer_select.cc \
1735 peer_sourcehash.h \
1736 peer_sourcehash.cc \
1737 peer_userhash.h \
1738 peer_userhash.cc \
1739 Pipeline.cc \
1740 Pipeline.h \
1741 redirect.h \
1742 tests/stub_redirect.cc \
1743 refresh.h \
1744 refresh.cc \
1745 RemovalPolicy.cc \
1746 StrList.h \
1747 StrList.cc \
1748 tests/stub_SBufDetailedStats.cc \
1749 $(SNMP_SOURCE) \
1750 SquidMath.cc \
1751 SquidMath.h \
1752 IoStats.h \
1753 stat.h \
1754 stat.cc \
1755 StatCounters.h \
1756 StatCounters.cc \
1757 StatHist.h \
1758 StatHist.cc \
1759 stmem.cc \
1760 repl_modules.h \
1761 store.cc \
1762 store_client.cc \
1763 store_digest.h \
1764 tests/stub_store_digest.cc \
1765 store_io.cc \
1766 store_key_md5.h \
1767 store_key_md5.cc \
1768 store_log.h \
1769 store_log.cc \
1770 store_rebuild.h \
1771 store_rebuild.cc \
1772 store_swapin.h \
1773 store_swapin.cc \
1774 store_swapmeta.cc \
1775 store_swapout.cc \
1776 StoreFileSystem.cc \
1777 StoreIOState.cc \
1778 tests/stub_StoreMeta.cc \
1779 StoreMetaUnpacker.cc \
1780 StoreSwapLogData.cc \
1781 String.cc \
1782 tests/stub_SwapDir.cc \
1783 tests/CapturingStoreEntry.h \
1784 tests/testEvent.cc \
1785 tests/testEvent.h \
1786 tests/stub_main_cc.cc \
1787 tests/stub_ipc_Forwarder.cc \
1788 tests/stub_libauth_acls.cc \
1789 tests/stub_libauth.cc \
1790 tests/stub_libdiskio.cc \
1791 tests/stub_libeui.cc \
1792 tests/stub_store_stats.cc \
1793 time.cc \
1794 tools.h \
1795 tools.cc \
1796 Transients.cc \
1797 tests/stub_tunnel.cc \
1798 MemStore.cc \
1799 $(UNLINKDSOURCE) \
1800 url.cc \
1801 urn.h \
1802 urn.cc \
1803 wccp2.h \
1804 tests/stub_wccp2.cc \
1805 whois.h \
1806 tests/stub_whois.cc \
1807 $(WIN32_SOURCE) \
1808 wordlist.h \
1809 wordlist.cc
1810 nodist_tests_testEvent_SOURCES = \
1811 $(BUILT_SOURCES)
1812 tests_testEvent_LDADD = \
1813 libsquid.la \
1814 clients/libclients.la \
1815 servers/libservers.la \
1816 ftp/libftp.la \
1817 helper/libhelper.la \
1818 http/libhttp.la \
1819 parser/libparser.la \
1820 ident/libident.la \
1821 acl/libacls.la \
1822 acl/libstate.la \
1823 acl/libapi.la \
1824 dns/libdns.la \
1825 base/libbase.la \
1826 ip/libip.la \
1827 fs/libfs.la \
1828 anyp/libanyp.la \
1829 icmp/libicmp.la \
1830 comm/libcomm.la \
1831 log/liblog.la \
1832 format/libformat.la \
1833 $(REPL_OBJS) \
1834 $(ADAPTATION_LIBS) \
1835 $(ESI_LIBS) \
1836 $(SSL_LIBS) \
1837 $(top_builddir)/lib/libmisccontainers.la \
1838 $(top_builddir)/lib/libmiscencoding.la \
1839 $(top_builddir)/lib/libmiscutil.la \
1840 ipc/libipc.la \
1841 mgr/libmgr.la \
1842 store/libstore.la \
1843 sbuf/libsbuf.la \
1844 $(SNMP_LIBS) \
1845 $(NETTLELIB) \
1846 $(SSLLIB) \
1847 $(KRB5LIBS) \
1848 $(LIBCPPUNIT_LIBS) \
1849 $(COMPAT_LIB) \
1850 $(XTRA_LIBS)
1851 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1852
1853 ## Tests of the EventLoop module.
1854 tests_testEventLoop_SOURCES = \
1855 AccessLogEntry.cc \
1856 BodyPipe.cc \
1857 CacheDigest.h \
1858 tests/stub_CacheDigest.cc \
1859 cache_manager.cc \
1860 cache_cf.h \
1861 AuthReg.h \
1862 RefreshPattern.h \
1863 cache_cf.cc \
1864 CachePeer.cc \
1865 CachePeer.h \
1866 carp.h \
1867 tests/stub_carp.cc \
1868 cbdata.cc \
1869 client_db.h \
1870 client_db.cc \
1871 client_side.h \
1872 client_side.cc \
1873 client_side_reply.cc \
1874 client_side_request.cc \
1875 ClientInfo.h \
1876 clientStream.cc \
1877 tests/stub_CollapsedForwarding.cc \
1878 ConfigOption.cc \
1879 ConfigParser.cc \
1880 CpuAffinityMap.cc \
1881 CpuAffinityMap.h \
1882 CpuAffinitySet.cc \
1883 CpuAffinitySet.h \
1884 debug.cc \
1885 $(DELAY_POOL_SOURCE) \
1886 fs_io.h \
1887 fs_io.cc \
1888 dlink.h \
1889 dlink.cc \
1890 $(DNSSOURCE) \
1891 errorpage.cc \
1892 tests/stub_ETag.cc \
1893 EventLoop.h \
1894 EventLoop.cc \
1895 event.cc \
1896 external_acl.cc \
1897 ExternalACLEntry.cc \
1898 FadingCounter.cc \
1899 fatal.h \
1900 tests/stub_fatal.cc \
1901 fd.h \
1902 fd.cc \
1903 fde.cc \
1904 FileMap.h \
1905 filemap.cc \
1906 fqdncache.h \
1907 fqdncache.cc \
1908 FwdState.cc \
1909 FwdState.h \
1910 gopher.h \
1911 gopher.cc \
1912 helper.cc \
1913 hier_code.h \
1914 $(HTCPSOURCE) \
1915 http.cc \
1916 HttpBody.h \
1917 HttpBody.cc \
1918 tests/stub_HttpControlMsg.cc \
1919 HttpHeader.h \
1920 HttpHeader.cc \
1921 HttpHeaderFieldInfo.h \
1922 HttpHeaderTools.h \
1923 HttpHeaderTools.cc \
1924 HttpHeaderFieldStat.h \
1925 HttpHdrCc.h \
1926 HttpHdrCc.cc \
1927 HttpHdrCc.cci \
1928 HttpHdrContRange.cc \
1929 HttpHdrRange.cc \
1930 HttpHdrSc.cc \
1931 HttpHdrScTarget.cc \
1932 HttpMsg.cc \
1933 HttpReply.cc \
1934 PeerPoolMgr.h \
1935 PeerPoolMgr.cc \
1936 RequestFlags.h \
1937 RequestFlags.cc \
1938 HttpRequest.cc \
1939 icp_v2.cc \
1940 icp_v3.cc \
1941 $(IPC_SOURCE) \
1942 ipcache.cc \
1943 int.h \
1944 int.cc \
1945 internal.h \
1946 internal.cc \
1947 LogTags.cc \
1948 MasterXaction.cc \
1949 MasterXaction.h \
1950 MemBuf.cc \
1951 MemObject.cc \
1952 tests/stub_libmem.cc \
1953 mem_node.cc \
1954 mime.h \
1955 mime.cc \
1956 mime_header.h \
1957 mime_header.cc \
1958 multicast.h \
1959 multicast.cc \
1960 neighbors.h \
1961 neighbors.cc \
1962 Notes.cc \
1963 Notes.h \
1964 Parsing.cc \
1965 pconn.cc \
1966 peer_digest.cc \
1967 peer_proxy_negotiate_auth.h \
1968 peer_proxy_negotiate_auth.cc \
1969 peer_select.cc \
1970 peer_sourcehash.h \
1971 peer_sourcehash.cc \
1972 peer_userhash.h \
1973 peer_userhash.cc \
1974 Pipeline.cc \
1975 Pipeline.h \
1976 RemovalPolicy.cc \
1977 redirect.h \
1978 tests/stub_redirect.cc \
1979 refresh.h \
1980 refresh.cc \
1981 tests/stub_SBufDetailedStats.cc \
1982 $(SNMP_SOURCE) \
1983 SquidMath.h \
1984 SquidMath.cc \
1985 IoStats.h \
1986 stat.h \
1987 stat.cc \
1988 StatCounters.h \
1989 StatCounters.cc \
1990 StatHist.h \
1991 StatHist.cc \
1992 stmem.cc \
1993 repl_modules.h \
1994 store.cc \
1995 store_client.cc \
1996 store_digest.h \
1997 tests/stub_store_digest.cc \
1998 store_io.cc \
1999 store_key_md5.h \
2000 store_key_md5.cc \
2001 store_log.h \
2002 store_log.cc \
2003 store_rebuild.h \
2004 store_rebuild.cc \
2005 store_swapin.h \
2006 store_swapin.cc \
2007 store_swapmeta.cc \
2008 store_swapout.cc \
2009 StoreFileSystem.cc \
2010 StoreIOState.cc \
2011 tests/stub_StoreMeta.cc \
2012 StoreMetaUnpacker.cc \
2013 StoreSwapLogData.cc \
2014 String.cc \
2015 StrList.h \
2016 StrList.cc \
2017 tests/stub_SwapDir.cc \
2018 tests/testEventLoop.cc \
2019 tests/testEventLoop.h \
2020 tests/stub_main_cc.cc \
2021 tests/stub_ipc_Forwarder.cc \
2022 tests/stub_libauth_acls.cc \
2023 tests/stub_libauth.cc \
2024 tests/stub_libdiskio.cc \
2025 tests/stub_libeui.cc \
2026 tests/stub_libsecurity.cc \
2027 tests/stub_store_stats.cc \
2028 time.cc \
2029 tools.h \
2030 tools.cc \
2031 Transients.cc \
2032 tests/stub_tunnel.cc \
2033 MemStore.cc \
2034 $(UNLINKDSOURCE) \
2035 url.cc \
2036 urn.h \
2037 urn.cc \
2038 wccp2.h \
2039 tests/stub_wccp2.cc \
2040 whois.h \
2041 tests/stub_whois.cc \
2042 $(WIN32_SOURCE) \
2043 wordlist.h \
2044 wordlist.cc
2045 nodist_tests_testEventLoop_SOURCES = \
2046 $(BUILT_SOURCES)
2047 tests_testEventLoop_LDADD = \
2048 libsquid.la \
2049 clients/libclients.la \
2050 servers/libservers.la \
2051 ftp/libftp.la \
2052 helper/libhelper.la \
2053 http/libhttp.la \
2054 parser/libparser.la \
2055 ident/libident.la \
2056 acl/libacls.la \
2057 acl/libstate.la \
2058 acl/libapi.la \
2059 dns/libdns.la \
2060 base/libbase.la \
2061 ip/libip.la \
2062 fs/libfs.la \
2063 anyp/libanyp.la \
2064 icmp/libicmp.la \
2065 comm/libcomm.la \
2066 log/liblog.la \
2067 format/libformat.la \
2068 $(REPL_OBJS) \
2069 $(ADAPTATION_LIBS) \
2070 $(ESI_LIBS) \
2071 $(SSL_LIBS) \
2072 $(top_builddir)/lib/libmisccontainers.la \
2073 $(top_builddir)/lib/libmiscencoding.la \
2074 $(top_builddir)/lib/libmiscutil.la \
2075 ipc/libipc.la \
2076 mgr/libmgr.la \
2077 sbuf/libsbuf.la \
2078 store/libstore.la \
2079 $(SNMP_LIBS) \
2080 $(NETTLELIB) \
2081 $(SSLLIB) \
2082 $(KRB5LIBS) \
2083 $(LIBCPPUNIT_LIBS) \
2084 $(COMPAT_LIB) \
2085 $(XTRA_LIBS)
2086 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2087
2088 tests_test_http_range_SOURCES = \
2089 AccessLogEntry.cc \
2090 BodyPipe.cc \
2091 cache_cf.h \
2092 AuthReg.h \
2093 RefreshPattern.h \
2094 cache_cf.cc \
2095 CachePeer.cc \
2096 CachePeer.h \
2097 cache_manager.cc \
2098 CacheDigest.h \
2099 tests/stub_CacheDigest.cc \
2100 carp.h \
2101 tests/stub_carp.cc \
2102 cbdata.cc \
2103 client_db.h \
2104 client_db.cc \
2105 client_side.h \
2106 client_side.cc \
2107 client_side_reply.cc \
2108 client_side_request.cc \
2109 ClientInfo.h \
2110 clientStream.cc \
2111 tests/stub_CollapsedForwarding.cc \
2112 ConfigOption.cc \
2113 ConfigParser.cc \
2114 CpuAffinityMap.cc \
2115 CpuAffinityMap.h \
2116 CpuAffinitySet.cc \
2117 CpuAffinitySet.h \
2118 debug.cc \
2119 $(DELAY_POOL_SOURCE) \
2120 fs_io.h \
2121 fs_io.cc \
2122 dlink.h \
2123 dlink.cc \
2124 $(DNSSOURCE) \
2125 errorpage.cc \
2126 tests/stub_ETag.cc \
2127 event.cc \
2128 FadingCounter.cc \
2129 fatal.h \
2130 tests/stub_libauth.cc \
2131 tests/stub_fatal.cc \
2132 fd.h \
2133 fd.cc \
2134 fde.cc \
2135 FileMap.h \
2136 filemap.cc \
2137 fqdncache.h \
2138 fqdncache.cc \
2139 FwdState.cc \
2140 FwdState.h \
2141 gopher.h \
2142 gopher.cc \
2143 helper.cc \
2144 hier_code.h \
2145 $(HTCPSOURCE) \
2146 http.cc \
2147 HttpBody.h \
2148 HttpBody.cc \
2149 tests/stub_HttpControlMsg.cc \
2150 HttpHeaderFieldStat.h \
2151 HttpHdrCc.h \
2152 HttpHdrCc.cc \
2153 HttpHdrCc.cci \
2154 HttpHdrContRange.cc \
2155 HttpHdrRange.cc \
2156 HttpHdrSc.cc \
2157 HttpHdrScTarget.cc \
2158 HttpHeader.h \
2159 HttpHeader.cc \
2160 HttpHeaderFieldInfo.h \
2161 HttpHeaderTools.h \
2162 HttpHeaderTools.cc \
2163 HttpMsg.cc \
2164 HttpReply.cc \
2165 PeerPoolMgr.h \
2166 PeerPoolMgr.cc \
2167 RequestFlags.h \
2168 RequestFlags.cc \
2169 HttpRequest.cc \
2170 icp_v2.cc \
2171 icp_v3.cc \
2172 int.h \
2173 int.cc \
2174 internal.h \
2175 internal.cc \
2176 $(IPC_SOURCE) \
2177 ipcache.cc \
2178 LogTags.cc \
2179 MasterXaction.cc \
2180 MasterXaction.h \
2181 MemBuf.cc \
2182 MemObject.cc \
2183 tests/stub_libmem.cc \
2184 mem_node.cc \
2185 mime.h \
2186 mime.cc \
2187 mime_header.h \
2188 mime_header.cc \
2189 multicast.h \
2190 multicast.cc \
2191 neighbors.h \
2192 neighbors.cc \
2193 Notes.cc \
2194 Notes.h \
2195 Parsing.cc \
2196 peer_digest.cc \
2197 peer_proxy_negotiate_auth.h \
2198 peer_proxy_negotiate_auth.cc \
2199 peer_select.cc \
2200 peer_sourcehash.h \
2201 peer_sourcehash.cc \
2202 peer_userhash.h \
2203 peer_userhash.cc \
2204 Pipeline.cc \
2205 Pipeline.h \
2206 pconn.cc \
2207 redirect.h \
2208 tests/stub_redirect.cc \
2209 refresh.h \
2210 refresh.cc \
2211 RemovalPolicy.cc \
2212 tests/stub_SBufDetailedStats.cc \
2213 $(SNMP_SOURCE) \
2214 SquidMath.h \
2215 SquidMath.cc \
2216 IoStats.h \
2217 stat.h \
2218 stat.cc \
2219 StatCounters.h \
2220 StatCounters.cc \
2221 StatHist.h \
2222 StatHist.cc \
2223 stmem.cc \
2224 repl_modules.h \
2225 store.cc \
2226 store_client.cc \
2227 store_digest.h \
2228 tests/stub_store_digest.cc \
2229 store_key_md5.h \
2230 store_key_md5.cc \
2231 store_io.cc \
2232 store_log.h \
2233 store_log.cc \
2234 store_rebuild.h \
2235 store_rebuild.cc \
2236 store_swapin.h \
2237 store_swapin.cc \
2238 store_swapmeta.cc \
2239 store_swapout.cc \
2240 StoreFileSystem.cc \
2241 StoreIOState.cc \
2242 tests/stub_StoreMeta.cc \
2243 StoreMetaUnpacker.cc \
2244 StoreSwapLogData.cc \
2245 String.cc \
2246 StrList.h \
2247 StrList.cc \
2248 tests/stub_SwapDir.cc \
2249 Transients.cc \
2250 tests/test_http_range.cc \
2251 tests/stub_external_acl.cc \
2252 tests/stub_ipc_Forwarder.cc \
2253 tests/stub_libdiskio.cc \
2254 tests/stub_libeui.cc \
2255 tests/stub_libsecurity.cc \
2256 tests/stub_main_cc.cc \
2257 tests/stub_MemStore.cc \
2258 tests/stub_store_stats.cc \
2259 tests/stub_EventLoop.cc \
2260 time.cc \
2261 tools.h \
2262 tools.cc \
2263 tests/stub_tunnel.cc \
2264 $(UNLINKDSOURCE) \
2265 url.cc \
2266 urn.h \
2267 urn.cc \
2268 wccp2.h \
2269 tests/stub_wccp2.cc \
2270 whois.h \
2271 tests/stub_whois.cc \
2272 $(WIN32_SOURCE) \
2273 wordlist.h \
2274 wordlist.cc
2275 nodist_tests_test_http_range_SOURCES = \
2276 $(BUILT_SOURCES)
2277 tests_test_http_range_LDADD = \
2278 libsquid.la \
2279 clients/libclients.la \
2280 servers/libservers.la \
2281 ftp/libftp.la \
2282 helper/libhelper.la \
2283 http/libhttp.la \
2284 parser/libparser.la \
2285 ident/libident.la \
2286 acl/libacls.la \
2287 acl/libstate.la \
2288 acl/libapi.la \
2289 parser/libparser.la \
2290 ip/libip.la \
2291 fs/libfs.la \
2292 anyp/libanyp.la \
2293 icmp/libicmp.la \
2294 comm/libcomm.la \
2295 log/liblog.la \
2296 format/libformat.la \
2297 $(REPL_OBJS) \
2298 $(ADAPTATION_LIBS) \
2299 $(ESI_LIBS) \
2300 $(SSL_LIBS) \
2301 ipc/libipc.la \
2302 dns/libdns.la \
2303 base/libbase.la \
2304 mgr/libmgr.la \
2305 sbuf/libsbuf.la \
2306 store/libstore.la \
2307 $(SNMP_LIBS) \
2308 $(top_builddir)/lib/libmisccontainers.la \
2309 $(top_builddir)/lib/libmiscencoding.la \
2310 $(top_builddir)/lib/libmiscutil.la \
2311 $(NETTLELIB) \
2312 $(SSLLIB) \
2313 $(KRB5LIBS) \
2314 $(LIBCPPUNIT_LIBS) \
2315 $(COMPAT_LIB) \
2316 $(XTRA_LIBS)
2317 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2318
2319 ## Tests of parser/* objects
2320 tests_testTokenizer_SOURCES = \
2321 tests/testTokenizer.h \
2322 tests/testTokenizer.cc
2323 nodist_tests_testTokenizer_SOURCES = \
2324 parser/Tokenizer.h \
2325 SquidString.h \
2326 String.cc \
2327 $(TESTSOURCES) \
2328 tests/stub_debug.cc \
2329 tests/stub_libmem.cc \
2330 tests/stub_time.cc \
2331 tests/stub_SBufDetailedStats.cc
2332 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2333 tests_testTokenizer_LDADD = \
2334 parser/libparser.la \
2335 base/libbase.la \
2336 sbuf/libsbuf.la \
2337 $(top_builddir)/lib/libmiscutil.la \
2338 $(LIBCPPUNIT_LIBS) \
2339 $(COMPAT_LIB) \
2340 $(XTRA_LIBS)
2341
2342 tests_testHttp1Parser_SOURCES = \
2343 Debug.h \
2344 MemBuf.cc \
2345 MemBuf.h \
2346 tests/stub_MemObject.cc \
2347 mime_header.cc \
2348 mime_header.h \
2349 String.cc \
2350 cache_cf.h \
2351 tests/stub_SBufDetailedStats.cc \
2352 tests/stub_cache_cf.cc \
2353 tests/stub_cache_manager.cc \
2354 tests/stub_comm.cc \
2355 tests/stub_cbdata.cc \
2356 tests/stub_debug.cc \
2357 tests/stub_event.cc \
2358 tests/stub_HelperChildConfig.cc \
2359 tests/stub_libmem.cc \
2360 tests/stub_libsecurity.cc \
2361 tests/stub_stmem.cc \
2362 tests/stub_store.cc \
2363 tests/stub_store_stats.cc \
2364 tools.h \
2365 tests/stub_tools.cc \
2366 tests/testHttp1Parser.cc \
2367 tests/testHttp1Parser.h \
2368 tests/stub_time.cc \
2369 wordlist.h \
2370 wordlist.cc
2371 nodist_tests_testHttp1Parser_SOURCES = \
2372 $(TESTSOURCES)
2373 tests_testHttp1Parser_LDADD= \
2374 http/libhttp.la \
2375 parser/libparser.la \
2376 anyp/libanyp.la \
2377 SquidConfig.o \
2378 base/libbase.la \
2379 ip/libip.la \
2380 sbuf/libsbuf.la \
2381 $(top_builddir)/lib/libmiscutil.la \
2382 $(SSLLIB) \
2383 $(LIBCPPUNIT_LIBS) \
2384 $(COMPAT_LIB) \
2385 $(XTRA_LIBS)
2386 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2387
2388 ## Tests of the HttpRequest module.
2389 tests_testHttpRequest_SOURCES = \
2390 AccessLogEntry.cc \
2391 RequestFlags.h \
2392 RequestFlags.cc \
2393 HttpRequest.cc \
2394 tests/stub_libmem.cc \
2395 String.cc \
2396 tests/testHttpRequest.h \
2397 tests/testHttpRequest.cc \
2398 tests/testHttpRequestMethod.h \
2399 tests/testHttpRequestMethod.cc \
2400 tests/stub_libauth.cc \
2401 tests/stub_main_cc.cc \
2402 tests/stub_ipc_Forwarder.cc \
2403 tests/stub_libdiskio.cc \
2404 tests/stub_libeui.cc \
2405 tests/stub_store_stats.cc \
2406 tests/stub_EventLoop.cc \
2407 time.cc \
2408 BodyPipe.cc \
2409 cache_manager.cc \
2410 cache_cf.h \
2411 AuthReg.h \
2412 RefreshPattern.h \
2413 cache_cf.cc \
2414 debug.cc \
2415 CacheDigest.h \
2416 tests/stub_CacheDigest.cc \
2417 CachePeer.cc \
2418 CachePeer.h \
2419 carp.h \
2420 tests/stub_carp.cc \
2421 cbdata.cc \
2422 client_db.h \
2423 client_db.cc \
2424 client_side.h \
2425 client_side.cc \
2426 client_side_reply.cc \
2427 client_side_request.cc \
2428 ClientInfo.h \
2429 clientStream.cc \
2430 tests/stub_CollapsedForwarding.cc \
2431 ConfigOption.cc \
2432 ConfigParser.cc \
2433 CpuAffinityMap.cc \
2434 CpuAffinityMap.h \
2435 CpuAffinitySet.cc \
2436 CpuAffinitySet.h \
2437 $(DELAY_POOL_SOURCE) \
2438 fs_io.h \
2439 fs_io.cc \
2440 dlink.h \
2441 dlink.cc \
2442 $(DNSSOURCE) \
2443 errorpage.cc \
2444 tests/stub_ETag.cc \
2445 external_acl.cc \
2446 ExternalACLEntry.cc \
2447 fatal.h \
2448 tests/stub_fatal.cc \
2449 fd.h \
2450 fd.cc \
2451 fde.cc \
2452 fqdncache.h \
2453 fqdncache.cc \
2454 FwdState.cc \
2455 FwdState.h \
2456 gopher.h \
2457 gopher.cc \
2458 helper.cc \
2459 hier_code.h \
2460 $(HTCPSOURCE) \
2461 http.cc \
2462 HttpBody.h \
2463 HttpBody.cc \
2464 tests/stub_HttpControlMsg.cc \
2465 HttpHeader.h \
2466 HttpHeader.cc \
2467 HttpHeaderFieldInfo.h \
2468 HttpHeaderTools.h \
2469 HttpHeaderTools.cc \
2470 HttpHeaderFieldStat.h \
2471 HttpHdrCc.h \
2472 HttpHdrCc.cc \
2473 HttpHdrCc.cci \
2474 HttpHdrContRange.cc \
2475 HttpHdrRange.cc \
2476 HttpHdrSc.cc \
2477 HttpHdrScTarget.cc \
2478 HttpMsg.cc \
2479 HttpReply.cc \
2480 icp_v2.cc \
2481 icp_v3.cc \
2482 $(IPC_SOURCE) \
2483 ipcache.cc \
2484 int.h \
2485 int.cc \
2486 internal.h \
2487 internal.cc \
2488 LogTags.cc \
2489 tests/stub_libsecurity.cc \
2490 MasterXaction.cc \
2491 MasterXaction.h \
2492 multicast.h \
2493 multicast.cc \
2494 mem_node.cc \
2495 MemBuf.cc \
2496 MemObject.cc \
2497 mime.h \
2498 mime.cc \
2499 mime_header.h \
2500 mime_header.cc \
2501 neighbors.h \
2502 neighbors.cc \
2503 Notes.cc \
2504 Notes.h \
2505 Parsing.cc \
2506 pconn.cc \
2507 peer_digest.cc \
2508 peer_proxy_negotiate_auth.h \
2509 peer_proxy_negotiate_auth.cc \
2510 peer_select.cc \
2511 peer_sourcehash.h \
2512 peer_sourcehash.cc \
2513 peer_userhash.h \
2514 peer_userhash.cc \
2515 PeerPoolMgr.h \
2516 PeerPoolMgr.cc \
2517 Pipeline.cc \
2518 Pipeline.h \
2519 redirect.h \
2520 tests/stub_libauth_acls.cc \
2521 tests/stub_redirect.cc \
2522 refresh.h \
2523 refresh.cc \
2524 RemovalPolicy.cc \
2525 tests/stub_SBufDetailedStats.cc \
2526 $(SNMP_SOURCE) \
2527 SquidMath.h \
2528 SquidMath.cc \
2529 IoStats.h \
2530 stat.h \
2531 stat.cc \
2532 StatCounters.h \
2533 StatCounters.cc \
2534 StatHist.h \
2535 StatHist.cc \
2536 stmem.cc \
2537 repl_modules.h \
2538 store.cc \
2539 store_client.cc \
2540 store_digest.h \
2541 tests/stub_store_digest.cc \
2542 store_io.cc \
2543 store_key_md5.h \
2544 store_key_md5.cc \
2545 store_log.h \
2546 store_log.cc \
2547 store_rebuild.h \
2548 store_rebuild.cc \
2549 store_swapin.h \
2550 store_swapin.cc \
2551 store_swapmeta.cc \
2552 store_swapout.cc \
2553 StoreFileSystem.cc \
2554 StoreIOState.cc \
2555 tests/stub_StoreMeta.cc \
2556 StoreMetaUnpacker.cc \
2557 StoreSwapLogData.cc \
2558 StrList.h \
2559 StrList.cc \
2560 event.cc \
2561 tools.h \
2562 tools.cc \
2563 Transients.cc \
2564 tests/stub_tunnel.cc \
2565 tests/stub_SwapDir.cc \
2566 MemStore.cc \
2567 url.cc \
2568 urn.h \
2569 urn.cc \
2570 wccp2.h \
2571 tests/stub_wccp2.cc \
2572 whois.h \
2573 tests/stub_whois.cc \
2574 FadingCounter.cc \
2575 $(WIN32_SOURCE) \
2576 wordlist.h \
2577 wordlist.cc
2578 nodist_tests_testHttpRequest_SOURCES = \
2579 $(BUILT_SOURCES)
2580 tests_testHttpRequest_LDADD = \
2581 libsquid.la \
2582 clients/libclients.la \
2583 servers/libservers.la \
2584 helper/libhelper.la \
2585 ftp/libftp.la \
2586 http/libhttp.la \
2587 ident/libident.la \
2588 acl/libacls.la \
2589 acl/libstate.la \
2590 acl/libapi.la \
2591 parser/libparser.la \
2592 ip/libip.la \
2593 fs/libfs.la \
2594 $(SSL_LIBS) \
2595 ipc/libipc.la \
2596 parser/libparser.la \
2597 dns/libdns.la \
2598 base/libbase.la \
2599 mgr/libmgr.la \
2600 anyp/libanyp.la \
2601 $(SNMP_LIBS) \
2602 icmp/libicmp.la \
2603 comm/libcomm.la \
2604 log/liblog.la \
2605 format/libformat.la \
2606 store/libstore.la \
2607 sbuf/libsbuf.la \
2608 $(REPL_OBJS) \
2609 $(ADAPTATION_LIBS) \
2610 $(ESI_LIBS) \
2611 $(top_builddir)/lib/libmisccontainers.la \
2612 $(top_builddir)/lib/libmiscencoding.la \
2613 $(top_builddir)/lib/libmiscutil.la \
2614 $(NETTLELIB) \
2615 $(SSLLIB) \
2616 $(KRB5LIBS) \
2617 $(LIBCPPUNIT_LIBS) \
2618 $(COMPAT_LIB) \
2619 $(XTRA_LIBS)
2620 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2621
2622 ## Tests for icmp/* objects
2623 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2624 tests_testIcmp_SOURCES = \
2625 tests/testIcmp.h \
2626 tests/testIcmp.cc
2627 nodist_tests_testIcmp_SOURCES = \
2628 icmp/Icmp.h \
2629 SquidTime.h \
2630 tests/stub_debug.cc \
2631 tests/stub_libmem.cc \
2632 time.cc \
2633 globals.cc
2634 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2635 tests_testIcmp_LDADD=\
2636 icmp/libicmpcore.la \
2637 ip/libip.la \
2638 base/libbase.la \
2639 $(LIBCPPUNIT_LIBS) \
2640 $(COMPAT_LIB) \
2641 $(XTRA_LIBS)
2642
2643 tests_testNetDb_SOURCES = \
2644 tests/testNetDb.cc \
2645 tests/testNetDb.h
2646 nodist_tests_testNetDb_SOURCES = \
2647 SquidTime.h \
2648 tests/stub_debug.cc \
2649 tests/stub_libmem.cc \
2650 time.cc \
2651 globals.cc
2652 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2653 tests_testNetDb_LDADD = \
2654 icmp/libicmp.la \
2655 ip/libip.la \
2656 base/libbase.la \
2657 $(top_builddir)/lib/libmisccontainers.la \
2658 $(LIBCPPUNIT_LIBS) \
2659 $(COMPAT_LIB) \
2660 $(XTRA_LIBS)
2661
2662 ## Tests for ip/* objects
2663 tests_testIpAddress_SOURCES= \
2664 tests/testAddress.cc \
2665 tests/testAddress.h
2666 nodist_tests_testIpAddress_SOURCES= \
2667 ip/Address.h \
2668 tests/stub_debug.cc \
2669 tests/stub_libmem.cc \
2670 tests/stub_tools.cc
2671 tests_testIpAddress_LDADD= \
2672 ip/libip.la \
2673 base/libbase.la \
2674 $(LIBCPPUNIT_LIBS) \
2675 $(COMPAT_LIB) \
2676 $(XTRA_LIBS)
2677 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2678
2679 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2680 ## first line - what we are testing.
2681 tests_testStore_SOURCES= \
2682 CacheDigest.h \
2683 tests/stub_CacheDigest.cc \
2684 cbdata.cc \
2685 ClientInfo.h \
2686 tests/stub_CollapsedForwarding.cc \
2687 ConfigOption.cc \
2688 ConfigParser.cc \
2689 $(DELAY_POOL_SOURCE) \
2690 fs_io.h \
2691 fs_io.cc \
2692 ETag.cc \
2693 event.cc \
2694 EventLoop.cc \
2695 fatal.h \
2696 tests/stub_fatal.cc \
2697 FileMap.h \
2698 filemap.cc \
2699 HttpHeaderFieldStat.h \
2700 HttpHdrCc.h \
2701 HttpHdrCc.cc \
2702 HttpHdrCc.cci \
2703 HttpHdrContRange.cc \
2704 HttpHdrRange.cc \
2705 HttpHdrSc.cc \
2706 HttpHdrScTarget.cc \
2707 HttpHeaderFieldInfo.h \
2708 HttpHeaderTools.h \
2709 HttpHeaderTools.cc \
2710 HttpHeader.h \
2711 HttpHeader.cc \
2712 HttpMsg.cc \
2713 RequestFlags.cc \
2714 RequestFlags.h \
2715 int.h \
2716 int.cc \
2717 MasterXaction.cc \
2718 MasterXaction.h \
2719 mem_node.cc \
2720 MemBuf.cc \
2721 MemObject.cc \
2722 Notes.h \
2723 Notes.cc \
2724 Parsing.cc \
2725 RemovalPolicy.cc \
2726 refresh.h \
2727 refresh.cc \
2728 StatCounters.h \
2729 StatCounters.cc \
2730 StatHist.h \
2731 StatHist.cc \
2732 stmem.cc \
2733 repl_modules.h \
2734 store.cc \
2735 store_io.cc \
2736 store_swapout.cc \
2737 StoreIOState.cc \
2738 tests/stub_StoreMeta.cc \
2739 StoreMetaUnpacker.cc \
2740 StoreSwapLogData.cc \
2741 store_key_md5.h \
2742 store_key_md5.cc \
2743 tests/stub_SBufDetailedStats.cc \
2744 String.cc \
2745 StrList.h \
2746 StrList.cc \
2747 tests/CapturingStoreEntry.h \
2748 log/access_log.h \
2749 tests/stub_access_log.cc \
2750 tests/stub_acl.cc \
2751 cache_cf.h \
2752 tests/stub_cache_cf.cc \
2753 tests/stub_cache_manager.cc \
2754 tests/stub_client_side_request.cc \
2755 tests/stub_comm.cc \
2756 tests/stub_debug.cc \
2757 tests/stub_errorpage.cc \
2758 fd.h \
2759 fde.h \
2760 tests/stub_fd.cc \
2761 tests/stub_helper.cc \
2762 tests/stub_HelperChildConfig.cc \
2763 tests/stub_http.cc \
2764 tests/stub_libauth.cc \
2765 tests/stub_libeui.cc \
2766 tests/stub_libdiskio.cc \
2767 tests/stub_libformat.cc \
2768 tests/stub_libsecurity.cc \
2769 tests/stub_libsslsquid.cc \
2770 HttpBody.h \
2771 HttpBody.cc \
2772 tests/stub_HttpReply.cc \
2773 tests/stub_HttpRequest.cc \
2774 tests/stub_libcomm.cc \
2775 tests/stub_MemStore.cc \
2776 mime.h \
2777 tests/stub_mime.cc \
2778 tests/stub_Port.cc \
2779 tests/stub_stat.cc \
2780 tests/stub_store_client.cc \
2781 tests/stub_store_stats.cc \
2782 store_rebuild.h \
2783 tests/stub_store_rebuild.cc \
2784 tests/stub_store_swapout.cc \
2785 tools.h \
2786 Transients.cc \
2787 tests/stub_tools.cc \
2788 tests/stub_UdsOp.cc \
2789 tests/testPackableStream.cc \
2790 tests/testPackableStream.h \
2791 tests/testStore.cc \
2792 tests/testStore.h \
2793 tests/testStoreController.cc \
2794 tests/testStoreController.h \
2795 tests/testStoreHashIndex.cc \
2796 tests/testStoreHashIndex.h \
2797 tests/testStoreSupport.cc \
2798 tests/testStoreSupport.h \
2799 tests/TestSwapDir.cc \
2800 tests/TestSwapDir.h \
2801 tests/stub_time.cc \
2802 url.cc \
2803 wordlist.h \
2804 wordlist.cc
2805
2806 nodist_tests_testStore_SOURCES= \
2807 $(TESTSOURCES) \
2808 SquidMath.cc \
2809 SquidMath.h \
2810 swap_log_op.cc
2811
2812 tests_testStore_LDADD= \
2813 libsquid.la \
2814 http/libhttp.la \
2815 parser/libparser.la \
2816 ident/libident.la \
2817 acl/libacls.la \
2818 acl/libstate.la \
2819 acl/libapi.la \
2820 dns/libdns.la \
2821 base/libbase.la \
2822 ip/libip.la \
2823 fs/libfs.la \
2824 mgr/libmgr.la \
2825 ipc/libipc.la \
2826 anyp/libanyp.la \
2827 mem/libmem.la \
2828 store/libstore.la \
2829 sbuf/libsbuf.la \
2830 DiskIO/libdiskio.la \
2831 $(top_builddir)/lib/libmisccontainers.la \
2832 $(top_builddir)/lib/libmiscencoding.la \
2833 $(top_builddir)/lib/libmiscutil.la \
2834 $(NETTLELIB) \
2835 $(SSLLIB) \
2836 CommCalls.o \
2837 $(LIBCPPUNIT_LIBS) \
2838 $(COMPAT_LIB) \
2839 $(XTRA_LIBS)
2840 tests_testStore_LDFLAGS = $(LIBADD_DL)
2841
2842 ## string needs mem.cc.
2843 ## mem.cc needs ClientInfo.h
2844 ## libsquid pulls in SquidConfig and children. stub them.
2845 tests_testString_SOURCES = \
2846 ClientInfo.h \
2847 MemBuf.cc \
2848 String.cc \
2849 tests/stub_SBufDetailedStats.cc \
2850 tests/testString.cc \
2851 tests/testString.h \
2852 cache_cf.h \
2853 tests/stub_cache_cf.cc \
2854 tests/stub_cache_manager.cc \
2855 tests/stub_cbdata.cc \
2856 tests/stub_debug.cc \
2857 tests/stub_HelperChildConfig.cc \
2858 tests/stub_libmem.cc \
2859 tools.h \
2860 tests/stub_tools.cc \
2861 tests/stub_time.cc \
2862 wordlist.h \
2863 wordlist.cc
2864 nodist_tests_testString_SOURCES = \
2865 $(TESTSOURCES)
2866 tests_testString_LDADD = \
2867 base/libbase.la \
2868 libsquid.la \
2869 ip/libip.la \
2870 sbuf/libsbuf.la \
2871 $(top_builddir)/lib/libmiscutil.la \
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 HttpHdrCc.cci \
2996 HttpHdrSc.cc \
2997 HttpHdrScTarget.cc \
2998 url.cc \
2999 StatCounters.h \
3000 StatCounters.cc \
3001 StatHist.h \
3002 StatHist.cc \
3003 StrList.h \
3004 StrList.cc \
3005 HttpHdrRange.cc \
3006 ETag.cc \
3007 tests/stub_errorpage.cc \
3008 tests/stub_HttpRequest.cc \
3009 log/access_log.h \
3010 tests/stub_access_log.cc \
3011 refresh.h \
3012 refresh.cc \
3013 tests/stub_store_client.cc \
3014 tools.h \
3015 tests/stub_tools.cc \
3016 tests/testStoreSupport.cc \
3017 tests/testStoreSupport.h \
3018 time.cc \
3019 wordlist.h \
3020 wordlist.cc
3021
3022 nodist_tests_testUfs_SOURCES = \
3023 $(TESTSOURCES) \
3024 SquidMath.cc \
3025 SquidMath.h \
3026 swap_log_op.cc
3027 tests_testUfs_LDADD = \
3028 http/libhttp.la \
3029 parser/libparser.la \
3030 CommCalls.o \
3031 ident/libident.la \
3032 acl/libacls.la \
3033 acl/libstate.la \
3034 acl/libapi.la \
3035 libsquid.la \
3036 ip/libip.la \
3037 fs/libfs.la \
3038 mgr/libmgr.la \
3039 $(REPL_OBJS) \
3040 acl/libacls.la \
3041 DiskIO/libdiskio.la \
3042 acl/libapi.la \
3043 $(SSL_LIBS) \
3044 ipc/libipc.la \
3045 comm/libcomm.la \
3046 anyp/libanyp.la \
3047 dns/libdns.la \
3048 base/libbase.la \
3049 ip/libip.la \
3050 mem/libmem.la \
3051 store/libstore.la \
3052 $(ADAPTATION_LIBS) \
3053 sbuf/libsbuf.la \
3054 $(top_builddir)/lib/libmisccontainers.la \
3055 $(top_builddir)/lib/libmiscencoding.la \
3056 $(top_builddir)/lib/libmiscutil.la \
3057 $(NETTLELIB) \
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 $(SSLLIB) \
3233 $(LIBCPPUNIT_LIBS) \
3234 $(COMPAT_LIB) \
3235 $(XTRA_LIBS)
3236 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3237 tests_testRock_DEPENDENCIES = \
3238 $(SWAP_TEST_DS)
3239
3240 ## Tests of the URL module.
3241 ## TODO: Trim this down once the insanity is over.
3242 tests_testURL_SOURCES = \
3243 AccessLogEntry.cc \
3244 BodyPipe.cc \
3245 cache_cf.h \
3246 AuthReg.h \
3247 RefreshPattern.h \
3248 cache_cf.cc \
3249 tests/stub_cache_manager.cc \
3250 CacheDigest.h \
3251 tests/stub_CacheDigest.cc \
3252 CachePeer.cc \
3253 CachePeer.h \
3254 carp.h \
3255 tests/stub_carp.cc \
3256 cbdata.cc \
3257 client_db.h \
3258 client_db.cc \
3259 client_side.h \
3260 client_side.cc \
3261 client_side_reply.cc \
3262 client_side_request.cc \
3263 ClientInfo.h \
3264 clientStream.cc \
3265 tests/stub_CollapsedForwarding.cc \
3266 ConfigOption.cc \
3267 ConfigParser.cc \
3268 CpuAffinityMap.cc \
3269 CpuAffinityMap.h \
3270 CpuAffinitySet.cc \
3271 CpuAffinitySet.h \
3272 $(DELAY_POOL_SOURCE) \
3273 fs_io.h \
3274 fs_io.cc \
3275 dlink.h \
3276 dlink.cc \
3277 $(DNSSOURCE) \
3278 errorpage.cc \
3279 ETag.cc \
3280 event.cc \
3281 external_acl.cc \
3282 ExternalACLEntry.cc \
3283 fatal.h \
3284 tests/stub_fatal.cc \
3285 fd.h \
3286 fd.cc \
3287 fde.cc \
3288 FileMap.h \
3289 filemap.cc \
3290 fqdncache.h \
3291 fqdncache.cc \
3292 FwdState.cc \
3293 FwdState.h \
3294 gopher.h \
3295 gopher.cc \
3296 helper.cc \
3297 hier_code.h \
3298 $(HTCPSOURCE) \
3299 http.cc \
3300 HttpBody.h \
3301 HttpBody.cc \
3302 tests/stub_HttpControlMsg.cc \
3303 HttpHeaderFieldStat.h \
3304 HttpHdrCc.h \
3305 HttpHdrCc.cc \
3306 HttpHdrCc.cci \
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 $(REPL_OBJS) \
3464 $(ADAPTATION_LIBS) \
3465 $(ESI_LIBS) \
3466 $(top_builddir)/lib/libmisccontainers.la \
3467 $(top_builddir)/lib/libmiscencoding.la \
3468 $(top_builddir)/lib/libmiscutil.la \
3469 $(NETTLELIB) \
3470 $(SSLLIB) \
3471 $(KRB5LIBS) \
3472 $(LIBCPPUNIT_LIBS) \
3473 $(COMPAT_LIB) \
3474 $(XTRA_LIBS)
3475 tests_testURL_LDFLAGS = $(LIBADD_DL)
3476
3477 tests_testSBuf_SOURCES= \
3478 tests/testSBuf.h \
3479 tests/testSBuf.cc \
3480 tests/SBufFindTest.h \
3481 tests/SBufFindTest.cc \
3482 tests/stub_SBufDetailedStats.cc \
3483 tests/stub_time.cc \
3484 tests/stub_debug.cc \
3485 tests/stub_fatal.cc \
3486 tests/stub_libmem.cc
3487 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3488 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3489 tests_testSBuf_LDADD= \
3490 sbuf/libsbuf.la \
3491 base/libbase.la \
3492 $(LIBCPPUNIT_LIBS) \
3493 $(COMPAT_LIB) \
3494 $(XTRA_LIBS)
3495
3496 tests_testSBufList_SOURCES= \
3497 tests/testSBufList.h \
3498 tests/testSBufList.cc \
3499 tests/stub_SBufDetailedStats.cc \
3500 tests/stub_time.cc \
3501 tests/stub_debug.cc \
3502 tests/stub_fatal.cc \
3503 tests/stub_libmem.cc
3504 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3505 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3506 tests_testSBufList_LDADD=\
3507 sbuf/libsbuf.la \
3508 base/libbase.la \
3509 $(LIBCPPUNIT_LIBS) \
3510 $(COMPAT_LIB) \
3511 $(XTRA_LIBS)
3512
3513 tests_testConfigParser_SOURCES = \
3514 ClientInfo.h \
3515 tests/stub_MemBuf.cc \
3516 tests/stub_time.cc \
3517 tests/stub_SBufDetailedStats.cc \
3518 String.cc \
3519 ConfigParser.cc \
3520 fatal.h \
3521 tests/stub_fatal.cc \
3522 tests/testConfigParser.cc \
3523 tests/testConfigParser.h \
3524 cache_cf.h \
3525 tests/stub_cache_cf.cc \
3526 tests/stub_cbdata.cc \
3527 tests/stub_debug.cc \
3528 tests/stub_libmem.cc \
3529 tests/stub_HelperChildConfig.cc \
3530 tools.h \
3531 tests/stub_tools.cc \
3532 wordlist.h \
3533 wordlist.cc
3534 nodist_tests_testConfigParser_SOURCES = \
3535 $(TESTSOURCES)
3536 tests_testConfigParser_LDADD = \
3537 libsquid.la \
3538 ip/libip.la \
3539 sbuf/libsbuf.la \
3540 base/libbase.la \
3541 $(top_builddir)/lib/libmiscutil.la \
3542 $(SSLLIB) \
3543 $(LIBCPPUNIT_LIBS) \
3544 $(COMPAT_LIB) \
3545 $(XTRA_LIBS)
3546 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3547
3548 tests_testStatHist_SOURCES = \
3549 tests/stub_cbdata.cc \
3550 fatal.h \
3551 tests/stub_fatal.cc \
3552 tests/stub_MemBuf.cc \
3553 tests/stub_SBufDetailedStats.cc \
3554 StatHist.cc \
3555 StatHist.h \
3556 String.cc \
3557 tests/stub_cache_manager.cc \
3558 tests/stub_comm.cc \
3559 tests/stub_debug.cc \
3560 tests/stub_DelayId.cc \
3561 tests/stub_HelperChildConfig.cc \
3562 tests/stub_libmem.cc \
3563 tests/stub_MemObject.cc \
3564 mime.h \
3565 tests/stub_mime.cc \
3566 tests/stub_pconn.cc \
3567 tests/stub_stmem.cc \
3568 repl_modules.h \
3569 tests/stub_store.cc \
3570 tests/stub_store_stats.cc \
3571 time.cc \
3572 tools.h \
3573 tests/stub_tools.cc \
3574 tests/testStatHist.cc \
3575 tests/testStatHist.h
3576 nodist_tests_testStatHist_SOURCES = \
3577 $(TESTSOURCES)
3578 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3579 tests_testStatHist_LDADD = \
3580 sbuf/libsbuf.la \
3581 base/libbase.la \
3582 $(top_builddir)/lib/libmiscutil.la \
3583 $(top_builddir)/lib/libmisccontainers.la \
3584 $(LIBCPPUNIT_LIBS) \
3585 $(COMPAT_LIB)
3586
3587 tests_testLookupTable_SOURCES = \
3588 tests/testLookupTable.h \
3589 tests/testLookupTable.cc \
3590 tests/stub_debug.cc \
3591 tests/stub_libmem.cc \
3592 tests/stub_SBufDetailedStats.cc \
3593 base/LookupTable.h
3594 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3595 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3596 tests_testLookupTable_LDADD = \
3597 sbuf/libsbuf.la \
3598 base/libbase.la \
3599 $(LIBCPPUNIT_LIBS) \
3600 $(COMPAT_LIB) \
3601 $(XTRA_LIBS)
3602
3603 tests_testEnumIterator_SOURCES = \
3604 base/EnumIterator.h \
3605 tests/stub_debug.cc \
3606 tests/stub_libmem.cc \
3607 tests/testEnumIterator.h \
3608 tests/testEnumIterator.cc
3609 nodist_tests_testEnumIterator_SOURCES = \
3610 $(TESTSOURCES)
3611 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3612 tests_testEnumIterator_LDADD = \
3613 base/libbase.la \
3614 $(LIBCPPUNIT_LIBS) \
3615 $(COMPAT_LIB) \
3616 $(XTRA_LIBS)
3617
3618 tests_testYesNoNone_SOURCES = \
3619 tests/testYesNoNone.cc \
3620 tests/testYesNoNone.h
3621 nodist_tests_testYesNoNone_SOURCES = \
3622 tests/STUB.h \
3623 tests/stub_debug.cc \
3624 tests/stub_libmem.cc \
3625 base/YesNoNone.h
3626 tests_testYesNoNone_LDADD= \
3627 base/libbase.la \
3628 $(LIBCPPUNIT_LIBS) \
3629 $(COMPAT_LIB) \
3630 $(XTRA_LIBS)
3631 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3632
3633 TESTS += testHeaders
3634
3635 ## Special Universal .h dependency test script
3636 ## aborts if error encountered
3637 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3638 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3639 ## src/repl/ has no .h files and its own makefile.
3640
3641 CLEANFILES += testHeaders
3642 .PHONY: testHeaders
3643