]> git.ipfire.org Git - thirdparty/squid.git/blob - src/Makefile.am
Move squidclient and cachemgr from src to tools
[thirdparty/squid.git] / src / Makefile.am
1 #
2 # Makefile for the Squid Object Cache server
3 #
4 # $Id: Makefile.am,v 1.144 2006/05/11 01:36:57 hno Exp $
5 #
6 # Uncomment and customize the following to suit your needs:
7 #
8
9
10 AUTOMAKE_OPTIONS = subdir-objects
11 if USE_DNSSERVER
12 DNSSOURCE = dns.cc
13 DNSSERVER = dnsserver
14 else
15 DNSSOURCE = dns_internal.cc
16 DNSSERVER =
17 endif
18
19 SNMP_ALL_SOURCE = \
20 snmp_core.cc \
21 snmp_agent.cc
22 if USE_SNMP
23 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
24 else
25 SNMP_SOURCE =
26 endif
27
28 TESTS=$(check_PROGRAMS)
29 check_PROGRAMS=
30
31 SUBDIRS = fs repl auth
32
33 DELAY_POOL_ALL_SOURCE = \
34 CommonPool.h \
35 CompositePoolNode.h \
36 delay_pools.cc \
37 DelayId.cc \
38 DelayId.h \
39 DelayIdComposite.h \
40 DelayBucket.cc \
41 DelayBucket.h \
42 DelayConfig.cc \
43 DelayConfig.h \
44 DelayPool.cc \
45 DelayPool.h \
46 DelayPools.h \
47 DelaySpec.cc \
48 DelaySpec.h \
49 DelayTagged.cc \
50 DelayTagged.h \
51 DelayUser.cc \
52 DelayUser.h \
53 DelayVector.cc \
54 DelayVector.h \
55 NullDelayId.cc \
56 NullDelayId.h
57 if USE_DELAY_POOLS
58 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
59 else
60 DELAY_POOL_SOURCE =
61 endif
62
63 ESI_ALL_SOURCE = \
64 ElementList.h \
65 ESI.cc \
66 ESI.h \
67 ESIAssign.cc \
68 ESIAssign.h \
69 ESIAttempt.h \
70 ESIContext.cc \
71 ESIContext.h \
72 ESICustomParser.cc \
73 ESICustomParser.h \
74 ESIElement.h \
75 ESIExcept.h \
76 ESIExpatParser.cc \
77 ESIExpatParser.h \
78 ESIExpression.cc \
79 ESIExpression.h \
80 ESIInclude.cc \
81 ESIInclude.h \
82 ESILiteral.h \
83 ESILibxml2Parser.cc \
84 ESILibxml2Parser.h \
85 ESIParser.cc \
86 ESIParser.h \
87 ESISegment.cc \
88 ESISegment.h \
89 ESISequence.cc \
90 ESISequence.h \
91 ESIVar.h \
92 ESIVarState.cc \
93 ESIVarState.h
94 if USE_ESI
95 ESI_SOURCE = $(ESI_ALL_SOURCE)
96 else
97 ESI_SOURCE =
98 endif
99
100 if ENABLE_XPROF_STATS
101 XPROF_STATS_SOURCE = ProfStats.cc
102 else
103 XPROF_STATS_SOURCE =
104 endif
105
106 if ENABLE_HTCP
107 HTCPSOURCE = htcp.cc htcp.h
108 endif
109
110 if MAKE_LEAKFINDER
111 LEAKFINDERSOURCE = LeakFinder.cc
112 else
113 LEAKFINDERSOURCE =
114 endif
115
116 if ENABLE_UNLINKD
117 UNLINKDSOURCE = unlinkd.cc
118 UNLINKD = unlinkd
119 else
120 UNLINKDSOURCE =
121 UNLINKD =
122 endif
123
124 if ENABLE_PINGER
125 PINGER = pinger
126 else
127 PINGER =
128 endif
129
130 SSL_ALL_SOURCE = \
131 ACLCertificateData.cc \
132 ACLCertificateData.h \
133 ACLCertificate.cc \
134 ACLCertificate.h \
135 ssl_support.cc \
136 ssl_support.h
137 if ENABLE_SSL
138 SSL_SOURCE = $(SSL_ALL_SOURCE)
139 else
140 SSL_SOURCE =
141 endif
142
143 WIN32_ALL_SOURCE = win32.cc
144 if ENABLE_WIN32SPECIFIC
145 WIN32_SOURCE = $(WIN32_ALL_SOURCE)
146 else
147 WIN32_SOURCE =
148 endif
149
150 IDENT_ALL_SOURCE = ACLIdent.cc ACLIdent.h ident.cc
151 if ENABLE_IDENT
152 IDENT_SOURCE = $(IDENT_ALL_SOURCE)
153 else
154 IDENT_SOURCE =
155 endif
156
157 ARP_ACL_ALL_SOURCE = ACLARP.cc ACLARP.h
158 if ENABLE_ARP_ACL
159 ARP_ACL_SOURCE = $(ARP_ACL_ALL_SOURCE)
160 else
161 ARP_ACL_SOURCE =
162 endif
163
164 AM_CFLAGS = @SQUID_CFLAGS@
165 AM_CXXFLAGS = @SQUID_CXXFLAGS@
166
167 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a ICAP/libicap.a
168 noinst_LIBRARIES = @DISK_LIBS@ @ICAP_LIBS@
169
170 INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib/libTrie/include
171 INCLUDES += @SQUID_CPPUNIT_INC@
172
173 EXTRA_PROGRAMS = \
174 DiskIO/DiskDaemon/diskd \
175 unlinkd \
176 pinger \
177 dnsserver \
178 recv-announce \
179 tests/testUfs \
180 tests/testCoss \
181 tests/testNull
182
183 ## cfgen is used when building squid
184 ## ufsdump is a debug utility, it is possibly useful for end users with cache
185 ## corruption, but at this point we do not install it.
186 noinst_PROGRAMS = \
187 cf_gen \
188 ufsdump
189
190 sbin_PROGRAMS = \
191 squid
192
193 bin_PROGRAMS =
194
195
196 libexec_PROGRAMS = \
197 $(PINGER) \
198 $(DNSSERVER) \
199 @DISK_PROGRAMS@ \
200 $(UNLINKD)
201
202 cf_gen_SOURCES = cf_gen.cc defines.h debug.cc time.cc
203 nodist_cf_gen_SOURCES = globals.cc
204 nodist_cf_gen_HEADER = cf_gen_defines.h
205 cf_gen.$(OBJEXT): cf_gen_defines.h
206
207 all_FSMODULES = \
208 fs/aufs/StoreFSaufs.cc \
209 fs/coss/StoreFScoss.cc \
210 fs/diskd/StoreFSdiskd.cc \
211 fs/null/StoreFSnull.cc \
212 fs/ufs/StoreFSufs.cc
213
214 all_DISKIOMODULES = \
215 DiskIO/AIO/AIODiskIOModule.cc \
216 DiskIO/Blocking/BlockingDiskIOModule.cc \
217 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
218 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc
219
220 DISKIO_SOURCE = \
221 DiskIO/DiskIOModule.cc \
222 DiskIO/ReadRequest.cc \
223 DiskIO/ReadRequest.h \
224 DiskIO/WriteRequest.cc \
225 DiskIO/WriteRequest.h \
226 DiskIO/DiskFile.h \
227 DiskIO/DiskIOStrategy.h \
228 DiskIO/IORequestor.h \
229 DiskIO/DiskIOModule.h \
230 DiskIO/ReadRequest.h
231
232 all_AUTHMODULES = \
233 auth/basic/basicScheme.cc \
234 auth/basic/basicScheme.h \
235 auth/digest/digestScheme.cc \
236 auth/digest/digestScheme.h \
237 auth/ntlm/ntlmScheme.cc \
238 auth/ntlm/ntlmScheme.h \
239 auth/negotiate/negotiateScheme.cc \
240 auth/negotiate/negotiateScheme.h
241
242 EXTRA_squid_SOURCES = \
243 $(all_FSMODULES) \
244 $(all_DISKIOMODULES) \
245 $(all_AUTHMODULES) \
246 $(ARP_ACL_ALL_SOURCE) \
247 ConfigOption.h \
248 $(DELAY_POOL_ALL_SOURCE) \
249 dns.cc \
250 dnsserver.cc \
251 dns_internal.cc \
252 htcp.cc \
253 htcp.h \
254 $(IDENT_ALL_SOURCE) \
255 $(ESI_ALL_SOURCE) \
256 ProfStats.cc \
257 LeakFinder.cc \
258 LeakFinder.h \
259 $(SNMP_ALL_SOURCE) \
260 unlinkd.cc \
261 $(SSL_ALL_SOURCE) \
262 $(WIN32_ALL_SOURCE)
263
264 squid_ACLSOURCES = \
265 $(ARP_ACL_SOURCE) \
266 ACLASN.cc \
267 ACLASN.h \
268 ACLDestinationASN.h \
269 ACLSourceASN.h \
270 ACLBrowser.cc \
271 ACLBrowser.h \
272 ACLData.h \
273 ACLDestinationDomain.cc \
274 ACLDestinationDomain.h \
275 ACLDestinationIP.cc \
276 ACLDestinationIP.h \
277 ACLDomainData.h \
278 ACLDomainData.cc \
279 ACLExtUser.h \
280 ACLExtUser.cc \
281 ACLHTTPStatus.h \
282 ACLHTTPStatus.cc \
283 ACLIntRange.cc \
284 ACLIntRange.h \
285 ACLIP.cc \
286 ACLIP.h \
287 ACLMaxConnection.cc \
288 ACLMaxConnection.h \
289 ACLMaxUserIP.cc \
290 ACLMaxUserIP.h \
291 ACLMethod.cc \
292 ACLMethod.h \
293 ACLMethodData.cc \
294 ACLMethodData.h \
295 ACLMyIP.cc \
296 ACLMyIP.h \
297 ACLMyPort.cc \
298 ACLMyPort.h \
299 ACLProtocol.cc \
300 ACLProtocol.h \
301 ACLProtocolData.cc \
302 ACLProtocolData.h \
303 ACLProxyAuth.cc \
304 ACLProxyAuth.h \
305 ACLReferer.cc \
306 ACLReferer.h \
307 ACLRegexData.cc \
308 ACLRegexData.h \
309 ACLReplyHeaderStrategy.h \
310 ACLReplyMIMEType.cc \
311 ACLReplyMIMEType.h \
312 ACLRequestHeaderStrategy.h \
313 ACLRequestMIMEType.cc \
314 ACLRequestMIMEType.h \
315 ACLSourceDomain.cc \
316 ACLSourceDomain.h \
317 ACLSourceIP.cc \
318 ACLSourceIP.h \
319 ACLStrategised.cc \
320 ACLStrategised.h \
321 ACLStrategy.h \
322 ACLStringData.cc \
323 ACLStringData.h \
324 ACLTime.cc \
325 ACLTime.h \
326 ACLTimeData.cc \
327 ACLTimeData.h \
328 ACLUrl.cc \
329 ACLUrl.h \
330 ACLUrlPath.cc \
331 ACLUrlPath.h \
332 ACLUrlPort.cc \
333 ACLUrlPort.h \
334 ACLUserData.cc \
335 ACLUserData.h
336
337 squid_SOURCES = \
338 access_log.cc \
339 AccessLogEntry.h \
340 acl.cc \
341 acl_noncore.cc \
342 ACL.h \
343 ACLChecklist.cc \
344 ACLChecklist.h \
345 $(squid_ACLSOURCES) \
346 asn.cc \
347 authenticate.cc \
348 authenticate.h \
349 AuthConfig.cc \
350 AuthConfig.h \
351 AuthScheme.cc \
352 AuthScheme.h \
353 AuthUser.cc \
354 AuthUserRequest.cc \
355 cache_cf.cc \
356 CacheDigest.cc \
357 cache_manager.cc \
358 carp.cc \
359 cbdata.cc \
360 client_db.cc \
361 client_side.cc \
362 client_side.h \
363 client_side_reply.cc \
364 client_side_reply.h \
365 client_side_request.cc \
366 client_side_request.h \
367 BodyReader.cc \
368 BodyReader.h \
369 ClientRequestContext.h \
370 clientStream.cc \
371 clientStream.h \
372 comm.cc \
373 comm.h \
374 CommIO.h \
375 comm_select.cc \
376 comm_poll.cc \
377 comm_epoll.cc \
378 comm_kqueue.cc \
379 CommRead.h \
380 ConfigOption.cc \
381 ConfigParser.cc \
382 ConfigParser.h \
383 ConnectionDetail.h \
384 debug.cc \
385 Debug.h \
386 defines.h \
387 $(DELAY_POOL_SOURCE) \
388 disk.cc \
389 $(DISKIO_SOURCE) \
390 dlink.h \
391 $(DNSSOURCE) \
392 enums.h \
393 errorpage.cc \
394 $(ESI_SOURCE) \
395 ETag.cc \
396 event.cc \
397 external_acl.cc \
398 ExternalACL.h \
399 ExternalACLEntry.cc \
400 ExternalACLEntry.h \
401 fd.cc \
402 fde.cc \
403 fde.h \
404 filemap.cc \
405 forward.cc \
406 forward.h \
407 fqdncache.cc \
408 ftp.cc \
409 Generic.h \
410 globals.h \
411 gopher.cc \
412 helper.cc \
413 helper.h \
414 HierarchyLogEntry.h \
415 $(HTCPSOURCE) \
416 http.cc \
417 http.h \
418 HttpStatusLine.cc \
419 HttpStatusLine.h \
420 HttpHdrCc.cc \
421 HttpHdrRange.cc \
422 HttpHdrSc.cc \
423 HttpHdrSc.h \
424 HttpHdrScTarget.cc \
425 HttpHdrScTarget.h \
426 HttpHdrContRange.cc \
427 HttpHdrContRange.h \
428 HttpHeader.cc \
429 HttpHeader.h \
430 HttpHeaderMask.h \
431 HttpHeaderRange.h \
432 HttpHeaderTools.cc \
433 HttpBody.cc \
434 HttpMsg.cc \
435 HttpMsg.h \
436 HttpReply.cc \
437 HttpReply.h \
438 HttpRequest.cc \
439 HttpRequest.h \
440 HttpRequestMethod.cc \
441 HttpRequestMethod.h \
442 HttpVersion.h \
443 icmp.cc \
444 ICP.h \
445 icp_v2.cc \
446 icp_v3.cc \
447 $(IDENT_SOURCE) \
448 int.cc \
449 internal.cc \
450 ipc.cc \
451 ipcache.cc \
452 IPInterception.cc \
453 IPInterception.h \
454 $(LEAKFINDERSOURCE) \
455 list.cc \
456 logfile.cc \
457 main.cc \
458 mem.cc \
459 mem_node.cc \
460 mem_node.h \
461 Mem.h \
462 MemBuf.cc \
463 MemObject.cc \
464 MemObject.h \
465 mime.cc \
466 multicast.cc \
467 neighbors.cc \
468 net_db.cc \
469 Packer.cc \
470 Packer.h \
471 Parsing.cc \
472 Parsing.h \
473 $(XPROF_STATS_SOURCE) \
474 pconn.cc \
475 pconn.h \
476 peer_digest.cc \
477 peer_select.cc \
478 PeerSelectState.h \
479 PingData.h \
480 protos.h \
481 redirect.cc \
482 referer.cc \
483 refresh.cc \
484 send-announce.cc \
485 $(SNMP_SOURCE) \
486 squid.h \
487 SquidNew.cc \
488 tunnel.cc \
489 $(SSL_SOURCE) \
490 stat.cc \
491 StatHist.cc \
492 String.cc \
493 stmem.cc \
494 stmem.h \
495 store.cc \
496 Store.h \
497 StoreFileSystem.cc \
498 StoreFileSystem.h \
499 StoreHashIndex.h \
500 store_io.cc \
501 StoreIOBuffer.h \
502 StoreIOState.cc \
503 StoreIOState.h \
504 store_client.cc \
505 StoreClient.h \
506 store_digest.cc \
507 store_dir.cc \
508 store_key_md5.cc \
509 store_log.cc \
510 store_rebuild.cc \
511 store_swapin.cc \
512 store_swapmeta.cc \
513 store_swapout.cc \
514 StoreMeta.cc \
515 StoreMeta.h \
516 StoreMetaMD5.cc \
517 StoreMetaMD5.h \
518 StoreMetaSTD.cc \
519 StoreMetaSTD.h \
520 StoreMetaUnpacker.cc \
521 StoreMetaUnpacker.h \
522 StoreMetaURL.cc \
523 StoreMetaURL.h \
524 StoreMetaVary.cc \
525 StoreMetaVary.h \
526 StoreSearch.h \
527 StoreSwapLogData.cc \
528 StoreSwapLogData.h \
529 Server.cc \
530 Server.h \
531 structs.h \
532 SwapDir.cc \
533 SwapDir.h \
534 time.cc \
535 tools.cc \
536 typedefs.h \
537 $(UNLINKDSOURCE) \
538 url.cc \
539 URL.h \
540 URLScheme.cc \
541 URLScheme.h \
542 urn.cc \
543 useragent.cc \
544 wais.cc \
545 wccp.cc \
546 whois.cc \
547 wordlist.cc \
548 wordlist.h \
549 $(WIN32_SOURCE)
550
551 noinst_HEADERS = ACLChecklist.cci \
552 AuthUser.cci \
553 AuthUser.h \
554 AuthUserRequest.h \
555 client_side_request.cci \
556 MemBuf.cci \
557 MemBuf.h \
558 Store.cci \
559 StoreEntryStream.h \
560 String.cci \
561 SquidString.h
562
563 nodist_squid_SOURCES = \
564 repl_modules.cc \
565 cf_parser.h \
566 globals.cc \
567 string_arrays.c
568
569 squid_LDADD = \
570 -L../lib \
571 @XTRA_OBJS@ \
572 @DISK_LINKOBJS@ \
573 @REPL_OBJS@ \
574 @STORE_LINKOBJS@ \
575 @STORE_OBJS@ \
576 @DISK_LIBS@ \
577 @AUTH_LINKOBJS@ \
578 @AUTH_OBJS@ \
579 @CRYPTLIB@ \
580 @REGEXLIB@ \
581 @SNMPLIB@ \
582 @ICAP_LIBS@ \
583 @LIB_MALLOC@ \
584 @SSLLIB@ \
585 -lmiscutil \
586 @XTRA_LIBS@ \
587 @EPOLL_LIBS@ \
588 @MINGW_LIBS@
589 squid_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a @STORE_OBJS@ @STORE_LINKOBJS@ \
590 @DISK_LIBS@ \
591 @DISK_LINKOBJS@ \
592 @REPL_OBJS@ \
593 @AUTH_LINKOBJS@ \
594 @AUTH_OBJS@ \
595 @ICAP_LIBS@
596
597 ICAP_libicap_a_SOURCES = \
598 ICAP/ChunkedCodingParser.cc \
599 ICAP/ChunkedCodingParser.h \
600 ICAP/ICAPClient.cc \
601 ICAP/ICAPClient.h \
602 ICAP/ICAPClientReqmodPrecache.cc \
603 ICAP/ICAPClientReqmodPrecache.h \
604 ICAP/ICAPClientRespmodPrecache.cc \
605 ICAP/ICAPClientRespmodPrecache.h \
606 ICAP/ICAPConfig.cc \
607 ICAP/ICAPConfig.h \
608 ICAP/ICAPElements.cc \
609 ICAP/ICAPElements.h \
610 ICAP/ICAPModXact.cc \
611 ICAP/ICAPModXact.h \
612 ICAP/ICAPOptions.cc \
613 ICAP/ICAPOptions.h \
614 ICAP/ICAPOptXact.cc \
615 ICAP/ICAPOptXact.h \
616 ICAP/ICAPServiceRep.cc \
617 ICAP/ICAPServiceRep.h \
618 ICAP/ICAPXaction.cc \
619 ICAP/ICAPXaction.h \
620 ICAP/MsgPipe.cc \
621 ICAP/MsgPipe.h \
622 ICAP/MsgPipeData.h \
623 ICAP/MsgPipeEnd.h \
624 ICAP/MsgPipeSink.h \
625 ICAP/MsgPipeSource.h \
626 ICAP/TextException.cc \
627 ICAP/TextException.h
628
629
630 unlinkd_SOURCES = unlinkd.cc SquidNew.cc
631 unlinkd_CXXFLAGS = -DUNLINK_DAEMON
632
633 pinger_SOURCES = \
634 pinger.cc \
635 debug.cc \
636 time.cc \
637 SquidNew.cc
638
639 dnsserver_SOURCES = dnsserver.cc SquidNew.cc
640 recv_announce_SOURCES = recv-announce.cc SquidNew.cc
641
642 ## What requires what..
643 ## many things want ACLChecklist.cc
644 ## ACLChecklist.cc wants AuthUserRequest.cc
645 ## ACLChecklist.cc wants AuthScheme.cc
646 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
647 ## ACLProxyAuth.cc wants ACLUserData
648 ## ACLProxyAuth.cc wants ACLRegexData
649 ## cache_cf.cc wants AuthConfig
650 ## cache_cf.cc wants Swapdir
651 ## client_side wants client_db
652 ## client_db wants SNMP_SOURCE
653 ## snmp_core wants ACLStringData
654 ## SwapDir wants ConfigOption
655 ufsdump_SOURCES = \
656 debug.cc \
657 int.cc \
658 mem.cc \
659 store_key_md5.cc \
660 StoreMeta.cc \
661 StoreMetaMD5.cc \
662 StoreMetaSTD.cc \
663 StoreMetaUnpacker.cc \
664 StoreMetaURL.cc \
665 StoreMetaVary.cc \
666 String.cc \
667 time.cc \
668 ufsdump.cc \
669 url.cc \
670 BodyReader.cc \
671 ConfigParser.cc \
672 store.cc \
673 StoreFileSystem.cc \
674 StoreSwapLogData.cc \
675 StoreSwapLogData.h \
676 access_log.cc \
677 acl.cc \
678 acl_noncore.cc \
679 ACLChecklist.cc \
680 ACLProxyAuth.cc \
681 ACLUserData.cc \
682 ACLRegexData.cc \
683 ACLStringData.cc \
684 authenticate.cc \
685 AuthUser.cc \
686 AuthUserRequest.cc \
687 AuthScheme.cc \
688 AuthConfig.cc \
689 cache_cf.cc \
690 cache_manager.cc \
691 CacheDigest.cc \
692 carp.cc \
693 cbdata.cc \
694 client_db.cc \
695 client_side.cc \
696 client_side_reply.cc \
697 client_side_request.cc \
698 client_side_request.h \
699 clientStream.cc \
700 clientStream.h \
701 comm.cc \
702 comm.h \
703 CommIO.h \
704 comm_select.cc \
705 comm_poll.cc \
706 comm_epoll.cc \
707 comm_kqueue.cc \
708 ConfigOption.cc \
709 defines.h \
710 $(DELAY_POOL_SOURCE) \
711 disk.cc \
712 $(DNSSOURCE) \
713 enums.h \
714 errorpage.cc \
715 $(ESI_SOURCE) \
716 ETag.cc \
717 event.cc \
718 external_acl.cc \
719 ExternalACLEntry.cc \
720 fd.cc \
721 fde.cc \
722 fde.h \
723 filemap.cc \
724 forward.cc \
725 forward.h \
726 fqdncache.cc \
727 ftp.cc \
728 gopher.cc \
729 helper.cc \
730 $(HTCPSOURCE) \
731 http.cc \
732 HttpStatusLine.cc \
733 HttpHdrCc.cc \
734 HttpHdrRange.cc \
735 HttpHdrSc.cc \
736 HttpHdrScTarget.cc \
737 HttpHdrContRange.cc \
738 HttpHeader.cc \
739 HttpHeaderTools.cc \
740 HttpBody.cc \
741 HttpMsg.cc \
742 HttpReply.cc \
743 HttpRequest.cc \
744 HttpRequestMethod.cc \
745 icmp.cc \
746 icp_v2.cc \
747 icp_v3.cc \
748 $(IDENT_SOURCE) \
749 internal.cc \
750 ipc.cc \
751 ipcache.cc \
752 IPInterception.cc \
753 IPInterception.h \
754 $(LEAKFINDERSOURCE) \
755 list.cc \
756 logfile.cc \
757 mem_node.cc \
758 mem_node.h \
759 Mem.h \
760 MemBuf.cc \
761 MemObject.cc \
762 MemObject.h \
763 mime.cc \
764 multicast.cc \
765 neighbors.cc \
766 net_db.cc \
767 Packer.cc \
768 Parsing.cc \
769 $(XPROF_STATS_SOURCE) \
770 pconn.cc \
771 peer_digest.cc \
772 peer_select.cc \
773 protos.h \
774 redirect.cc \
775 referer.cc \
776 refresh.cc \
777 send-announce.cc \
778 $(SNMP_SOURCE) \
779 squid.h \
780 $(SSL_SOURCE) \
781 tunnel.cc \
782 Server.cc \
783 SquidNew.cc \
784 stat.cc \
785 StatHist.cc \
786 stmem.cc \
787 store_io.cc \
788 StoreIOBuffer.h \
789 StoreIOState.cc \
790 store_client.cc \
791 StoreClient.h \
792 store_digest.cc \
793 store_dir.cc \
794 store_log.cc \
795 store_rebuild.cc \
796 store_swapin.cc \
797 store_swapmeta.cc \
798 store_swapout.cc \
799 structs.h \
800 SwapDir.cc \
801 tools.cc \
802 typedefs.h \
803 $(UNLINKDSOURCE) \
804 URLScheme.cc \
805 urn.cc \
806 useragent.cc \
807 wais.cc \
808 wccp.cc \
809 whois.cc \
810 wordlist.cc \
811 $(WIN32_SOURCE)
812 ufsdump_LDADD = \
813 -L../lib \
814 @XTRA_OBJS@ \
815 @REPL_OBJS@ \
816 @STORE_OBJS@ \
817 @AUTH_OBJS@ \
818 @CRYPTLIB@ \
819 @REGEXLIB@ \
820 @SNMPLIB@ \
821 @ICAP_LIBS@ \
822 @LIB_MALLOC@ \
823 @SSLLIB@ \
824 -lmiscutil \
825 @XTRA_LIBS@ \
826 @EPOLL_LIBS@ \
827 @MINGW_LIBS@
828 ufsdump_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a
829 nodist_ufsdump_SOURCES = \
830 repl_modules.cc \
831 cf_parser.h \
832 globals.cc \
833 string_arrays.c
834
835 nodist_pinger_SOURCES = \
836 globals.cc
837
838 BUILT_SOURCES = \
839 cf_gen_defines.h \
840 cf_parser.h \
841 globals.cc \
842 string_arrays.c \
843 repl_modules.cc
844
845 sysconf_DATA = \
846 squid.conf.default \
847 mime.conf.default
848
849 data_DATA = \
850 mib.txt
851
852 LDADD = -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@
853
854 EXTRA_DIST = \
855 cf_gen_defines \
856 cf.data.pre \
857 mk-globals-c.pl \
858 mk-globals-c.awk \
859 mk-string-arrays.pl \
860 mk-string-arrays.awk \
861 repl_modules.sh \
862 mib.txt \
863 mime.conf.default
864
865 libAIO_a_SOURCES = \
866 DiskIO/AIO/async_io.h \
867 DiskIO/AIO/AIODiskFile.cc \
868 DiskIO/AIO/AIODiskFile.h \
869 DiskIO/AIO/AIODiskIOStrategy.cc \
870 DiskIO/AIO/AIODiskIOStrategy.h \
871 DiskIO/AIO/AIODiskIOModule.h
872
873 libBlocking_a_SOURCES = \
874 DiskIO/Blocking/BlockingFile.cc \
875 DiskIO/Blocking/BlockingFile.h \
876 DiskIO/Blocking/BlockingIOStrategy.cc \
877 DiskIO/Blocking/BlockingIOStrategy.h \
878 DiskIO/Blocking/BlockingDiskIOModule.h
879
880 libDiskDaemon_a_SOURCES = \
881 DiskIO/DiskDaemon/DiskdFile.cc \
882 DiskIO/DiskDaemon/DiskdFile.h \
883 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
884 DiskIO/DiskDaemon/DiskdIOStrategy.h \
885 DiskIO/DiskDaemon/diomsg.h \
886 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h
887
888 libDiskThreads_a_SOURCES = \
889 DiskIO/DiskThreads/aiops.cc \
890 DiskIO/DiskThreads/async_io.cc \
891 DiskIO/DiskThreads/DiskThreads.h \
892 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
893 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
894 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
895 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
896 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
897
898 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
899 DiskIO_DiskDaemon_diskd_LDADD = $(top_builddir)/lib/libmiscutil.a @XTRA_LIBS@
900
901
902 DEFAULT_HTTP_PORT = @CACHE_HTTP_PORT@
903 DEFAULT_ICP_PORT = @CACHE_ICP_PORT@
904 DEFAULT_PREFIX = $(prefix)
905 DEFAULT_CONFIG_FILE = $(sysconfdir)/squid.conf
906 DEFAULT_MIME_TABLE = $(sysconfdir)/mime.conf
907 DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
908 DEFAULT_LOG_PREFIX = $(localstatedir)/logs
909 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
910 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
911 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
912 DEFAULT_PID_FILE = $(DEFAULT_LOG_PREFIX)/squid.pid
913 DEFAULT_SWAP_DIR = $(localstatedir)/cache
914 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
915 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
916 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_ICON_DIR = $(datadir)/icons
918 DEFAULT_ERROR_DIR = $(datadir)/errors/@ERR_DEFAULT_LANGUAGE@
919 DEFAULT_MIB_PATH = $(datadir)/mib.txt
920 DEFAULT_HOSTS = @OPT_DEFAULT_HOSTS@
921
922 DEFS = @DEFS@ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\"
923
924 $(OBJS): $(top_srcdir)/include/version.h ../include/autoconf.h
925
926 snmp_core.o snmp_agent.o: ../snmplib/libsnmp.a $(top_srcdir)/include/cache_snmp.h
927
928 globals.cc: globals.h mk-globals-c.pl
929 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@
930
931 string_arrays.c: enums.h mk-string-arrays.pl
932 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/enums.h > $@
933
934 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
935 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
936
937 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
938 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
939
940 ## If autodependency works well this is not needed anymore
941 cache_cf.o: cf_parser.h
942
943 squid.conf.default: cf_parser.h
944 $(SHELL) -c "test -f squid.conf.default || ./cf_gen cf.data"
945
946 cf_parser.h: cf.data cf_gen$(EXEEXT)
947 ./cf_gen cf.data
948
949 cf_gen_defines.h: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
950 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >cf_gen_defines.h
951
952
953 ## FIXME: generate a sed command file from configure. Then this doesn't
954 ## depend on the Makefile.
955 cf.data: cf.data.pre Makefile
956 sed "\
957 s%@DEFAULT_HTTP_PORT@%$(DEFAULT_HTTP_PORT)%g;\
958 s%@DEFAULT_ICP_PORT@%$(DEFAULT_ICP_PORT)%g;\
959 s%@DEFAULT_MIME_TABLE@%$(DEFAULT_MIME_TABLE)%g;\
960 s%@DEFAULT_DNSSERVER@%$(DEFAULT_DNSSERVER)%g;\
961 s%@DEFAULT_UNLINKD@%$(DEFAULT_UNLINKD)%g;\
962 s%@DEFAULT_PINGER@%$(DEFAULT_PINGER)%g;\
963 s%@DEFAULT_DISKD@%$(DEFAULT_DISKD)%g;\
964 s%@DEFAULT_CACHE_LOG@%$(DEFAULT_CACHE_LOG)%g;\
965 s%@DEFAULT_ACCESS_LOG@%$(DEFAULT_ACCESS_LOG)%g;\
966 s%@DEFAULT_STORE_LOG@%$(DEFAULT_STORE_LOG)%g;\
967 s%@DEFAULT_PID_FILE@%$(DEFAULT_PID_FILE)%g;\
968 s%@DEFAULT_SWAP_DIR@%$(DEFAULT_SWAP_DIR)%g;\
969 s%@DEFAULT_ICON_DIR@%$(DEFAULT_ICON_DIR)%g;\
970 s%@DEFAULT_MIB_PATH@%$(DEFAULT_MIB_PATH)%g;\
971 s%@DEFAULT_ERROR_DIR@%$(DEFAULT_ERROR_DIR)%g;\
972 s%@DEFAULT_PREFIX@%$(DEFAULT_PREFIX)%g;\
973 s%@DEFAULT_HOSTS@%$(DEFAULT_HOSTS)%g;\
974 s%@[V]ERSION@%$(VERSION)%g;"\
975 < $(srcdir)/cf.data.pre >$@
976
977 repl_modules.cc: repl_modules.sh Makefile
978 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
979
980 install-data-local: install-sysconfDATA install-dataDATA
981 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
982 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
983 else \
984 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
985 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
986 fi
987 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
988 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
989 else \
990 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
991 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
992 fi
993 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX)
994
995 uninstall-local:
996 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
997 echo "rm -f $(DESTDIR)$(DEFAULT_MIME_TABLE)"; \
998 $(RM) -f $(DESTDIR)$(DEFAULT_MIME_TABLE); \
999 fi
1000
1001 # Don't automatically uninstall config files
1002 # @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1003 # echo "rm -f $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1004 # $(RM) -f $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1005 # fi
1006
1007 DISTCLEANFILES = cf_gen_defines.h cf.data cf_parser.h squid.conf.default \
1008 globals.cc string_arrays.c repl_modules.cc
1009
1010 ##install-pinger:
1011 ## @f=$(PINGER_EXE); \
1012 ## if test -f $(libexecdir)/$$f; then \
1013 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
1014 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
1015 ## fi; \
1016 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
1017 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
1018 ## if test -f $(libexecdir)/-$$f; then \
1019 ## echo $(RM) -f $(libexecdir)/-$$f; \
1020 ## $(RM) -f $(libexecdir)/-$$f; \
1021 ## fi
1022
1023 # stock tools for unit tests - library independent versions of dlink_list
1024 # etc.
1025 # globals.cc is needed by test_tools.cc
1026 TESTSOURCES= \
1027 ../test-suite/test_tools.cc \
1028 globals.cc
1029
1030 check_PROGRAMS+= \
1031 tests/testAuth \
1032 tests/testACLMaxUserIP \
1033 tests/testBoilerplate \
1034 tests/testHeaders \
1035 tests/testHttpRequest \
1036 tests/testStore \
1037 tests/testString \
1038 tests/testURL \
1039 @STORE_TESTS@
1040
1041 tests_testAuth_SOURCES= tests/testAuth.cc tests/testMain.cc tests/testAuth.h $(TESTSOURCES) \
1042 AuthScheme.cc authenticate.cc AuthUser.cc AuthUserRequest.cc AuthConfig.cc \
1043 ConfigParser.cc \
1044 tests/stub_acl.cc tests/stub_cache_cf.cc \
1045 tests/stub_helper.cc cbdata.cc String.cc tests/stub_cache_manager.cc \
1046 tests/stub_store.cc HttpHeaderTools.cc HttpHeader.cc acl.cc event.cc mem.cc \
1047 MemBuf.cc HttpHdrContRange.cc Packer.cc ACLChecklist.cc HttpHdrCc.cc HttpHdrSc.cc \
1048 HttpHdrScTarget.cc url.cc ACLProxyAuth.cc ACLRegexData.cc ACLUserData.cc \
1049 StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
1050 tests/stub_HttpRequest.cc tests/stub_DelayId.cc \
1051 tests/stub_MemObject.cc mem_node.cc \
1052 stmem.cc \
1053 tests/stub_comm.cc \
1054 tests/stub_http.cc \
1055 HttpMsg.cc \
1056 HttpRequestMethod.cc \
1057 tests/stub_mime.cc \
1058 tests/stub_access_log.cc \
1059 time.cc \
1060 URLScheme.cc \
1061 wordlist.cc
1062 ## acl.cc cache_cf.cc tools.cc \
1063 ## helper.cc String.cc cbdata.cc HttpHeaderTools.cc store.cc cache_manager.cc \
1064 ## HttpHeader.cc url.cc mem.cc HttpRequest.cc Packer.cc access_log.cc \
1065 ## MemBuf.cc StatHist.cc logfile.cc
1066
1067 tests_testAuth_LDADD= \
1068 @AUTH_LINKOBJS@ @AUTH_OBJS@ \
1069 -L../lib -lmiscutil \
1070 @REGEXLIB@ \
1071 @SQUID_CPPUNIT_LA@ \
1072 @SSLLIB@
1073 tests_testAuth_LDFLAGS = $(LIBADD_DL)
1074 tests_testAuth_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
1075 @AUTH_LINKOBJS@ \
1076 @AUTH_OBJS@ \
1077 @SQUID_CPPUNIT_LA@
1078
1079 ## Tests for the ACLMaxUserIP class
1080 ## acl needs wordlist. wordlist needs MemBug
1081 ## MemBuf needs mem, MemBuf needs event,
1082 ## event needs cbdata.
1083 ## ACLMaxUserUP needs authenticate.cc
1084 ## authenticate.cc needs AuthUser, AuthScheme, AuthUserRequest, AuthConfig
1085 ## ACLMaxUserIP needs ACLChecklist
1086 ## AuthUser request needs HttpHeader, which brings in
1087 ## ETag.cc \
1088 ## HttpHeader.cc \
1089 ## HttpHeaderTools.cc \
1090 ## HttpHdrContRange.cc \
1091 ## HttpHdrCc.cc \
1092 ## HttpHdrRange.cc \
1093 ## HttpHdrSc.cc \
1094 ## HttpHdrScTarget.cc \
1095 ## Packer.cc \
1096 ## StatHist.cc \
1097 ## String.cc \
1098 tests_testACLMaxUserIP_SOURCES= \
1099 acl.cc \
1100 ACLChecklist.cc \
1101 ACLMaxUserIP.cc \
1102 ACLProxyAuth.cc \
1103 ACLRegexData.cc \
1104 ACLUserData.cc \
1105 authenticate.cc \
1106 AuthConfig.cc \
1107 AuthUser.cc \
1108 AuthUserRequest.cc \
1109 AuthScheme.cc \
1110 cbdata.cc \
1111 ConfigParser.cc \
1112 event.cc \
1113 ETag.cc \
1114 HttpHeader.cc \
1115 HttpHeaderTools.cc \
1116 HttpHdrContRange.cc \
1117 HttpHdrRange.cc \
1118 HttpHdrCc.cc \
1119 HttpHdrSc.cc \
1120 HttpHdrScTarget.cc \
1121 mem_node.cc \
1122 Packer.cc \
1123 StatHist.cc \
1124 stmem.cc \
1125 String.cc \
1126 tests/stub_cache_manager.cc \
1127 tests/stub_comm.cc \
1128 tests/stub_DelayId.cc \
1129 tests/stub_MemObject.cc \
1130 tests/stub_store.cc \
1131 tests/testACLMaxUserIP.cc \
1132 tests/testACLMaxUserIP.h \
1133 tests/testMain.cc \
1134 time.cc \
1135 mem.cc \
1136 MemBuf.cc \
1137 wordlist.cc \
1138 $(TESTSOURCES)
1139 tests_testACLMaxUserIP_LDADD= \
1140 -L../lib -lmiscutil \
1141 @REGEXLIB@ \
1142 @SQUID_CPPUNIT_LA@ \
1143 @SSLLIB@
1144 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1145 tests_testACLMaxUserIP_DEPENDENCIES = \
1146 @SQUID_CPPUNIT_LA@
1147
1148 ## a demonstration test that does nothing but shows the salient points
1149 ## involved in writing tests.
1150 tests_testBoilerplate_SOURCES = \
1151 tests/testBoilerplate.cc \
1152 tests/testMain.cc \
1153 tests/testBoilerplate.h \
1154 $(TESTSOURCES) \
1155 time.cc
1156 tests_testBoilerplate_LDADD= \
1157 -L../lib -lmiscutil \
1158 @SQUID_CPPUNIT_LA@ \
1159 @SSLLIB@
1160 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1161 tests_testBoilerplate_DEPENDENCIES = \
1162 @SQUID_CPPUNIT_LA@
1163
1164 ## test headers checks that individual headers can be parsed with no dependencies.
1165 ## as such, it needs a new .cc file for each header it parses, so that they
1166 ## can be #included with no baggage. If the binary links, the test passed.
1167 ## We could write a script to pull out the compiler configuration from autoconf,
1168 ## but this is easier to understand and more robust against changes in autoconf.
1169 ## RBC 20060422.
1170 HEADERS_TO_TEST = \
1171 tests/testHeader_ACL.cc \
1172 tests/testHeader_ConfigParser.cc \
1173 tests/testHeader_client_side_request.cc \
1174 tests/testHeader_dlink.cc \
1175 tests/testHeader_HttpHeader.cc \
1176 tests/testHeader_HttpHeaderRange.cc \
1177 tests/testHeader_HttpReply.cc \
1178 tests/testHeader_HttpRequestMethod.cc \
1179 tests/testHeader_StoreEntryStream.cc \
1180 tests/testHeader_URL.cc \
1181 tests/testHeader_URLScheme.cc \
1182 tests/testHeader_wordlist.cc
1183 tests_testHeaders_SOURCES= tests/testMain.cc $(HEADERS_TO_TEST)
1184 tests_testHeaders_LDADD= \
1185 @SQUID_CPPUNIT_LA@ \
1186 @SSLLIB@
1187 tests_testHeaders_LDFLAGS = $(LIBADD_DL)
1188 tests_testHeaders_DEPENDENCIES = \
1189 @SQUID_CPPUNIT_LA@
1190
1191
1192 ## Tests of the HttpRequest module.
1193 tests_testHttpRequest_SOURCES = \
1194 debug.cc \
1195 globals.cc \
1196 HttpRequest.cc \
1197 HttpRequestMethod.cc \
1198 mem.cc \
1199 String.cc \
1200 tests/testHttpRequest.cc \
1201 tests/testHttpRequestMethod.cc \
1202 tests/testMain.cc \
1203 time.cc \
1204 access_log.cc \
1205 acl.cc \
1206 acl_noncore.cc \
1207 ACLChecklist.cc \
1208 ACLProxyAuth.cc \
1209 ACLStringData.cc \
1210 ACLRegexData.cc \
1211 ACLUserData.cc \
1212 AuthConfig.cc \
1213 authenticate.cc \
1214 AuthUser.cc \
1215 AuthUserRequest.cc \
1216 AuthScheme.cc \
1217 BodyReader.cc \
1218 cache_manager.cc \
1219 cache_cf.cc \
1220 CacheDigest.cc \
1221 carp.cc \
1222 cbdata.cc \
1223 client_db.cc \
1224 client_side.cc \
1225 client_side_reply.cc \
1226 client_side_request.cc \
1227 clientStream.cc \
1228 comm.cc \
1229 comm_select.cc \
1230 comm_poll.cc \
1231 comm_epoll.cc \
1232 comm_kqueue.cc \
1233 ConfigOption.cc \
1234 ConfigParser.cc \
1235 $(DELAY_POOL_SOURCE) \
1236 disk.cc \
1237 $(DNSSOURCE) \
1238 event.cc \
1239 errorpage.cc \
1240 $(ESI_SOURCE) \
1241 ETag.cc \
1242 external_acl.cc \
1243 ExternalACLEntry.cc \
1244 fd.cc \
1245 fde.cc \
1246 forward.cc \
1247 fqdncache.cc \
1248 ftp.cc \
1249 gopher.cc \
1250 helper.cc \
1251 $(HTCPSOURCE) \
1252 http.cc \
1253 HttpBody.cc \
1254 HttpHeader.cc \
1255 HttpHeaderTools.cc \
1256 HttpHdrCc.cc \
1257 HttpHdrContRange.cc \
1258 HttpHdrRange.cc \
1259 HttpHdrSc.cc \
1260 HttpHdrScTarget.cc \
1261 HttpMsg.cc \
1262 HttpReply.cc \
1263 HttpStatusLine.cc \
1264 icmp.cc \
1265 icp_v2.cc \
1266 icp_v3.cc \
1267 $(IDENT_SOURCE) \
1268 ipc.cc \
1269 ipcache.cc \
1270 IPInterception.cc \
1271 int.cc \
1272 internal.cc \
1273 list.cc \
1274 logfile.cc \
1275 multicast.cc \
1276 mem_node.cc \
1277 MemBuf.cc \
1278 MemObject.cc \
1279 mime.cc \
1280 neighbors.cc \
1281 net_db.cc \
1282 Packer.cc \
1283 Parsing.cc \
1284 pconn.cc \
1285 peer_digest.cc \
1286 peer_select.cc \
1287 redirect.cc \
1288 referer.cc \
1289 refresh.cc \
1290 Server.cc \
1291 $(SNMP_SOURCE) \
1292 $(SSL_SOURCE) \
1293 stat.cc \
1294 StatHist.cc \
1295 stmem.cc \
1296 store.cc \
1297 store_client.cc \
1298 store_digest.cc \
1299 store_dir.cc \
1300 store_io.cc \
1301 store_key_md5.cc \
1302 store_log.cc \
1303 store_rebuild.cc \
1304 store_swapin.cc \
1305 store_swapmeta.cc \
1306 store_swapout.cc \
1307 StoreFileSystem.cc \
1308 StoreIOState.cc \
1309 StoreMeta.cc \
1310 StoreMetaMD5.cc \
1311 StoreMetaSTD.cc \
1312 StoreMetaUnpacker.cc \
1313 StoreMetaURL.cc \
1314 StoreMetaVary.cc \
1315 StoreSwapLogData.cc \
1316 tools.cc \
1317 tunnel.cc \
1318 SwapDir.cc \
1319 url.cc \
1320 URLScheme.cc \
1321 urn.cc \
1322 useragent.cc \
1323 wais.cc \
1324 whois.cc \
1325 wordlist.cc
1326 nodist_tests_testHttpRequest_SOURCES = \
1327 repl_modules.cc \
1328 string_arrays.c
1329 tests_testHttpRequest_LDADD = \
1330 @REPL_OBJS@ \
1331 @ICAP_LIBS@ \
1332 @REGEXLIB@ \
1333 @SSLLIB@ \
1334 -L../lib -lmiscutil \
1335 @XTRA_LIBS@ \
1336 @SQUID_CPPUNIT_LA@ \
1337 @SNMPLIB@
1338 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
1339 tests_testHttpRequest_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
1340 @REPL_OBJS@ \
1341 @SQUID_CPPUNIT_LA@ \
1342 @ICAP_LIBS@
1343
1344
1345 # TODO:mime.cc drags in HttpReply.cc
1346 # delay pools need client_side_request.cc
1347 # store_key_md5 wants the method.
1348 STORE_TEST_SOURCES=\
1349 $(TESTSOURCES) \
1350 $(DELAY_POOL_SOURCE) \
1351 CacheDigest.cc \
1352 ConfigParser.cc \
1353 HttpMsg.cc \
1354 store_dir.cc \
1355 store.cc \
1356 HttpRequestMethod.cc \
1357 store_key_md5.cc \
1358 string_arrays.c \
1359 Parsing.cc \
1360 ConfigOption.cc \
1361 SwapDir.cc \
1362 AuthScheme.cc authenticate.cc AuthUser.cc AuthUserRequest.cc AuthConfig.cc \
1363 tests/stub_acl.cc tests/stub_cache_cf.cc \
1364 tests/stub_helper.cc cbdata.cc String.cc tests/stub_cache_manager.cc \
1365 tests/stub_comm.cc \
1366 tests/stub_client_side_request.cc \
1367 tests/stub_http.cc \
1368 mem_node.cc \
1369 stmem.cc \
1370 tests/stub_mime.cc \
1371 HttpHeaderTools.cc HttpHeader.cc acl.cc event.cc mem.cc \
1372 acl_noncore.cc \
1373 MemBuf.cc HttpHdrContRange.cc Packer.cc ACLChecklist.cc HttpHdrCc.cc HttpHdrSc.cc \
1374 HttpHdrScTarget.cc url.cc ACLProxyAuth.cc ACLRegexData.cc ACLUserData.cc \
1375 StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
1376 tests/stub_HttpRequest.cc tests/stub_access_log.cc \
1377 refresh.cc \
1378 tests/stub_store_client.cc \
1379 tests/stub_tools.cc \
1380 time.cc \
1381 URLScheme.cc \
1382 wordlist.cc
1383
1384 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
1385 ## first line - what we are testing.
1386 tests_testStore_SOURCES= \
1387 tests/stub_store_swapout.cc \
1388 tests/testMain.cc \
1389 tests/stub_MemObject.cc \
1390 tests/testStore.cc \
1391 tests/testStore.h \
1392 tests/testStoreEntryStream.cc \
1393 tests/testStoreEntryStream.h \
1394 tests/testStoreController.cc \
1395 tests/testStoreController.h \
1396 tests/testStoreHashIndex.cc \
1397 tests/testStoreHashIndex.h \
1398 tests/TestSwapDir.cc \
1399 tests/TestSwapDir.h \
1400 tests/stub_fd.cc \
1401 tests/stub_HttpReply.cc \
1402 $(STORE_TEST_SOURCES)
1403
1404 tests_testStore_LDADD= \
1405 -L../lib -lmiscutil \
1406 @REGEXLIB@ \
1407 @SQUID_CPPUNIT_LA@ \
1408 @SSLLIB@
1409 tests_testStore_LDFLAGS = $(LIBADD_DL)
1410 tests_testStore_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
1411 @SQUID_CPPUNIT_LA@
1412
1413 # string needs mem.cc. mem.cc wants cache_manage
1414 tests_testString_SOURCES= \
1415 mem.cc \
1416 String.cc \
1417 tests/stub_cache_manager.cc \
1418 tests/testMain.cc \
1419 tests/testString.cc \
1420 tests/testString.h \
1421 $(TESTSOURCES) \
1422 time.cc
1423
1424 tests_testString_LDADD= \
1425 -L../lib -lmiscutil \
1426 @REGEXLIB@ \
1427 @SQUID_CPPUNIT_LA@ \
1428 @SSLLIB@
1429 tests_testString_LDFLAGS = $(LIBADD_DL)
1430 tests_testString_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
1431 @SQUID_CPPUNIT_LA@
1432
1433 SWAP_TEST_SOURCES = \
1434 tests/stub_store_rebuild.cc \
1435 tests/stub_internal.cc \
1436 fd.cc \
1437 disk.cc \
1438 filemap.cc \
1439 HttpBody.cc \
1440 HttpReply.cc \
1441 HttpStatusLine.cc \
1442 int.cc \
1443 list.cc \
1444 MemObject.cc \
1445 StoreSwapLogData.cc \
1446 StoreIOState.cc \
1447 StoreMeta.cc \
1448 StoreMetaMD5.cc \
1449 StoreMetaSTD.cc \
1450 StoreMetaUnpacker.cc \
1451 StoreMetaURL.cc \
1452 StoreMetaVary.cc \
1453 StoreFileSystem.cc \
1454 store_io.cc \
1455 store_swapout.cc \
1456 store_swapmeta.cc \
1457 unlinkd.cc \
1458 $(STORE_TEST_SOURCES) \
1459 $(DISKIO_SOURCE)
1460
1461 SWAP_TEST_LDADD = \
1462 DiskIO/Blocking/BlockingDiskIOModule.o \
1463 repl/lru/store_repl_lru.o \
1464 @REGEXLIB@ \
1465 @STORE_LINKOBJS@ \
1466 @STORE_OBJS@ \
1467 @REPL_OBJS@ \
1468 @DISK_LIBS@ \
1469 -L../lib -lmiscutil \
1470 @SQUID_CPPUNIT_LA@
1471 SWAP_TEST_DS =\
1472 $(top_builddir)/lib/libmiscutil.a \
1473 DiskIO/Blocking/BlockingDiskIOModule.o \
1474 repl/lru/store_repl_lru.o \
1475 repl_modules.o \
1476 @DISK_LIBS@ \
1477 @STORE_LINKOBJS@ \
1478 @STORE_OBJS@ \
1479 @REPL_OBJS@ \
1480 @SQUID_CPPUNIT_LA@
1481
1482 tests_testUfs_SOURCES= tests/testUfs.cc \
1483 tests/testMain.cc \
1484 tests/testUfs.h \
1485 $(SWAP_TEST_SOURCES)
1486 tests_testUfs_LDADD= \
1487 $(SWAP_TEST_LDADD) \
1488 @SSLLIB@
1489 tests_testUfs_LDFLAGS = $(LIBADD_DL)
1490 tests_testUfs_DEPENDENCIES = \
1491 $(SWAP_TEST_DS)
1492
1493 tests_testCoss_SOURCES= tests/testCoss.cc \
1494 tests/testMain.cc \
1495 tests/testCoss.h \
1496 $(SWAP_TEST_SOURCES)
1497 tests_testCoss_LDADD= \
1498 $(SWAP_TEST_LDADD) \
1499 @SSLLIB@
1500 tests_testCoss_LDFLAGS = $(LIBADD_DL)
1501 tests_testCoss_DEPENDENCIES = \
1502 $(SWAP_TEST_DS)
1503
1504 tests_testNull_SOURCES= tests/testNull.cc \
1505 tests/testMain.cc \
1506 tests/testNull.h \
1507 $(SWAP_TEST_SOURCES)
1508 tests_testNull_LDADD= \
1509 $(SWAP_TEST_LDADD) \
1510 @SSLLIB@
1511 tests_testNull_LDFLAGS = $(LIBADD_DL)
1512 tests_testNull_DEPENDENCIES = \
1513 $(SWAP_TEST_DS)
1514
1515 ## Tests of the URL module.
1516 ## TODO: Trim this down once the insanity is over.
1517 tests_testURL_SOURCES = \
1518 debug.cc \
1519 url.cc \
1520 URLScheme.cc \
1521 globals.cc \
1522 HttpRequest.cc \
1523 HttpRequestMethod.cc \
1524 mem.cc \
1525 String.cc \
1526 tests/testURL.cc \
1527 tests/testURL.h \
1528 tests/testURLScheme.cc \
1529 tests/testURLScheme.h \
1530 tests/testMain.cc \
1531 time.cc \
1532 access_log.cc \
1533 acl.cc \
1534 acl_noncore.cc \
1535 ACLChecklist.cc \
1536 ACLProxyAuth.cc \
1537 ACLStringData.cc \
1538 ACLRegexData.cc \
1539 ACLUserData.cc \
1540 AuthConfig.cc \
1541 authenticate.cc \
1542 AuthUser.cc \
1543 AuthUserRequest.cc \
1544 AuthScheme.cc \
1545 BodyReader.cc \
1546 cache_manager.cc \
1547 cache_cf.cc \
1548 CacheDigest.cc \
1549 carp.cc \
1550 cbdata.cc \
1551 client_db.cc \
1552 client_side.cc \
1553 client_side_reply.cc \
1554 client_side_request.cc \
1555 clientStream.cc \
1556 comm.cc \
1557 comm_select.cc \
1558 comm_poll.cc \
1559 comm_epoll.cc \
1560 comm_kqueue.cc \
1561 ConfigOption.cc \
1562 ConfigParser.cc \
1563 $(DELAY_POOL_SOURCE) \
1564 disk.cc \
1565 $(DNSSOURCE) \
1566 event.cc \
1567 errorpage.cc \
1568 $(ESI_SOURCE) \
1569 ETag.cc \
1570 external_acl.cc \
1571 ExternalACLEntry.cc \
1572 fd.cc \
1573 fde.cc \
1574 forward.cc \
1575 fqdncache.cc \
1576 ftp.cc \
1577 gopher.cc \
1578 helper.cc \
1579 $(HTCPSOURCE) \
1580 http.cc \
1581 HttpBody.cc \
1582 HttpHeader.cc \
1583 HttpHeaderTools.cc \
1584 HttpHdrCc.cc \
1585 HttpHdrContRange.cc \
1586 HttpHdrRange.cc \
1587 HttpHdrSc.cc \
1588 HttpHdrScTarget.cc \
1589 HttpMsg.cc \
1590 HttpReply.cc \
1591 HttpStatusLine.cc \
1592 icmp.cc \
1593 icp_v2.cc \
1594 icp_v3.cc \
1595 $(IDENT_SOURCE) \
1596 ipc.cc \
1597 ipcache.cc \
1598 IPInterception.cc \
1599 int.cc \
1600 internal.cc \
1601 list.cc \
1602 logfile.cc \
1603 multicast.cc \
1604 mem_node.cc \
1605 MemBuf.cc \
1606 MemObject.cc \
1607 mime.cc \
1608 neighbors.cc \
1609 net_db.cc \
1610 Packer.cc \
1611 Parsing.cc \
1612 pconn.cc \
1613 peer_digest.cc \
1614 peer_select.cc \
1615 redirect.cc \
1616 refresh.cc \
1617 Server.cc \
1618 $(SNMP_SOURCE) \
1619 $(SSL_SOURCE) \
1620 stat.cc \
1621 StatHist.cc \
1622 stmem.cc \
1623 store.cc \
1624 store_client.cc \
1625 store_digest.cc \
1626 store_dir.cc \
1627 store_io.cc \
1628 store_key_md5.cc \
1629 store_log.cc \
1630 store_rebuild.cc \
1631 store_swapin.cc \
1632 store_swapmeta.cc \
1633 store_swapout.cc \
1634 StoreFileSystem.cc \
1635 StoreIOState.cc \
1636 StoreMeta.cc \
1637 StoreMetaMD5.cc \
1638 StoreMetaSTD.cc \
1639 StoreMetaUnpacker.cc \
1640 StoreMetaURL.cc \
1641 StoreMetaVary.cc \
1642 StoreSwapLogData.cc \
1643 tools.cc \
1644 tunnel.cc \
1645 SwapDir.cc \
1646 urn.cc \
1647 wais.cc \
1648 whois.cc \
1649 wordlist.cc
1650 nodist_tests_testURL_SOURCES = \
1651 repl_modules.cc \
1652 string_arrays.c
1653 tests_testURL_LDADD = \
1654 @REPL_OBJS@ \
1655 @ICAP_LIBS@ \
1656 @SSLLIB@ \
1657 -L../lib -lmiscutil \
1658 @XTRA_LIBS@ \
1659 @SQUID_CPPUNIT_LA@ \
1660 @SNMPLIB@
1661 tests_testURL_LDFLAGS = $(LIBADD_DL)
1662 tests_testURL_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
1663 @REPL_OBJS@ \
1664 @SQUID_CPPUNIT_LA@ \
1665 @ICAP_LIBS@