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