]> git.ipfire.org Git - thirdparty/squid.git/blob - src/Makefile.am
r15014: fix build issue on fedora-22 and FreeBSD-10/clang
[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.h \
113 ClientDelayConfig.cc \
114 ClientDelayConfig.h
115
116 if ENABLE_DELAY_POOLS
117 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
118 else
119 DELAY_POOL_SOURCE =
120 endif
121
122 if ENABLE_XPROF_STATS
123 XPROF_STATS_SOURCE = ProfStats.cc
124 else
125 XPROF_STATS_SOURCE =
126 endif
127
128 if ENABLE_HTCP
129 HTCPSOURCE = htcp.cc htcp.h
130 endif
131
132 if ENABLE_LEAKFINDER
133 LEAKFINDERSOURCE = LeakFinder.cc
134 else
135 LEAKFINDERSOURCE =
136 endif
137
138 if ENABLE_UNLINKD
139 UNLINKDSOURCE = unlinkd.h unlinkd.cc
140 UNLINKD = unlinkd
141 else
142 UNLINKDSOURCE = unlinkd.h
143 UNLINKD =
144 endif
145
146 WIN32_ALL_SOURCE = \
147 win32.h \
148 win32.cc \
149 WinSvc.h \
150 WinSvc.cc
151 if ENABLE_WIN32SPECIFIC
152 WIN32_SOURCE = win32.cc
153 WINSVC_SOURCE = WinSvc.cc
154 else
155 WIN32_SOURCE =
156 WINSVC_SOURCE =
157 endif
158
159 if ENABLE_WIN32_IPC
160 IPC_SOURCE = SquidIpc.h ipc_win32.cc
161 else
162 IPC_SOURCE = SquidIpc.h ipc.cc
163 endif
164
165 noinst_LTLIBRARIES = libsquid.la
166
167 EXTRA_PROGRAMS = \
168 unlinkd \
169 recv-announce \
170 tests/testUfs \
171 tests/testRock \
172 ufsdump
173
174 ## cfgen is used when building squid
175 ## ufsdump is a debug utility, it is possibly useful for end users with cache
176 ## corruption, but at this point we do not install it.
177 noinst_PROGRAMS = \
178 cf_gen
179
180 sbin_PROGRAMS = \
181 squid
182
183 bin_PROGRAMS =
184
185 libexec_PROGRAMS = \
186 $(UNLINKD)
187
188 cf_gen_SOURCES = cf_gen.cc
189 nodist_cf_gen_HEADER = cf_gen_defines.cci
190 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
191 cf_gen_LDADD=
192 cf_gen.$(OBJEXT): cf_gen_defines.cci
193
194 ## cf_gen.cc needs src/cf_gen_defines.cci
195 AM_CPPFLAGS += -I$(top_builddir)/src
196
197
198 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
199
200 # common library for all the binaries and tests. This is kindof a catch all
201 # and smaller libraries split from this are encouraged. Using lt convenience
202 # libraries, dependencies should not be a problem either.
203 libsquid_la_SOURCES = \
204 comm.cc \
205 comm.h \
206 CommCalls.cc \
207 CommCalls.h \
208 DescriptorSet.cc \
209 DescriptorSet.h \
210 SquidConfig.h \
211 SquidConfig.cc
212
213 squid_SOURCES = \
214 $(ACL_REGISTRATION_SOURCES) \
215 AccessLogEntry.cc \
216 AccessLogEntry.h \
217 AsyncEngine.cc \
218 AsyncEngine.h \
219 cache_cf.h \
220 AuthReg.h \
221 RefreshPattern.h \
222 cache_cf.cc \
223 CacheDigest.h \
224 CacheDigest.cc \
225 cache_manager.cc \
226 NeighborTypeDomainList.h \
227 CachePeer.cc \
228 CachePeer.h \
229 CacheManager.h \
230 carp.h \
231 carp.cc \
232 cbdata.cc \
233 cbdata.h \
234 client_db.h \
235 client_db.cc \
236 client_side.h \
237 client_side.cc \
238 client_side.h \
239 client_side_reply.cc \
240 client_side_reply.h \
241 client_side_request.cc \
242 client_side_request.h \
243 ClientInfo.h \
244 BodyPipe.cc \
245 BodyPipe.h \
246 ClientInfo.h \
247 ClientRequestContext.h \
248 clientStream.cc \
249 clientStream.h \
250 clientStreamForward.h \
251 CollapsedForwarding.cc \
252 CollapsedForwarding.h \
253 CompletionDispatcher.cc \
254 CompletionDispatcher.h \
255 CommRead.h \
256 ConfigOption.cc \
257 ConfigParser.cc \
258 ConfigParser.h \
259 CpuAffinity.cc \
260 CpuAffinity.h \
261 CpuAffinityMap.cc \
262 CpuAffinityMap.h \
263 CpuAffinitySet.cc \
264 CpuAffinitySet.h \
265 debug.cc \
266 Debug.h \
267 defines.h \
268 $(DELAY_POOL_SOURCE) \
269 fs_io.h \
270 fs_io.cc \
271 dlink.h \
272 dlink.cc \
273 $(DNSSOURCE) \
274 Downloader.cc \
275 Downloader.h \
276 enums.h \
277 err_type.h \
278 err_detail_type.h \
279 errorpage.cc \
280 errorpage.h \
281 ETag.cc \
282 ETag.h \
283 event.cc \
284 event.h \
285 EventLoop.h \
286 EventLoop.cc \
287 external_acl.cc \
288 ExternalACL.h \
289 ExternalACLEntry.cc \
290 ExternalACLEntry.h \
291 FadingCounter.h \
292 FadingCounter.cc \
293 fatal.h \
294 fatal.cc \
295 fd.h \
296 fd.cc \
297 fde.cc \
298 fde.h \
299 FileMap.h \
300 filemap.cc \
301 fqdncache.h \
302 fqdncache.cc \
303 FwdState.cc \
304 FwdState.h \
305 Generic.h \
306 globals.h \
307 gopher.h \
308 gopher.cc \
309 helper.cc \
310 helper.h \
311 hier_code.h \
312 HierarchyLogEntry.h \
313 $(HTCPSOURCE) \
314 http.cc \
315 http.h \
316 HttpHeaderFieldStat.h \
317 HttpHdrCc.h \
318 HttpHdrCc.cc \
319 HttpHdrRange.cc \
320 HttpHdrSc.cc \
321 HttpHdrSc.h \
322 HttpHdrScTarget.cc \
323 HttpHdrScTarget.h \
324 HttpHdrContRange.cc \
325 HttpHdrContRange.h \
326 HttpHeaderStat.h \
327 HttpHeader.h \
328 HttpHeader.cc \
329 HttpHeaderMask.h \
330 HttpHeaderRange.h \
331 HttpHeaderFieldInfo.h \
332 HttpHeaderTools.h \
333 HttpHeaderTools.cc \
334 HttpBody.h \
335 HttpBody.cc \
336 HttpControlMsg.cc \
337 HttpControlMsg.h \
338 HttpMsg.cc \
339 HttpMsg.h \
340 HttpReply.cc \
341 HttpReply.h \
342 RequestFlags.h \
343 RequestFlags.cc \
344 HttpRequest.cc \
345 HttpRequest.h \
346 ICP.h \
347 icp_opcode.h \
348 icp_v2.cc \
349 icp_v3.cc \
350 int.h \
351 int.cc \
352 internal.h \
353 internal.cc \
354 $(IPC_SOURCE) \
355 ipcache.cc \
356 ipcache.h \
357 $(LEAKFINDERSOURCE) \
358 LogTags.cc \
359 LogTags.h \
360 lookup_t.h \
361 main.cc \
362 MasterXaction.cc \
363 MasterXaction.h \
364 mem_node.cc \
365 mem_node.h \
366 MemBuf.cc \
367 MemObject.cc \
368 MemObject.h \
369 MessageSizes.h \
370 mime.h \
371 mime.cc \
372 mime_header.h \
373 mime_header.cc \
374 multicast.h \
375 multicast.cc \
376 neighbors.h \
377 neighbors.cc \
378 Notes.h \
379 Notes.cc \
380 Parsing.cc \
381 Parsing.h \
382 $(XPROF_STATS_SOURCE) \
383 pconn.cc \
384 pconn.h \
385 PeerDigest.h \
386 peer_digest.cc \
387 peer_proxy_negotiate_auth.h \
388 peer_proxy_negotiate_auth.cc \
389 peer_select.cc \
390 peer_sourcehash.h \
391 peer_sourcehash.cc \
392 peer_userhash.h \
393 peer_userhash.cc \
394 PeerPoolMgr.h \
395 PeerPoolMgr.cc \
396 PeerSelectState.h \
397 PingData.h \
398 Pipeline.cc \
399 Pipeline.h \
400 protos.h \
401 redirect.h \
402 redirect.cc \
403 refresh.h \
404 refresh.cc \
405 RemovalPolicy.cc \
406 RemovalPolicy.h \
407 send-announce.h \
408 send-announce.cc \
409 SBufStatsAction.h \
410 SBufStatsAction.cc \
411 sbuf/StringConvert.h \
412 $(SNMP_SOURCE) \
413 SquidMath.h \
414 SquidMath.cc \
415 SquidNew.cc \
416 IoStats.h \
417 stat.h \
418 stat.cc \
419 StatCounters.h \
420 StatCounters.cc \
421 StatHist.h \
422 StatHist.cc \
423 String.cc \
424 StrList.h \
425 StrList.cc \
426 stmem.cc \
427 stmem.h \
428 repl_modules.h \
429 store.cc \
430 Store.h \
431 StoreFileSystem.cc \
432 StoreFileSystem.h \
433 store_io.cc \
434 StoreIOBuffer.h \
435 StoreIOState.cc \
436 StoreIOState.h \
437 store_client.cc \
438 StoreClient.h \
439 store_digest.h \
440 store_digest.cc \
441 store_key_md5.h \
442 store_key_md5.cc \
443 store_log.h \
444 store_log.cc \
445 store_rebuild.h \
446 store_rebuild.cc \
447 store_swapin.h \
448 store_swapin.cc \
449 store_swapmeta.cc \
450 store_swapout.cc \
451 StoreMetaUnpacker.cc \
452 StoreMetaUnpacker.h \
453 $(STOREMETA_SOURCE) \
454 StoreSearch.h \
455 StoreStats.cc \
456 StoreStats.h \
457 StoreSwapLogData.cc \
458 StoreSwapLogData.h \
459 swap_log_op.h \
460 Transients.cc \
461 Transients.h \
462 MemStore.cc \
463 MemStore.h \
464 time.cc \
465 TimeOrTag.h \
466 tools.h \
467 tools.cc \
468 tunnel.cc \
469 typedefs.h \
470 $(UNLINKDSOURCE) \
471 url.cc \
472 URL.h \
473 urn.h \
474 urn.cc \
475 wccp.h \
476 wccp.cc \
477 wccp2.h \
478 wccp2.cc \
479 whois.h \
480 whois.cc \
481 wordlist.h \
482 wordlist.cc \
483 $(WIN32_SOURCE) \
484 $(WINSVC_SOURCE)
485
486 EXTRA_squid_SOURCES = \
487 $(all_AUTHMODULES) \
488 ConfigOption.h \
489 $(DELAY_POOL_ALL_SOURCE) \
490 htcp.cc \
491 htcp.h \
492 ipc.cc \
493 ipc_win32.cc \
494 ProfStats.cc \
495 LeakFinder.cc \
496 LeakFinder.h \
497 $(SNMP_ALL_SOURCE) \
498 $(UNLINKDSOURCE) \
499 $(WIN32_ALL_SOURCE) \
500 $(LOADABLE_MODULES_SOURCES)
501
502 noinst_HEADERS = \
503 MemBuf.h \
504 SquidString.h \
505 SquidTime.h
506
507 BUILT_SOURCES = \
508 cf_gen_defines.cci \
509 cf_parser.cci \
510 err_type.cc \
511 err_detail_type.cc \
512 globals.cc \
513 hier_code.cc \
514 icp_opcode.cc \
515 lookup_t.cc \
516 repl_modules.cc \
517 swap_log_op.cc
518
519 CLEANFILES += $(BUILT_SOURCES)
520
521 nodist_squid_SOURCES = \
522 $(BUILT_SOURCES)
523
524 squid_LDADD = \
525 $(AUTH_ACL_LIBS) \
526 ident/libident.la \
527 acl/libacls.la \
528 acl/libstate.la \
529 $(AUTH_LIBS) \
530 acl/libapi.la \
531 clients/libclients.la \
532 servers/libservers.la \
533 ftp/libftp.la \
534 helper/libhelper.la \
535 http/libhttp.la \
536 dns/libdns.la \
537 base/libbase.la \
538 libsquid.la \
539 ip/libip.la \
540 fs/libfs.la \
541 DiskIO/libdiskio.la \
542 comm/libcomm.la \
543 anyp/libanyp.la \
544 security/libsecurity.la \
545 $(SSL_LIBS) \
546 ipc/libipc.la \
547 mgr/libmgr.la \
548 parser/libparser.la \
549 eui/libeui.la \
550 icmp/libicmp.la \
551 log/liblog.la \
552 format/libformat.la \
553 sbuf/libsbuf.la \
554 $(XTRA_OBJS) \
555 $(REPL_OBJS) \
556 $(NETTLELIB) \
557 $(CRYPTLIB) \
558 $(REGEXLIB) \
559 $(ADAPTATION_LIBS) \
560 $(ESI_LIBS) \
561 $(SNMP_LIBS) \
562 mem/libmem.la \
563 store/libstore.la \
564 $(top_builddir)/lib/libmisccontainers.la \
565 $(top_builddir)/lib/libmiscencoding.la \
566 $(top_builddir)/lib/libmiscutil.la \
567 $(ATOMICLIB) \
568 $(SSLLIB) \
569 $(EPOLL_LIBS) \
570 $(MINGW_LIBS) \
571 $(KRB5LIBS) \
572 $(COMPAT_LIB) \
573 $(XTRA_LIBS)
574
575 if ENABLE_LOADABLE_MODULES
576 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
577 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
578 squid_LDFLAGS = -export-dynamic -dlopen force
579 ## when static module linking is supported and enabled:
580 ## squid_LDFLAGS = -all-static -dlopen self
581 ##
582 ## LTDL headers require their local include path...
583 AM_CPPFLAGS += $(INCLTDL)
584 endif
585
586 ## Kerberos libraries require their include path...
587 AM_CPPFLAGS += $(KRB5INCS)
588
589
590 unlinkd_SOURCES = unlinkd_daemon.cc
591 unlinkd_LDADD = \
592 $(COMPAT_LIB) \
593 $(XTRA_LIBS)
594
595 recv_announce_SOURCES = recv-announce.cc
596
597 ## What requires what..
598 ## many things want ACLChecklist.cc
599 ## ACLChecklist.cc wants AuthUserRequest.cc
600 ## ACLChecklist.cc wants AuthScheme.cc
601 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
602 ## ACLProxyAuth.cc wants ACLUserData
603 ## ACLProxyAuth.cc wants ACLRegexData
604 ## cache_cf.cc wants $(AUTH_LIBS)
605 ## cache_cf.cc wants store/libstore.la
606 ## cache_cf.cc wants AnyP::PortCfg
607 ## client_side wants client_db
608 ## client_db wants SNMP_SOURCE
609 ## snmp_core wants ACLStringData
610 ## tools.cc wants ip/libip.la
611 ## client_side.cc wants ip/libip.la
612 ## libbase.la wants cbdata.*
613 ## libbase.la wants MemBuf.*
614 ufsdump_SOURCES = \
615 ClientInfo.h \
616 cbdata.h \
617 cbdata.cc \
618 debug.cc \
619 int.h \
620 int.cc \
621 mem/forward.h \
622 MemBuf.cc \
623 MemBuf.h \
624 Parsing.h \
625 store_key_md5.h \
626 store_key_md5.cc \
627 tests/stub_StoreMeta.cc \
628 StoreMetaUnpacker.cc \
629 String.cc \
630 SquidNew.cc \
631 tests/stub_time.cc \
632 ufsdump.cc \
633 dlink.h \
634 dlink.cc \
635 helper/ChildConfig.h \
636 tests/stub_HelperChildConfig.cc \
637 RemovalPolicy.cc \
638 $(WIN32_SOURCE) \
639 fd.h \
640 tests/stub_fd.cc
641 ufsdump_LDADD = \
642 ident/libident.la \
643 acl/libacls.la \
644 eui/libeui.la \
645 acl/libstate.la \
646 acl/libapi.la \
647 base/libbase.la \
648 libsquid.la \
649 ip/libip.la \
650 fs/libfs.la \
651 ipc/libipc.la \
652 mgr/libmgr.la \
653 $(XTRA_OBJS) \
654 $(REPL_OBJS) \
655 $(NETTLELIB) \
656 $(CRYPTLIB) \
657 $(REGEXLIB) \
658 $(SSLLIB) \
659 $(COMPAT_LIB) \
660 $(EPOLL_LIBS) \
661 $(MINGW_LIBS) \
662 $(XTRA_LIBS)
663 ufsdump_DEPENDENCIES = \
664 ident/libident.la \
665 acl/libacls.la \
666 eui/libeui.la \
667 acl/libstate.la \
668 acl/libapi.la \
669 base/libbase.la \
670 libsquid.la \
671 ip/libip.la \
672 fs/libfs.la \
673 ipc/libipc.la \
674 mgr/libmgr.la \
675 DiskIO/libdiskio.la \
676 $(REPL_OBJS)
677
678 nodist_ufsdump_SOURCES = \
679 globals.cc
680
681 sysconf_DATA = \
682 squid.conf.default \
683 squid.conf.documented \
684 mime.conf.default
685
686 data_DATA = \
687 mib.txt
688
689 LDADD = \
690 $(AUTH_ACL_LIBS) \
691 ident/libident.la \
692 acl/libacls.la \
693 eui/libeui.la \
694 acl/libstate.la \
695 $(AUTH_LIBS) \
696 acl/libapi.la \
697 base/libbase.la \
698 libsquid.la \
699 ip/libip.la \
700 fs/libfs.la \
701 ipc/libipc.la \
702 mgr/libmgr.la \
703 $(EPOLL_LIBS) \
704 $(MINGW_LIBS) \
705 $(COMPAT_LIB) \
706 $(XTRA_LIBS)
707
708 include $(srcdir)/tests/Stub.list
709
710 EXTRA_DIST = \
711 cf_gen_defines \
712 cf.data.pre \
713 cf.data.depend \
714 cf.data.sed \
715 mk-globals-c.awk \
716 mk-string-arrays.awk \
717 repl_modules.sh \
718 $(STUB_SOURCE) \
719 mib.txt \
720 mime.conf.default
721
722 # Make location configure settings available to the code
723 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
724
725 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
726
727 globals.cc: globals.h mk-globals-c.awk
728 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
729
730 ## Generate files containing string arrays for various enums....
731 hier_code.cc: hier_code.h mk-string-arrays.awk
732 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
733
734 err_type.cc: err_type.h mk-string-arrays.awk
735 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
736
737 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
738 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
739
740 lookup_t.cc: lookup_t.h mk-string-arrays.awk
741 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
742
743 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
744 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
745
746 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
747 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
748
749
750 ## other generated files...
751
752 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
753 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
754
755 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
756 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
757
758 ## If autodependency works well this is not needed anymore
759 cache_cf.o: cf_parser.cci
760
761 # cf_gen builds the configuration files.
762 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
763 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
764
765 # squid.conf.default is built by cf_gen when making cf_parser.cci
766 squid.conf.default squid.conf.documented: cf_parser.cci
767 true
768
769 cf_parser.cci: cf.data cf_gen$(EXEEXT)
770 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
771
772 # The cf_gen_defines.cci is auto-generated and does not exist when the
773 # dependencies computed. We need to add its include files (autoconf.h) here
774 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
775 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
776
777
778 ## FIXME: generate a sed command file from configure. Then this doesn't
779 ## depend on the Makefile.
780 cf.data: cf.data.pre Makefile
781 sed \
782 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
783 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
784 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
785 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
786 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
787 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
788 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
789 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
790 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
791 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
792 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
793 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
794 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
795 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
796 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
797 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
798 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
799 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
800 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
801 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
802 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
803 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
804 -f $(srcdir)/cf.data.sed \
805 < $(srcdir)/cf.data.pre >$@
806
807 repl_modules.cc: repl_modules.sh Makefile
808 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
809
810 include $(top_srcdir)/doc/manuals/Substitute.am
811
812 squid.8: $(srcdir)/squid.8.in Makefile
813 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
814
815 man_MANS = squid.8
816 EXTRA_DIST += squid.8.in
817 CLEANFILES += squid.8
818
819 install-data-local: install-sysconfDATA install-dataDATA
820 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
821 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
822 else \
823 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
824 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
825 fi
826 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
827 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
828 else \
829 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
830 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
831 fi
832 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
833 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
834 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
835 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
836 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
837 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
838 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
839
840 uninstall-local: squid.conf.default
841 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
842 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
843
844 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
845 test_tools.cc *.a
846
847 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
848 cp $(top_srcdir)/test-suite/test_tools.cc .
849
850 # stock tools for unit tests - library independent versions of dlink_list
851 # etc.
852 # globals.cc is needed by test_tools.cc.
853 # Neither of these should be disted from here.
854 TESTSOURCES= \
855 tests/STUB.h \
856 test_tools.cc \
857 globals.cc
858
859 check_PROGRAMS+=\
860 tests/testBoilerplate \
861 tests/testCacheManager \
862 tests/testCharacterSet \
863 tests/testDiskIO \
864 tests/testDns \
865 tests/testEnumIterator \
866 tests/testEvent \
867 tests/testEventLoop \
868 tests/test_http_range \
869 tests/testTokenizer \
870 tests/testHttp1Parser \
871 tests/testHttpReply \
872 tests/testHttpRequest \
873 tests/testIcmp \
874 tests/testIpAddress \
875 tests/testMem \
876 tests/testNetDb \
877 tests/testStore \
878 tests/testString \
879 tests/testURL \
880 tests/testSBuf \
881 tests/testSBufList \
882 tests/testConfigParser \
883 tests/testStatHist \
884 tests/testLookupTable \
885 tests/testYesNoNone
886
887 if ENABLE_FS_ROCK
888 check_PROGRAMS += tests/testRock
889 endif
890 if ENABLE_FS_UFS
891 check_PROGRAMS += tests/testUfs
892 endif
893
894 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
895 TESTS += $(check_PROGRAMS)
896
897 ### Template for new Unit Test Program
898 ## - add tests/testX to check_PROGRAMS above.
899 ## - copy template below and substitue X for class name
900 ## - add other component .(h|cc) files needed to link and run tests
901 ##
902 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
903 ##
904 #tests_testX_SOURCES=\
905 # tests/testX.h \
906 # tests/testX.cc \
907 # X.h \
908 # X.cc
909 #nodist_tests_testX_SOURCES=\
910 # tests/stubs_as_needed.cc\
911 # $(TESTSOURCES)
912 #tests_testX_LDFLAGS = $(LIBADD_DL)
913 #tests_testX_LDADD=\
914 # $(LIBCPPUNIT_LIBS) \
915 # $(COMPAT_LIB) \
916 # $(XTRA_LIBS)
917
918 # - add other component .(h|cc) files needed to link and run tests
919 tests_testHttpReply_SOURCES=\
920 cbdata.cc \
921 cbdata.h \
922 ConfigParser.cc \
923 tests/stub_ETag.cc \
924 fatal.h \
925 tests/stub_fatal.cc \
926 HttpBody.h \
927 HttpBody.cc \
928 HttpHeaderFieldStat.h \
929 HttpHdrCc.h \
930 HttpHdrCc.cc \
931 HttpHdrContRange.cc \
932 HttpHdrContRange.h \
933 HttpHdrRange.cc \
934 HttpHdrSc.cc \
935 HttpHdrSc.h \
936 HttpHdrScTarget.cc \
937 HttpHdrScTarget.h \
938 HttpHeader.h \
939 HttpHeader.cc \
940 HttpHeaderMask.h \
941 HttpHeaderFieldInfo.h \
942 HttpHeaderTools.h \
943 HttpHeaderTools.cc \
944 HttpControlMsg.cc \
945 HttpControlMsg.h \
946 HttpMsg.cc \
947 HttpMsg.h \
948 HttpReply.cc \
949 HttpReply.h \
950 MasterXaction.cc \
951 MasterXaction.h \
952 MemBuf.cc \
953 MemBuf.h \
954 mime_header.h \
955 mime_header.cc \
956 Notes.h \
957 Notes.cc \
958 SquidString.h \
959 SquidTime.h \
960 tests/stub_SBufDetailedStats.cc \
961 String.cc \
962 StrList.h \
963 StrList.cc \
964 log/access_log.h \
965 tests/stub_access_log.cc \
966 cache_cf.h \
967 tests/stub_cache_cf.cc \
968 tests/stub_cache_manager.cc \
969 tests/stub_comm.cc \
970 tests/stub_debug.cc \
971 tests/stub_errorpage.cc \
972 tests/stub_event.cc \
973 tests/stub_fd.cc \
974 tests/stub_HelperChildConfig.cc \
975 tests/stub_libformat.cc \
976 tests/stub_libauth.cc \
977 tests/stub_libcomm.cc \
978 tests/stub_libmgr.cc \
979 tests/stub_libsecurity.cc \
980 tests/stub_libsslsquid.cc \
981 StatCounters.h \
982 StatCounters.cc \
983 StatHist.h \
984 tests/stub_StatHist.cc \
985 repl_modules.h \
986 tests/stub_store.cc \
987 tests/stub_store_stats.cc \
988 tools.h \
989 tests/stub_tools.cc \
990 tests/stub_HttpRequest.cc \
991 tests/testHttpReply.cc \
992 tests/testHttpReply.h \
993 tests/stub_time.cc \
994 url.cc \
995 wordlist.h \
996 wordlist.cc
997 nodist_tests_testHttpReply_SOURCES=\
998 $(TESTSOURCES)
999 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1000 tests_testHttpReply_LDADD=\
1001 CommCalls.o \
1002 http/libhttp.la \
1003 parser/libparser.la \
1004 acl/libacls.la \
1005 acl/libapi.la \
1006 acl/libstate.la \
1007 anyp/libanyp.la \
1008 ip/libip.la \
1009 base/libbase.la \
1010 ipc/libipc.la \
1011 mem/libmem.la \
1012 sbuf/libsbuf.la \
1013 $(top_builddir)/lib/libmisccontainers.la \
1014 $(top_builddir)/lib/libmiscencoding.la \
1015 $(top_builddir)/lib/libmiscutil.la \
1016 $(NETTLELIB) \
1017 $(SSLLIB) \
1018 $(LIBCPPUNIT_LIBS) \
1019 $(COMPAT_LIB) \
1020 $(XTRA_LIBS)
1021
1022 tests_testACLMaxUserIP_SOURCES= \
1023 cbdata.cc \
1024 ClientInfo.h \
1025 tests/stub_CollapsedForwarding.cc \
1026 ConfigOption.cc \
1027 ConfigParser.cc \
1028 tests/stub_ETag.cc \
1029 event.cc \
1030 fatal.h \
1031 tests/stub_fatal.cc \
1032 FileMap.h \
1033 filemap.cc \
1034 HttpBody.cc \
1035 HttpHeader.h \
1036 HttpHeader.cc \
1037 HttpHeaderFieldInfo.h \
1038 HttpHeaderTools.h \
1039 HttpHeaderTools.cc \
1040 HttpHdrContRange.cc \
1041 HttpHdrRange.cc \
1042 HttpHeaderFieldStat.h \
1043 HttpHdrCc.h \
1044 HttpHdrCc.cc \
1045 HttpHdrSc.cc \
1046 HttpHdrScTarget.cc \
1047 HttpMsg.cc \
1048 int.h \
1049 int.cc \
1050 MasterXaction.cc \
1051 MasterXaction.h \
1052 Notes.cc \
1053 Notes.h \
1054 mem_node.cc \
1055 Parsing.cc \
1056 tests/stub_libsecurity.cc \
1057 SquidMath.cc \
1058 StatCounters.cc \
1059 StatCounters.h \
1060 StatHist.h \
1061 StrList.h \
1062 StrList.cc \
1063 tests/stub_StatHist.cc \
1064 stmem.cc \
1065 tests/stub_SBufDetailedStats.cc \
1066 String.cc \
1067 StoreIOState.cc \
1068 tests/stub_StoreMeta.cc \
1069 StoreMetaUnpacker.cc \
1070 StoreSwapLogData.cc \
1071 store_key_md5.h \
1072 store_key_md5.cc \
1073 swap_log_op.cc \
1074 swap_log_op.h \
1075 tests/stub_SwapDir.cc \
1076 Transients.cc \
1077 log/access_log.h \
1078 tests/stub_access_log.cc \
1079 cache_cf.h \
1080 tests/stub_cache_cf.cc \
1081 tests/stub_client_side.cc \
1082 tests/stub_debug.cc \
1083 tests/stub_DelayId.cc \
1084 tests/stub_errorpage.cc \
1085 fd.h \
1086 tests/stub_fd.cc \
1087 tests/stub_HttpRequest.cc \
1088 tests/stub_HttpReply.cc \
1089 tests/stub_ipc_TypedMsgHdr.cc \
1090 tests/stub_libauth.cc \
1091 tests/stub_libcomm.cc \
1092 tests/stub_libdiskio.cc \
1093 tests/stub_libformat.cc \
1094 tests/stub_libmem.cc \
1095 tests/stub_libsslsquid.cc \
1096 tests/stub_MemObject.cc \
1097 tests/stub_MemStore.cc \
1098 mime.h \
1099 tests/stub_mime.cc \
1100 tests/stub_pconn.cc \
1101 tests/stub_Port.cc \
1102 repl_modules.h \
1103 tests/stub_store.cc \
1104 tests/stub_store_client.cc \
1105 store_rebuild.h \
1106 tests/stub_store_rebuild.cc \
1107 tests/stub_store_stats.cc \
1108 tests/stub_store_swapout.cc \
1109 tools.h \
1110 tests/stub_tools.cc \
1111 tests/stub_cache_manager.cc \
1112 tests/stub_UdsOp.cc \
1113 tests/testACLMaxUserIP.cc \
1114 tests/testACLMaxUserIP.h \
1115 tests/stub_time.cc \
1116 url.cc \
1117 URL.h \
1118 MemBuf.cc \
1119 wordlist.h \
1120 wordlist.cc
1121 nodist_tests_testACLMaxUserIP_SOURCES= \
1122 $(TESTSOURCES)
1123 tests_testACLMaxUserIP_LDADD= \
1124 libsquid.la \
1125 helper/libhelper.la \
1126 http/libhttp.la \
1127 parser/libparser.la \
1128 $(AUTH_ACL_LIBS) \
1129 ident/libident.la \
1130 acl/libacls.la \
1131 eui/libeui.la \
1132 acl/libstate.la \
1133 acl/libapi.la \
1134 anyp/libanyp.la \
1135 base/libbase.la \
1136 ip/libip.la \
1137 ipc/libipc.la \
1138 mgr/libmgr.la \
1139 sbuf/libsbuf.la \
1140 $(top_builddir)/lib/libmisccontainers.la \
1141 $(top_builddir)/lib/libmiscencoding.la \
1142 $(top_builddir)/lib/libmiscutil.la \
1143 $(NETTLELIB) \
1144 $(REGEXLIB) \
1145 $(SSLLIB) \
1146 $(LIBCPPUNIT_LIBS) \
1147 $(COMPAT_LIB) \
1148 $(XTRA_LIBS)
1149 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1150
1151 ## a demonstration test that does nothing but shows the salient points
1152 ## involved in writing tests.
1153 tests_testBoilerplate_SOURCES = \
1154 tests/testBoilerplate.cc \
1155 tests/testBoilerplate.h \
1156 tests/stub_debug.cc \
1157 tests/stub_libmem.cc \
1158 tests/stub_time.cc
1159 nodist_tests_testBoilerplate_SOURCES = \
1160 tests/stub_cbdata.cc \
1161 tests/stub_MemBuf.cc \
1162 $(TESTSOURCES)
1163 tests_testBoilerplate_LDADD= \
1164 $(SSLLIB) \
1165 base/libbase.la \
1166 $(LIBCPPUNIT_LIBS) \
1167 $(COMPAT_LIB) \
1168 $(XTRA_LIBS)
1169 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1170
1171 ## Tests of base/libbase.la objects
1172 tests_testCharacterSet_SOURCES = \
1173 tests/testCharacterSet.cc \
1174 tests/testCharacterSet.h
1175 nodist_tests_testCharacterSet_SOURCES = \
1176 base/CharacterSet.h \
1177 $(TESTSOURCES) \
1178 tests/stub_cbdata.cc \
1179 tests/stub_debug.cc \
1180 tests/stub_libmem.cc \
1181 tests/stub_MemBuf.cc
1182 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1183 tests_testCharacterSet_LDADD= \
1184 base/libbase.la \
1185 $(LIBCPPUNIT_LIBS) \
1186 $(COMPAT_LIB) \
1187 $(XTRA_LIBS)
1188
1189 ## Tests of the CacheManager module.
1190 tests_testCacheManager_SOURCES = \
1191 AccessLogEntry.cc \
1192 debug.cc \
1193 RequestFlags.h \
1194 RequestFlags.cc \
1195 HttpRequest.cc \
1196 String.cc \
1197 tests/testCacheManager.cc \
1198 tests/testCacheManager.h \
1199 tests/stub_main_cc.cc \
1200 tests/stub_HttpControlMsg.cc \
1201 tests/stub_ipc_Forwarder.cc \
1202 tests/stub_store_stats.cc \
1203 tests/stub_EventLoop.cc \
1204 time.cc \
1205 BodyPipe.cc \
1206 cache_manager.cc \
1207 cache_cf.h \
1208 AuthReg.h \
1209 RefreshPattern.h \
1210 cache_cf.cc \
1211 CachePeer.cc \
1212 CachePeer.h \
1213 CacheDigest.h \
1214 tests/stub_CacheDigest.cc \
1215 carp.h \
1216 tests/stub_carp.cc \
1217 cbdata.cc \
1218 client_db.h \
1219 client_db.cc \
1220 client_side.h \
1221 client_side.cc \
1222 client_side_reply.cc \
1223 client_side_request.cc \
1224 ClientInfo.h \
1225 clientStream.cc \
1226 tests/stub_CollapsedForwarding.cc \
1227 ConfigOption.cc \
1228 ConfigParser.cc \
1229 CpuAffinityMap.cc \
1230 CpuAffinityMap.h \
1231 CpuAffinitySet.cc \
1232 CpuAffinitySet.h \
1233 $(DELAY_POOL_SOURCE) \
1234 fs_io.h \
1235 fs_io.cc \
1236 dlink.h \
1237 dlink.cc \
1238 $(DNSSOURCE) \
1239 errorpage.cc \
1240 tests/stub_ETag.cc \
1241 event.cc \
1242 external_acl.cc \
1243 ExternalACLEntry.cc \
1244 fatal.h \
1245 tests/stub_fatal.cc \
1246 fd.h \
1247 fd.cc \
1248 fde.cc \
1249 FileMap.h \
1250 filemap.cc \
1251 fqdncache.h \
1252 fqdncache.cc \
1253 FwdState.cc \
1254 FwdState.h \
1255 gopher.h \
1256 gopher.cc \
1257 hier_code.h \
1258 helper.cc \
1259 $(HTCPSOURCE) \
1260 http.cc \
1261 HttpBody.h \
1262 HttpBody.cc \
1263 HttpHeader.h \
1264 HttpHeader.cc \
1265 HttpHeaderFieldInfo.h \
1266 HttpHeaderTools.h \
1267 HttpHeaderTools.cc \
1268 HttpHeaderFieldStat.h \
1269 HttpHdrCc.h \
1270 HttpHdrCc.cc \
1271 HttpHdrContRange.cc \
1272 HttpHdrRange.cc \
1273 HttpHdrSc.cc \
1274 HttpHdrScTarget.cc \
1275 HttpMsg.cc \
1276 HttpReply.cc \
1277 icp_v2.cc \
1278 icp_v3.cc \
1279 $(IPC_SOURCE) \
1280 ipcache.cc \
1281 int.h \
1282 int.cc \
1283 internal.h \
1284 internal.cc \
1285 LogTags.cc \
1286 tests/stub_libsecurity.cc \
1287 MasterXaction.cc \
1288 MasterXaction.h \
1289 multicast.h \
1290 multicast.cc \
1291 mem_node.cc \
1292 MemBuf.cc \
1293 MemObject.cc \
1294 mime.h \
1295 mime.cc \
1296 mime_header.h \
1297 mime_header.cc \
1298 neighbors.h \
1299 neighbors.cc \
1300 Notes.cc \
1301 Notes.h \
1302 Parsing.cc \
1303 pconn.cc \
1304 peer_digest.cc \
1305 peer_proxy_negotiate_auth.h \
1306 peer_proxy_negotiate_auth.cc \
1307 peer_select.cc \
1308 peer_sourcehash.h \
1309 peer_sourcehash.cc \
1310 peer_userhash.h \
1311 peer_userhash.cc \
1312 PeerPoolMgr.h \
1313 PeerPoolMgr.cc \
1314 Pipeline.cc \
1315 Pipeline.h \
1316 redirect.h \
1317 tests/stub_redirect.cc \
1318 refresh.h \
1319 refresh.cc \
1320 RemovalPolicy.cc \
1321 tests/stub_SBufDetailedStats.cc \
1322 $(SNMP_SOURCE) \
1323 SquidMath.h \
1324 SquidMath.cc \
1325 IoStats.h \
1326 stat.h \
1327 stat.cc \
1328 StatCounters.h \
1329 StatCounters.cc \
1330 StatHist.h \
1331 StrList.h \
1332 StrList.cc \
1333 tests/stub_libauth_acls.cc \
1334 tests/stub_libauth.cc \
1335 tests/stub_libdiskio.cc \
1336 tests/stub_StatHist.cc \
1337 stmem.cc \
1338 repl_modules.h \
1339 store.cc \
1340 store_client.cc \
1341 store_digest.h \
1342 tests/stub_store_digest.cc \
1343 store_io.cc \
1344 store_key_md5.h \
1345 store_key_md5.cc \
1346 store_log.h \
1347 store_log.cc \
1348 store_rebuild.h \
1349 store_rebuild.cc \
1350 store_swapin.h \
1351 store_swapin.cc \
1352 store_swapmeta.cc \
1353 store_swapout.cc \
1354 StoreFileSystem.cc \
1355 StoreIOState.cc \
1356 tests/stub_StoreMeta.cc \
1357 StoreMetaUnpacker.cc \
1358 StoreSwapLogData.cc \
1359 tools.h \
1360 tools.cc \
1361 Transients.cc \
1362 tests/stub_tunnel.cc \
1363 tests/stub_SwapDir.cc \
1364 MemStore.cc \
1365 $(UNLINKDSOURCE) \
1366 url.cc \
1367 urn.h \
1368 urn.cc \
1369 wccp2.h \
1370 tests/stub_wccp2.cc \
1371 whois.h \
1372 tests/stub_whois.cc \
1373 FadingCounter.cc \
1374 $(WIN32_SOURCE) \
1375 wordlist.h \
1376 wordlist.cc
1377 nodist_tests_testCacheManager_SOURCES = \
1378 $(BUILT_SOURCES)
1379 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1380 tests_testCacheManager_LDADD = \
1381 libsquid.la \
1382 clients/libclients.la \
1383 servers/libservers.la \
1384 ftp/libftp.la \
1385 helper/libhelper.la \
1386 http/libhttp.la \
1387 parser/libparser.la \
1388 ident/libident.la \
1389 acl/libacls.la \
1390 acl/libstate.la \
1391 acl/libapi.la \
1392 dns/libdns.la \
1393 base/libbase.la \
1394 ip/libip.la \
1395 fs/libfs.la \
1396 comm/libcomm.la \
1397 eui/libeui.la \
1398 icmp/libicmp.la \
1399 log/liblog.la \
1400 format/libformat.la \
1401 $(REPL_OBJS) \
1402 $(ADAPTATION_LIBS) \
1403 $(ESI_LIBS) \
1404 $(SSL_LIBS) \
1405 anyp/libanyp.la \
1406 ipc/libipc.la \
1407 mgr/libmgr.la \
1408 $(SNMP_LIBS) \
1409 mem/libmem.la \
1410 store/libstore.la \
1411 sbuf/libsbuf.la \
1412 $(top_builddir)/lib/libmisccontainers.la \
1413 $(top_builddir)/lib/libmiscencoding.la \
1414 $(top_builddir)/lib/libmiscutil.la \
1415 $(NETTLELIB) \
1416 $(REGEXLIB) \
1417 $(SSLLIB) \
1418 $(KRB5LIBS) \
1419 $(LIBCPPUNIT_LIBS) \
1420 $(COMPAT_LIB) \
1421 $(XTRA_LIBS)
1422 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1423
1424 tests_testDiskIO_SOURCES = \
1425 AccessLogEntry.cc \
1426 AccessLogEntry.h \
1427 CacheDigest.h \
1428 tests/stub_CacheDigest.cc \
1429 cbdata.cc \
1430 client_db.h \
1431 ClientInfo.h \
1432 tests/stub_CollapsedForwarding.cc \
1433 ConfigOption.cc \
1434 ConfigParser.cc \
1435 $(DELAY_POOL_SOURCE) \
1436 FadingCounter.cc \
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