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