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