1 ## Copyright (C) 1996-2016 The Squid Software Foundation and contributors
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
8 include $(top_srcdir)/src/Common.am
28 LOADABLE_MODULES_SOURCES = \
34 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO
35 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO
39 AUTH_LIBS= auth/libauth.la
40 AUTH_ACL_LIBS= auth/libacls.la
41 check_PROGRAMS+= tests/testACLMaxUserIP
45 SUBDIRS += http ip icmp ident log ipc mgr
46 DIST_SUBDIRS += http ip icmp ident log ipc mgr
55 DIST_SUBDIRS += ssl security
65 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
67 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
76 DIST_SUBDIRS += adaptation
82 $(top_builddir)/lib/libTrie/libTrie.a \
90 DELAY_POOL_ALL_SOURCE = \
114 ClientDelayConfig.cc \
117 if ENABLE_DELAY_POOLS
118 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
123 if ENABLE_XPROF_STATS
124 XPROF_STATS_SOURCE = ProfStats.cc
130 HTCPSOURCE = htcp.cc htcp.h
134 LEAKFINDERSOURCE = LeakFinder.cc
140 UNLINKDSOURCE = unlinkd.h unlinkd.cc
143 UNLINKDSOURCE = unlinkd.h
152 if ENABLE_WIN32SPECIFIC
153 WIN32_SOURCE = win32.cc
154 WINSVC_SOURCE = WinSvc.cc
161 IPC_SOURCE = SquidIpc.h ipc_win32.cc
163 IPC_SOURCE = SquidIpc.h ipc.cc
166 noinst_LTLIBRARIES = libsquid.la
175 ## cfgen is used when building squid
176 ## ufsdump is a debug utility, it is possibly useful for end users with cache
177 ## corruption, but at this point we do not install it.
189 cf_gen_SOURCES = cf_gen.cc
190 nodist_cf_gen_HEADER = cf_gen_defines.cci
191 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
193 cf_gen.$(OBJEXT): cf_gen_defines.cci
195 ## cf_gen.cc needs src/cf_gen_defines.cci
196 AM_CPPFLAGS += -I$(top_builddir)/src
199 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
201 # common library for all the binaries and tests. This is kindof a catch all
202 # and smaller libraries split from this are encouraged. Using lt convenience
203 # libraries, dependencies should not be a problem either.
204 libsquid_la_SOURCES = \
215 $(ACL_REGISTRATION_SOURCES) \
227 NeighborTypeDomainList.h \
240 client_side_reply.cc \
241 client_side_reply.h \
242 client_side_request.cc \
243 client_side_request.h \
248 ClientRequestContext.h \
251 clientStreamForward.h \
252 CollapsedForwarding.cc \
253 CollapsedForwarding.h \
254 CompletionDispatcher.cc \
255 CompletionDispatcher.h \
269 $(DELAY_POOL_SOURCE) \
290 ExternalACLEntry.cc \
313 HierarchyLogEntry.h \
318 HttpHeaderFieldStat.h \
327 HttpHdrContRange.cc \
334 HttpHeaderFieldInfo.h \
360 $(LEAKFINDERSOURCE) \
387 $(XPROF_STATS_SOURCE) \
392 peer_proxy_negotiate_auth.h \
393 peer_proxy_negotiate_auth.cc \
416 sbuf/StringConvert.h \
456 StoreMetaUnpacker.cc \
457 StoreMetaUnpacker.h \
458 $(STOREMETA_SOURCE) \
462 StoreSwapLogData.cc \
491 EXTRA_squid_SOURCES = \
494 $(DELAY_POOL_ALL_SOURCE) \
504 $(WIN32_ALL_SOURCE) \
505 $(LOADABLE_MODULES_SOURCES)
508 client_side_request.cci \
526 CLEANFILES += $(BUILT_SOURCES)
528 nodist_squid_SOURCES = \
538 clients/libclients.la \
539 servers/libservers.la \
541 helper/libhelper.la \
548 DiskIO/libdiskio.la \
554 security/libsecurity.la \
555 parser/libparser.la \
559 format/libformat.la \
571 $(top_builddir)/lib/libmisccontainers.la \
572 $(top_builddir)/lib/libmiscencoding.la \
573 $(top_builddir)/lib/libmiscutil.la \
582 if ENABLE_LOADABLE_MODULES
583 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
584 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
585 squid_LDFLAGS = -export-dynamic -dlopen force
586 ## when static module linking is supported and enabled:
587 ## squid_LDFLAGS = -all-static -dlopen self
589 ## LTDL headers require their local include path...
590 AM_CPPFLAGS += $(INCLTDL)
593 ## Kerberos libraries require their include path...
594 AM_CPPFLAGS += $(KRB5INCS)
597 unlinkd_SOURCES = unlinkd_daemon.cc
602 recv_announce_SOURCES = recv-announce.cc
604 ## What requires what..
605 ## many things want ACLChecklist.cc
606 ## ACLChecklist.cc wants AuthUserRequest.cc
607 ## ACLChecklist.cc wants AuthScheme.cc
608 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
609 ## ACLProxyAuth.cc wants ACLUserData
610 ## ACLProxyAuth.cc wants ACLRegexData
611 ## cache_cf.cc wants $(AUTH_LIBS)
612 ## cache_cf.cc wants store/libstore.la
613 ## cache_cf.cc wants AnyP::PortCfg
614 ## client_side wants client_db
615 ## client_db wants SNMP_SOURCE
616 ## snmp_core wants ACLStringData
617 ## tools.cc wants ip/libip.la
618 ## client_side.cc wants ip/libip.la
619 ## libbase.la wants cbdata.*
620 ## libbase.la wants MemBuf.*
634 tests/stub_StoreMeta.cc \
635 StoreMetaUnpacker.cc \
642 helper/ChildConfig.h \
643 tests/stub_HelperChildConfig.cc \
670 ufsdump_DEPENDENCIES = \
682 DiskIO/libdiskio.la \
685 nodist_ufsdump_SOURCES = \
690 squid.conf.documented \
715 include $(srcdir)/tests/Stub.list
723 mk-string-arrays.awk \
729 # Make location configure settings available to the code
730 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
732 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
734 globals.cc: globals.h mk-globals-c.awk
735 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
737 ## Generate files containing string arrays for various enums....
738 hier_code.cc: hier_code.h mk-string-arrays.awk
739 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
741 err_type.cc: err_type.h mk-string-arrays.awk
742 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
744 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
745 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
747 lookup_t.cc: lookup_t.h mk-string-arrays.awk
748 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
750 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
751 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
753 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
754 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
757 ## other generated files...
759 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
760 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
762 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
763 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
765 ## If autodependency works well this is not needed anymore
766 cache_cf.o: cf_parser.cci
768 # cf_gen builds the configuration files.
769 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
770 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
772 # squid.conf.default is built by cf_gen when making cf_parser.cci
773 squid.conf.default squid.conf.documented: cf_parser.cci
776 cf_parser.cci: cf.data cf_gen$(EXEEXT)
777 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
779 # The cf_gen_defines.cci is auto-generated and does not exist when the
780 # dependencies computed. We need to add its include files (autoconf.h) here
781 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
782 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
785 ## FIXME: generate a sed command file from configure. Then this doesn't
786 ## depend on the Makefile.
787 cf.data: cf.data.pre Makefile
789 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
790 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
791 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
792 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
793 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
794 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
795 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
796 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
797 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
798 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
799 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
800 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
801 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
802 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
803 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
804 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
805 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
806 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
807 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
808 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
809 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
810 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
811 -f $(srcdir)/cf.data.sed \
812 < $(srcdir)/cf.data.pre >$@
814 repl_modules.cc: repl_modules.sh Makefile
815 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
817 include $(top_srcdir)/doc/manuals/Substitute.am
819 squid.8: $(srcdir)/squid.8.in Makefile
820 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
823 EXTRA_DIST += squid.8.in
824 CLEANFILES += squid.8
826 install-data-local: install-sysconfDATA install-dataDATA
827 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
828 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
830 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
831 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
833 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
834 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
836 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
837 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
839 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
840 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
841 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
842 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
843 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
844 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
845 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
847 uninstall-local: squid.conf.default
848 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
849 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
851 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
854 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
855 cp $(top_srcdir)/test-suite/test_tools.cc .
857 # stock tools for unit tests - library independent versions of dlink_list
859 # globals.cc is needed by test_tools.cc.
860 # Neither of these should be disted from here.
867 tests/testBoilerplate \
868 tests/testCacheManager \
869 tests/testCharacterSet \
872 tests/testEnumIterator \
874 tests/testEventLoop \
875 tests/test_http_range \
876 tests/testTokenizer \
877 tests/testHttp1Parser \
878 tests/testHttpReply \
879 tests/testHttpRequest \
881 tests/testIpAddress \
887 tests/testConfigParser \
889 tests/testLookupTable \
893 check_PROGRAMS += tests/testRock
896 check_PROGRAMS += tests/testUfs
899 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
900 TESTS += $(check_PROGRAMS)
902 ### Template for new Unit Test Program
903 ## - add tests/testX to check_PROGRAMS above.
904 ## - copy template below and substitue X for class name
905 ## - add other component .(h|cc) files needed to link and run tests
907 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
909 #tests_testX_SOURCES=\
914 #nodist_tests_testX_SOURCES=\
915 # tests/stubs_as_needed.cc\
917 #tests_testX_LDFLAGS = $(LIBADD_DL)
919 # $(LIBCPPUNIT_LIBS) \
923 # - add other component .(h|cc) files needed to link and run tests
924 tests_testHttpReply_SOURCES=\
930 tests/stub_fatal.cc \
933 HttpHeaderFieldStat.h \
937 HttpHdrContRange.cc \
947 HttpHeaderFieldInfo.h \
966 tests/stub_SBufDetailedStats.cc \
971 tests/stub_access_log.cc \
973 tests/stub_cache_cf.cc \
974 tests/stub_cache_manager.cc \
976 tests/stub_debug.cc \
977 tests/stub_errorpage.cc \
978 tests/stub_event.cc \
980 tests/stub_HelperChildConfig.cc \
981 tests/stub_libformat.cc \
982 tests/stub_libauth.cc \
983 tests/stub_libcomm.cc \
984 tests/stub_libmgr.cc \
985 tests/stub_libsecurity.cc \
986 tests/stub_libsslsquid.cc \
990 tests/stub_StatHist.cc \
992 tests/stub_store.cc \
993 tests/stub_store_stats.cc \
995 tests/stub_tools.cc \
996 tests/stub_HttpRequest.cc \
997 tests/testHttpReply.cc \
998 tests/testHttpReply.h \
1003 nodist_tests_testHttpReply_SOURCES=\
1005 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1006 tests_testHttpReply_LDADD=\
1009 parser/libparser.la \
1019 $(top_builddir)/lib/libmisccontainers.la \
1020 $(top_builddir)/lib/libmiscencoding.la \
1021 $(top_builddir)/lib/libmiscutil.la \
1024 $(LIBCPPUNIT_LIBS) \
1028 tests_testACLMaxUserIP_SOURCES= \
1031 tests/stub_CollapsedForwarding.cc \
1034 tests/stub_ETag.cc \
1037 tests/stub_fatal.cc \
1043 HttpHeaderFieldInfo.h \
1045 HttpHeaderTools.cc \
1046 HttpHdrContRange.cc \
1048 HttpHeaderFieldStat.h \
1053 HttpHdrScTarget.cc \
1065 tests/stub_libsecurity.cc \
1072 tests/stub_StatHist.cc \
1074 tests/stub_SBufDetailedStats.cc \
1077 tests/stub_StoreMeta.cc \
1078 StoreMetaUnpacker.cc \
1079 StoreSwapLogData.cc \
1084 tests/stub_SwapDir.cc \
1087 tests/stub_access_log.cc \
1089 tests/stub_cache_cf.cc \
1090 tests/stub_client_side.cc \
1091 tests/stub_debug.cc \
1092 tests/stub_DelayId.cc \
1093 tests/stub_errorpage.cc \
1096 tests/stub_HttpRequest.cc \
1097 tests/stub_HttpReply.cc \
1098 tests/stub_ipc_TypedMsgHdr.cc \
1099 tests/stub_libauth.cc \
1100 tests/stub_libcomm.cc \
1101 tests/stub_libdiskio.cc \
1102 tests/stub_libformat.cc \
1103 tests/stub_libmem.cc \
1104 tests/stub_libsslsquid.cc \
1105 tests/stub_MemObject.cc \
1106 tests/stub_MemStore.cc \
1108 tests/stub_mime.cc \
1109 tests/stub_pconn.cc \
1110 tests/stub_Port.cc \
1112 tests/stub_store.cc \
1113 tests/stub_store_client.cc \
1115 tests/stub_store_rebuild.cc \
1116 tests/stub_store_stats.cc \
1117 tests/stub_store_swapout.cc \
1119 tests/stub_tools.cc \
1120 tests/stub_cache_manager.cc \
1121 tests/stub_UdsOp.cc \
1122 tests/testACLMaxUserIP.cc \
1123 tests/testACLMaxUserIP.h \
1124 tests/stub_time.cc \
1130 nodist_tests_testACLMaxUserIP_SOURCES= \
1132 tests_testACLMaxUserIP_LDADD= \
1134 helper/libhelper.la \
1136 parser/libparser.la \
1149 $(top_builddir)/lib/libmisccontainers.la \
1150 $(top_builddir)/lib/libmiscencoding.la \
1151 $(top_builddir)/lib/libmiscutil.la \
1155 $(LIBCPPUNIT_LIBS) \
1158 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1160 ## a demonstration test that does nothing but shows the salient points
1161 ## involved in writing tests.
1162 tests_testBoilerplate_SOURCES = \
1163 tests/testBoilerplate.cc \
1164 tests/testBoilerplate.h \
1165 tests/stub_debug.cc \
1166 tests/stub_libmem.cc \
1168 nodist_tests_testBoilerplate_SOURCES = \
1169 tests/stub_cbdata.cc \
1170 tests/stub_MemBuf.cc \
1172 tests_testBoilerplate_LDADD= \
1175 $(LIBCPPUNIT_LIBS) \
1178 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1180 ## Tests of base/libbase.la objects
1181 tests_testCharacterSet_SOURCES = \
1182 tests/testCharacterSet.cc \
1183 tests/testCharacterSet.h
1184 nodist_tests_testCharacterSet_SOURCES = \
1185 base/CharacterSet.h \
1187 tests/stub_cbdata.cc \
1188 tests/stub_debug.cc \
1189 tests/stub_libmem.cc \
1190 tests/stub_MemBuf.cc
1191 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1192 tests_testCharacterSet_LDADD= \
1194 $(LIBCPPUNIT_LIBS) \
1198 ## Tests of the CacheManager module.
1199 tests_testCacheManager_SOURCES = \
1206 tests/testCacheManager.cc \
1207 tests/testCacheManager.h \
1208 tests/stub_main_cc.cc \
1209 tests/stub_HttpControlMsg.cc \
1210 tests/stub_ipc_Forwarder.cc \
1211 tests/stub_store_stats.cc \
1212 tests/stub_EventLoop.cc \
1223 tests/stub_CacheDigest.cc \
1225 tests/stub_carp.cc \
1231 client_side_reply.cc \
1232 client_side_request.cc \
1235 tests/stub_CollapsedForwarding.cc \
1242 $(DELAY_POOL_SOURCE) \
1249 tests/stub_ETag.cc \
1252 ExternalACLEntry.cc \
1254 tests/stub_fatal.cc \
1275 HttpHeaderFieldInfo.h \
1277 HttpHeaderTools.cc \
1278 HttpHeaderFieldStat.h \
1282 HttpHdrContRange.cc \
1285 HttpHdrScTarget.cc \
1297 tests/stub_libsecurity.cc \
1318 peer_proxy_negotiate_auth.h \
1319 peer_proxy_negotiate_auth.cc \
1322 peer_sourcehash.cc \
1330 tests/stub_redirect.cc \
1334 tests/stub_SBufDetailedStats.cc \
1346 tests/stub_libauth_acls.cc \
1347 tests/stub_libauth.cc \
1348 tests/stub_libdiskio.cc \
1349 tests/stub_StatHist.cc \
1355 tests/stub_store_digest.cc \
1367 StoreFileSystem.cc \
1369 tests/stub_StoreMeta.cc \
1370 StoreMetaUnpacker.cc \
1371 StoreSwapLogData.cc \
1375 tests/stub_tunnel.cc \
1376 tests/stub_SwapDir.cc \
1383 tests/stub_wccp2.cc \
1385 tests/stub_whois.cc \
1390 nodist_tests_testCacheManager_SOURCES = \
1392 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1393 tests_testCacheManager_LDADD = \
1395 clients/libclients.la \
1396 servers/libservers.la \
1398 helper/libhelper.la \
1400 parser/libparser.la \
1413 format/libformat.la \
1415 $(ADAPTATION_LIBS) \
1425 $(top_builddir)/lib/libmisccontainers.la \
1426 $(top_builddir)/lib/libmiscencoding.la \
1427 $(top_builddir)/lib/libmiscutil.la \
1432 $(LIBCPPUNIT_LIBS) \
1435 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1437 tests_testDiskIO_SOURCES = \
1441 tests/stub_CacheDigest.cc \
1445 tests/stub_CollapsedForwarding.cc \
1448 $(DELAY_POOL_SOURCE) \
1451 tests/stub_ETag.cc \
1455 tests/stub_fatal.cc \
1464 HttpHeaderFieldStat.h \
1468 HttpHdrContRange.cc \
1470 HttpHdrScTarget.cc \
1472 HttpHeaderFieldInfo.h \
1474 HttpHeaderTools.cc \
1496 tests/stub_libsecurity.cc \
1500 tests/stub_StatHist.cc \
1502 tests/stub_SBufDetailedStats.cc \
1503 StoreFileSystem.cc \
1505 tests/stub_StoreMeta.cc \
1506 StoreMetaUnpacker.cc \
1507 StoreSwapLogData.cc \
1518 tests/stub_SwapDir.cc \
1521 tests/stub_access_log.cc \
1524 tests/stub_cache_cf.cc \
1525 tests/stub_cache_manager.cc \
1526 tests/stub_client_db.cc \
1527 client_side_request.h \
1528 tests/stub_client_side_request.cc \
1529 tests/stub_debug.cc \
1530 tests/stub_errorpage.cc \
1531 tests/stub_helper.cc \
1532 tests/stub_HelperChildConfig.cc \
1533 tests/stub_HttpRequest.cc \
1534 tests/stub_http.cc \
1537 tests/stub_internal.cc \
1539 tests/stub_ipcache.cc \
1540 tests/stub_libauth_acls.cc \
1541 tests/stub_libauth.cc \
1542 tests/stub_libeui.cc \
1543 tests/stub_libformat.cc \
1544 tests/stub_libicmp.cc \
1545 tests/stub_liblog.cc \
1546 tests/stub_MemStore.cc \
1548 tests/stub_mime.cc \
1549 tests/stub_neighbors.cc \
1550 tests/stub_pconn.cc \
1551 tests/stub_Port.cc \
1552 tests/stub_stat.cc \
1553 tests/stub_store_client.cc \
1554 tests/stub_store_stats.cc \
1556 tests/stub_store_rebuild.cc \
1557 tests/stub_UdsOp.cc \
1558 tests/testDiskIO.cc \
1559 tests/testDiskIO.h \
1560 tests/testStoreSupport.cc \
1561 tests/testStoreSupport.h \
1562 tests/stub_time.cc \
1570 nodist_tests_testDiskIO_SOURCES= \
1575 tests_testDiskIO_LDADD = \
1578 parser/libparser.la \
1589 $(ADAPTATION_LIBS) \
1590 DiskIO/libdiskio.la \
1601 $(top_builddir)/lib/libmisccontainers.la \
1602 $(top_builddir)/lib/libmiscencoding.la \
1603 $(top_builddir)/lib/libmiscutil.la \
1607 $(LIBCPPUNIT_LIBS) \
1610 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1611 tests_testDiskIO_DEPENDENCIES = \
1612 DiskIO/libdiskio.la \
1615 tests_testDns_SOURCES= \
1616 tests/testRFC1035.cc \
1618 nodist_tests_testDns_SOURCES= \
1619 tests/stub_debug.cc \
1620 tests/stub_libmem.cc \
1621 tests/stub_SBuf.cc \
1623 tests_testDns_LDADD= \
1626 $(top_builddir)/lib/libmiscutil.la \
1627 $(LIBCPPUNIT_LIBS) \
1630 tests_testDns_LDFLAGS= $(LIBADD_DL)
1632 tests_testEvent_SOURCES = \
1636 tests/stub_CacheDigest.cc \
1645 tests/stub_carp.cc \
1651 client_side_reply.cc \
1652 client_side_request.cc \
1655 tests/stub_CollapsedForwarding.cc \
1663 $(DELAY_POOL_SOURCE) \
1670 tests/stub_ETag.cc \
1675 ExternalACLEntry.cc \
1678 tests/stub_fatal.cc \
1696 tests/stub_HttpControlMsg.cc \
1699 HttpHeaderFieldInfo.h \
1701 HttpHeaderTools.cc \
1702 HttpHeaderFieldStat.h \
1706 HttpHdrContRange.cc \
1709 HttpHdrScTarget.cc \
1726 tests/stub_libsecurity.cc \
1731 tests/stub_libmem.cc \
1748 peer_proxy_negotiate_auth.h \
1749 peer_proxy_negotiate_auth.cc \
1752 peer_sourcehash.cc \
1758 tests/stub_redirect.cc \
1764 tests/stub_SBufDetailedStats.cc \
1780 tests/stub_store_digest.cc \
1792 StoreFileSystem.cc \
1794 tests/stub_StoreMeta.cc \
1795 StoreMetaUnpacker.cc \
1796 StoreSwapLogData.cc \
1798 tests/stub_SwapDir.cc \
1799 tests/CapturingStoreEntry.h \
1800 tests/testEvent.cc \
1802 tests/stub_main_cc.cc \
1803 tests/stub_ipc_Forwarder.cc \
1804 tests/stub_libauth_acls.cc \
1805 tests/stub_libauth.cc \
1806 tests/stub_libdiskio.cc \
1807 tests/stub_libeui.cc \
1808 tests/stub_store_stats.cc \
1813 tests/stub_tunnel.cc \
1820 tests/stub_wccp2.cc \
1822 tests/stub_whois.cc \
1826 nodist_tests_testEvent_SOURCES = \
1828 tests_testEvent_LDADD = \
1830 clients/libclients.la \
1831 servers/libservers.la \
1833 helper/libhelper.la \
1835 parser/libparser.la \
1848 format/libformat.la \
1850 $(ADAPTATION_LIBS) \
1853 $(top_builddir)/lib/libmisccontainers.la \
1854 $(top_builddir)/lib/libmiscencoding.la \
1855 $(top_builddir)/lib/libmiscutil.la \
1865 $(LIBCPPUNIT_LIBS) \
1868 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1870 ## Tests of the EventLoop module.
1871 tests_testEventLoop_SOURCES = \
1875 tests/stub_CacheDigest.cc \
1884 tests/stub_carp.cc \
1890 client_side_reply.cc \
1891 client_side_request.cc \
1894 tests/stub_CollapsedForwarding.cc \
1902 $(DELAY_POOL_SOURCE) \
1909 tests/stub_ETag.cc \
1914 ExternalACLEntry.cc \
1917 tests/stub_fatal.cc \
1935 tests/stub_HttpControlMsg.cc \
1938 HttpHeaderFieldInfo.h \
1940 HttpHeaderTools.cc \
1941 HttpHeaderFieldStat.h \
1945 HttpHdrContRange.cc \
1948 HttpHdrScTarget.cc \
1971 tests/stub_libmem.cc \
1986 peer_proxy_negotiate_auth.h \
1987 peer_proxy_negotiate_auth.cc \
1990 peer_sourcehash.cc \
1997 tests/stub_redirect.cc \
2000 tests/stub_SBufDetailedStats.cc \
2016 tests/stub_store_digest.cc \
2028 StoreFileSystem.cc \
2030 tests/stub_StoreMeta.cc \
2031 StoreMetaUnpacker.cc \
2032 StoreSwapLogData.cc \
2036 tests/stub_SwapDir.cc \
2037 tests/testEventLoop.cc \
2038 tests/testEventLoop.h \
2039 tests/stub_main_cc.cc \
2040 tests/stub_ipc_Forwarder.cc \
2041 tests/stub_libauth_acls.cc \
2042 tests/stub_libauth.cc \
2043 tests/stub_libdiskio.cc \
2044 tests/stub_libeui.cc \
2045 tests/stub_libsecurity.cc \
2046 tests/stub_store_stats.cc \
2051 tests/stub_tunnel.cc \
2058 tests/stub_wccp2.cc \
2060 tests/stub_whois.cc \
2064 nodist_tests_testEventLoop_SOURCES = \
2066 tests_testEventLoop_LDADD = \
2068 clients/libclients.la \
2069 servers/libservers.la \
2071 helper/libhelper.la \
2073 parser/libparser.la \
2086 format/libformat.la \
2088 $(ADAPTATION_LIBS) \
2091 $(top_builddir)/lib/libmisccontainers.la \
2092 $(top_builddir)/lib/libmiscencoding.la \
2093 $(top_builddir)/lib/libmiscutil.la \
2103 $(LIBCPPUNIT_LIBS) \
2106 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2108 tests_test_http_range_SOURCES = \
2119 tests/stub_CacheDigest.cc \
2121 tests/stub_carp.cc \
2127 client_side_reply.cc \
2128 client_side_request.cc \
2131 tests/stub_CollapsedForwarding.cc \
2139 $(DELAY_POOL_SOURCE) \
2146 tests/stub_ETag.cc \
2150 tests/stub_libauth.cc \
2151 tests/stub_fatal.cc \
2169 tests/stub_HttpControlMsg.cc \
2170 HttpHeaderFieldStat.h \
2174 HttpHdrContRange.cc \
2177 HttpHdrScTarget.cc \
2180 HttpHeaderFieldInfo.h \
2182 HttpHeaderTools.cc \
2205 tests/stub_libmem.cc \
2219 peer_proxy_negotiate_auth.h \
2220 peer_proxy_negotiate_auth.cc \
2223 peer_sourcehash.cc \
2230 tests/stub_redirect.cc \
2234 tests/stub_SBufDetailedStats.cc \
2250 tests/stub_store_digest.cc \
2262 StoreFileSystem.cc \
2264 tests/stub_StoreMeta.cc \
2265 StoreMetaUnpacker.cc \
2266 StoreSwapLogData.cc \
2270 tests/stub_SwapDir.cc \
2272 tests/test_http_range.cc \
2273 tests/stub_external_acl.cc \
2274 tests/stub_ipc_Forwarder.cc \
2275 tests/stub_libdiskio.cc \
2276 tests/stub_libeui.cc \
2277 tests/stub_libsecurity.cc \
2278 tests/stub_main_cc.cc \
2279 tests/stub_MemStore.cc \
2280 tests/stub_store_stats.cc \
2281 tests/stub_EventLoop.cc \
2285 tests/stub_tunnel.cc \
2291 tests/stub_wccp2.cc \
2293 tests/stub_whois.cc \
2297 nodist_tests_test_http_range_SOURCES = \
2299 tests_test_http_range_LDADD = \
2301 clients/libclients.la \
2302 servers/libservers.la \
2304 helper/libhelper.la \
2306 parser/libparser.la \
2311 parser/libparser.la \
2318 format/libformat.la \
2320 $(ADAPTATION_LIBS) \
2330 $(top_builddir)/lib/libmisccontainers.la \
2331 $(top_builddir)/lib/libmiscencoding.la \
2332 $(top_builddir)/lib/libmiscutil.la \
2337 $(LIBCPPUNIT_LIBS) \
2340 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2342 ## Tests of parser/* objects
2343 tests_testTokenizer_SOURCES = \
2344 tests/testTokenizer.h \
2345 tests/testTokenizer.cc
2346 nodist_tests_testTokenizer_SOURCES = \
2347 parser/Tokenizer.h \
2351 tests/stub_debug.cc \
2352 tests/stub_libmem.cc \
2353 tests/stub_time.cc \
2354 tests/stub_SBufDetailedStats.cc
2355 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2356 tests_testTokenizer_LDADD = \
2357 parser/libparser.la \
2360 $(top_builddir)/lib/libmiscutil.la \
2361 $(LIBCPPUNIT_LIBS) \
2365 tests_testHttp1Parser_SOURCES = \
2369 tests/stub_MemObject.cc \
2374 tests/stub_SBufDetailedStats.cc \
2375 tests/stub_cache_cf.cc \
2376 tests/stub_cache_manager.cc \
2377 tests/stub_comm.cc \
2378 tests/stub_cbdata.cc \
2379 tests/stub_debug.cc \
2380 tests/stub_event.cc \
2381 tests/stub_HelperChildConfig.cc \
2382 tests/stub_libmem.cc \
2383 tests/stub_libsecurity.cc \
2384 tests/stub_stmem.cc \
2385 tests/stub_store.cc \
2386 tests/stub_store_stats.cc \
2388 tests/stub_tools.cc \
2389 tests/testHttp1Parser.cc \
2390 tests/testHttp1Parser.h \
2391 tests/stub_time.cc \
2394 nodist_tests_testHttp1Parser_SOURCES = \
2396 tests_testHttp1Parser_LDADD= \
2398 parser/libparser.la \
2404 $(top_builddir)/lib/libmiscutil.la \
2406 $(LIBCPPUNIT_LIBS) \
2409 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2411 ## Tests of the HttpRequest module.
2412 tests_testHttpRequest_SOURCES = \
2417 tests/stub_libmem.cc \
2419 tests/testHttpRequest.h \
2420 tests/testHttpRequest.cc \
2421 tests/testHttpRequestMethod.h \
2422 tests/testHttpRequestMethod.cc \
2423 tests/stub_libauth.cc \
2424 tests/stub_main_cc.cc \
2425 tests/stub_ipc_Forwarder.cc \
2426 tests/stub_libdiskio.cc \
2427 tests/stub_libeui.cc \
2428 tests/stub_store_stats.cc \
2429 tests/stub_EventLoop.cc \
2439 tests/stub_CacheDigest.cc \
2443 tests/stub_carp.cc \
2449 client_side_reply.cc \
2450 client_side_request.cc \
2453 tests/stub_CollapsedForwarding.cc \
2460 $(DELAY_POOL_SOURCE) \
2467 tests/stub_ETag.cc \
2469 ExternalACLEntry.cc \
2471 tests/stub_fatal.cc \
2487 tests/stub_HttpControlMsg.cc \
2490 HttpHeaderFieldInfo.h \
2492 HttpHeaderTools.cc \
2493 HttpHeaderFieldStat.h \
2497 HttpHdrContRange.cc \
2500 HttpHdrScTarget.cc \
2512 tests/stub_libsecurity.cc \
2533 peer_proxy_negotiate_auth.h \
2534 peer_proxy_negotiate_auth.cc \
2537 peer_sourcehash.cc \
2545 tests/stub_libauth_acls.cc \
2546 tests/stub_redirect.cc \
2550 tests/stub_SBufDetailedStats.cc \
2566 tests/stub_store_digest.cc \
2578 StoreFileSystem.cc \
2580 tests/stub_StoreMeta.cc \
2581 StoreMetaUnpacker.cc \
2582 StoreSwapLogData.cc \
2589 tests/stub_tunnel.cc \
2590 tests/stub_SwapDir.cc \
2596 tests/stub_wccp2.cc \
2598 tests/stub_whois.cc \
2603 nodist_tests_testHttpRequest_SOURCES = \
2605 tests_testHttpRequest_LDADD = \
2607 clients/libclients.la \
2608 servers/libservers.la \
2609 helper/libhelper.la \
2616 parser/libparser.la \
2621 parser/libparser.la \
2630 format/libformat.la \
2634 $(ADAPTATION_LIBS) \
2636 $(top_builddir)/lib/libmisccontainers.la \
2637 $(top_builddir)/lib/libmiscencoding.la \
2638 $(top_builddir)/lib/libmiscutil.la \
2643 $(LIBCPPUNIT_LIBS) \
2646 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2648 ## Tests for icmp/* objects
2649 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2650 tests_testIcmp_SOURCES = \
2653 nodist_tests_testIcmp_SOURCES = \
2656 tests/stub_debug.cc \
2657 tests/stub_libmem.cc \
2660 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2661 tests_testIcmp_LDADD=\
2662 icmp/libicmpcore.la \
2665 $(LIBCPPUNIT_LIBS) \
2669 ## Tests for ip/* objects
2670 tests_testIpAddress_SOURCES= \
2671 tests/testAddress.cc \
2673 nodist_tests_testIpAddress_SOURCES= \
2675 tests/stub_debug.cc \
2676 tests/stub_libmem.cc \
2678 tests_testIpAddress_LDADD= \
2681 $(LIBCPPUNIT_LIBS) \
2684 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2686 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2687 ## first line - what we are testing.
2688 tests_testStore_SOURCES= \
2690 tests/stub_CacheDigest.cc \
2693 tests/stub_CollapsedForwarding.cc \
2696 $(DELAY_POOL_SOURCE) \
2703 tests/stub_fatal.cc \
2706 HttpHeaderFieldStat.h \
2710 HttpHdrContRange.cc \
2713 HttpHdrScTarget.cc \
2714 HttpHeaderFieldInfo.h \
2716 HttpHeaderTools.cc \
2747 tests/stub_StoreMeta.cc \
2748 StoreMetaUnpacker.cc \
2749 StoreSwapLogData.cc \
2752 tests/stub_SBufDetailedStats.cc \
2756 tests/CapturingStoreEntry.h \
2758 tests/stub_access_log.cc \
2761 tests/stub_cache_cf.cc \
2762 tests/stub_cache_manager.cc \
2763 tests/stub_client_side_request.cc \
2764 tests/stub_comm.cc \
2765 tests/stub_debug.cc \
2766 tests/stub_errorpage.cc \
2770 tests/stub_helper.cc \
2771 tests/stub_HelperChildConfig.cc \
2772 tests/stub_http.cc \
2773 tests/stub_libauth.cc \
2774 tests/stub_libeui.cc \
2775 tests/stub_libdiskio.cc \
2776 tests/stub_libformat.cc \
2777 tests/stub_libsecurity.cc \
2778 tests/stub_libsslsquid.cc \
2781 tests/stub_HttpReply.cc \
2782 tests/stub_HttpRequest.cc \
2783 tests/stub_libcomm.cc \
2784 tests/stub_MemStore.cc \
2786 tests/stub_mime.cc \
2787 tests/stub_Port.cc \
2788 tests/stub_stat.cc \
2789 tests/stub_store_client.cc \
2790 tests/stub_store_stats.cc \
2792 tests/stub_store_rebuild.cc \
2793 tests/stub_store_swapout.cc \
2796 tests/stub_tools.cc \
2797 tests/stub_UdsOp.cc \
2798 tests/testPackableStream.cc \
2799 tests/testPackableStream.h \
2800 tests/testStore.cc \
2802 tests/testStoreController.cc \
2803 tests/testStoreController.h \
2804 tests/testStoreHashIndex.cc \
2805 tests/testStoreHashIndex.h \
2806 tests/testStoreSupport.cc \
2807 tests/testStoreSupport.h \
2808 tests/TestSwapDir.cc \
2809 tests/TestSwapDir.h \
2810 tests/stub_time.cc \
2815 nodist_tests_testStore_SOURCES= \
2821 tests_testStore_LDADD= \
2824 parser/libparser.la \
2839 DiskIO/libdiskio.la \
2840 $(top_builddir)/lib/libmisccontainers.la \
2841 $(top_builddir)/lib/libmiscencoding.la \
2842 $(top_builddir)/lib/libmiscutil.la \
2847 $(LIBCPPUNIT_LIBS) \
2850 tests_testStore_LDFLAGS = $(LIBADD_DL)
2852 ## string needs mem.cc.
2853 ## mem.cc needs ClientInfo.h
2854 ## libsquid pulls in SquidConfig and children. stub them.
2855 tests_testString_SOURCES = \
2859 tests/stub_SBufDetailedStats.cc \
2860 tests/testString.cc \
2861 tests/testString.h \
2863 tests/stub_cache_cf.cc \
2864 tests/stub_cache_manager.cc \
2865 tests/stub_cbdata.cc \
2866 tests/stub_debug.cc \
2867 tests/stub_HelperChildConfig.cc \
2868 tests/stub_libmem.cc \
2870 tests/stub_tools.cc \
2871 tests/stub_time.cc \
2874 nodist_tests_testString_SOURCES = \
2876 tests_testString_LDADD = \
2881 $(top_builddir)/lib/libmiscutil.la \
2884 $(LIBCPPUNIT_LIBS) \
2887 tests_testString_LDFLAGS = $(LIBADD_DL)
2899 DiskIO/libdiskio.la \
2904 tests_testUfs_SOURCES = \
2909 tests/stub_cache_manager.cc \
2910 tests/stub_client_db.cc \
2911 tests/stub_CollapsedForwarding.cc \
2912 tests/stub_HelperChildConfig.cc \
2915 tests/stub_ipcache.cc \
2916 tests/stub_libeui.cc \
2917 tests/stub_libicmp.cc \
2918 tests/stub_liblog.cc \
2919 tests/stub_MemStore.cc \
2920 tests/stub_neighbors.cc \
2921 tests/stub_pconn.cc \
2922 tests/stub_Port.cc \
2923 tests/stub_UdsOp.cc \
2925 tests/stub_internal.cc \
2926 tests/stub_libformat.cc \
2927 tests/stub_libsecurity.cc \
2928 tests/stub_stat.cc \
2930 tests/stub_store_rebuild.cc \
2931 tests/stub_store_stats.cc \
2933 tests/stub_fatal.cc \
2958 StoreSwapLogData.cc \
2960 StoreMetaUnpacker.cc \
2961 $(STOREMETA_SOURCE) \
2962 StoreFileSystem.cc \
2969 $(DELAY_POOL_SOURCE) \
2971 tests/stub_CacheDigest.cc \
2984 tests/stub_cache_cf.cc \
2985 tests/stub_helper.cc \
2987 tests/stub_SBufDetailedStats.cc \
2989 tests/stub_debug.cc \
2990 tests/stub_client_side_request.cc \
2991 tests/stub_http.cc \
2992 tests/stub_libauth.cc \
2996 tests/stub_mime.cc \
2997 HttpHeaderFieldInfo.h \
2999 HttpHeaderTools.cc \
3004 HttpHdrContRange.cc \
3005 HttpHeaderFieldStat.h \
3010 HttpHdrScTarget.cc \
3020 tests/stub_errorpage.cc \
3021 tests/stub_HttpRequest.cc \
3023 tests/stub_access_log.cc \
3026 tests/stub_store_client.cc \
3028 tests/stub_tools.cc \
3029 tests/testStoreSupport.cc \
3030 tests/testStoreSupport.h \
3035 nodist_tests_testUfs_SOURCES = \
3040 tests_testUfs_LDADD = \
3042 parser/libparser.la \
3054 DiskIO/libdiskio.la \
3065 $(ADAPTATION_LIBS) \
3067 $(top_builddir)/lib/libmisccontainers.la \
3068 $(top_builddir)/lib/libmiscencoding.la \
3069 $(top_builddir)/lib/libmiscutil.la \
3073 $(LIBCPPUNIT_LIBS) \
3076 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3077 tests_testUfs_DEPENDENCIES = \
3080 check_PROGRAMS += testRefCount
3081 testRefCount_SOURCES= \
3084 tests/stub_cbdata.cc \
3085 tests/stub_debug.cc \
3086 tests/stub_libmem.cc \
3087 tests/stub_MemBuf.cc \
3088 tests/testRefCount.cc
3089 testRefCount_LDADD = \
3091 $(top_builddir)/lib/libmiscutil.la \
3095 tests_testRock_SOURCES = \
3100 CollapsedForwarding.h \
3101 CollapsedForwarding.cc \
3102 tests/stub_CacheDigest.cc \
3118 HttpHeaderFieldStat.h \
3122 HttpHdrContRange.cc \
3125 HttpHdrScTarget.cc \
3128 HttpHeaderFieldInfo.h \
3130 HttpHeaderTools.cc \
3151 tests/stub_StatHist.cc \
3154 tests/stub_stat.cc \
3156 StoreFileSystem.cc \
3158 StoreMetaUnpacker.cc \
3159 $(STOREMETA_SOURCE) \
3160 StoreSwapLogData.cc \
3166 tests/stub_SBufDetailedStats.cc \
3174 tests/testStoreSupport.cc \
3175 tests/testStoreSupport.h \
3177 tests/stub_access_log.cc \
3179 tests/stub_cache_cf.cc \
3181 tests/stub_cache_manager.cc \
3182 tests/stub_client_db.cc \
3183 tests/stub_client_side_request.cc \
3184 tests/stub_debug.cc \
3185 tests/stub_errorpage.cc \
3186 tests/stub_HelperChildConfig.cc \
3187 tests/stub_http.cc \
3188 tests/stub_HttpRequest.cc \
3189 tests/stub_libauth.cc \
3192 tests/stub_ipcache.cc \
3193 tests/stub_libeui.cc \
3194 tests/stub_libformat.cc \
3195 tests/stub_libicmp.cc \
3196 tests/stub_liblog.cc \
3197 tests/stub_libmgr.cc \
3198 tests/stub_libsecurity.cc \
3199 tests/stub_MemStore.cc \
3201 tests/stub_mime.cc \
3202 tests/stub_neighbors.cc \
3203 tests/stub_Port.cc \
3204 tests/stub_pconn.cc \
3205 tests/stub_store_client.cc \
3207 tests/stub_store_rebuild.cc \
3208 tests/stub_store_stats.cc \
3210 tests/stub_tools.cc \
3215 $(DELAY_POOL_SOURCE) \
3217 nodist_tests_testRock_SOURCES = \
3222 tests_testRock_LDADD = \
3224 parser/libparser.la \
3231 DiskIO/libdiskio.la \
3242 $(ADAPTATION_LIBS) \
3244 $(top_builddir)/lib/libmisccontainers.la \
3245 $(top_builddir)/lib/libmiscencoding.la \
3246 $(top_builddir)/lib/libmiscutil.la \
3250 $(LIBCPPUNIT_LIBS) \
3253 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3254 tests_testRock_DEPENDENCIES = \
3257 ## Tests of the URL module.
3258 ## TODO: Trim this down once the insanity is over.
3259 tests_testURL_SOURCES = \
3266 tests/stub_cache_manager.cc \
3268 tests/stub_CacheDigest.cc \
3272 tests/stub_carp.cc \
3278 client_side_reply.cc \
3279 client_side_request.cc \
3282 tests/stub_CollapsedForwarding.cc \
3289 $(DELAY_POOL_SOURCE) \
3299 ExternalACLEntry.cc \
3301 tests/stub_fatal.cc \
3319 tests/stub_HttpControlMsg.cc \
3320 HttpHeaderFieldStat.h \
3324 HttpHdrContRange.cc \
3327 HttpHdrScTarget.cc \
3330 HttpHeaderFieldInfo.h \
3332 HttpHeaderTools.cc \
3348 tests/stub_libeui.cc \
3370 peer_proxy_negotiate_auth.h \
3371 peer_proxy_negotiate_auth.cc \
3374 peer_sourcehash.cc \
3380 tests/stub_redirect.cc \
3384 tests/stub_SBufDetailedStats.cc \
3394 tests/stub_StatHist.cc \
3400 tests/stub_store_digest.cc \
3412 StoreFileSystem.cc \
3414 tests/stub_StoreMeta.cc \
3415 StoreMetaUnpacker.cc \
3416 StoreSwapLogData.cc \
3421 tests/stub_SwapDir.cc \
3423 tests/stub_debug.cc \
3424 tests/stub_libauth_acls.cc \
3425 tests/stub_libauth.cc \
3426 tests/stub_libdiskio.cc \
3427 tests/stub_libmem.cc \
3428 tests/stub_libsecurity.cc \
3429 tests/stub_main_cc.cc \
3430 tests/stub_ipc_Forwarder.cc \
3431 tests/stub_store_stats.cc \
3434 tests/testUriScheme.cc \
3435 tests/testUriScheme.h \
3436 tests/stub_time.cc \
3437 tests/stub_EventLoop.cc \
3440 tests/stub_tunnel.cc \
3445 tests/stub_wccp2.cc \
3447 tests/stub_whois.cc \
3452 nodist_tests_testURL_SOURCES = \
3454 tests_testURL_LDADD = \
3456 clients/libclients.la \
3457 servers/libservers.la \
3458 helper/libhelper.la \
3461 parser/libparser.la \
3479 format/libformat.la \
3484 $(ADAPTATION_LIBS) \
3486 $(top_builddir)/lib/libmisccontainers.la \
3487 $(top_builddir)/lib/libmiscencoding.la \
3488 $(top_builddir)/lib/libmiscutil.la \
3492 $(LIBCPPUNIT_LIBS) \
3495 tests_testURL_LDFLAGS = $(LIBADD_DL)
3497 tests_testSBuf_SOURCES= \
3500 tests/SBufFindTest.h \
3501 tests/SBufFindTest.cc \
3502 tests/stub_SBufDetailedStats.cc \
3503 tests/stub_time.cc \
3504 tests/stub_debug.cc \
3505 tests/stub_fatal.cc \
3506 tests/stub_libmem.cc
3507 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3508 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3509 tests_testSBuf_LDADD= \
3512 $(LIBCPPUNIT_LIBS) \
3516 tests_testSBufList_SOURCES= \
3517 tests/testSBufList.h \
3518 tests/testSBufList.cc \
3519 tests/stub_SBufDetailedStats.cc \
3520 tests/stub_time.cc \
3521 tests/stub_debug.cc \
3522 tests/stub_fatal.cc \
3523 tests/stub_libmem.cc
3524 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3525 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3526 tests_testSBufList_LDADD=\
3529 $(LIBCPPUNIT_LIBS) \
3533 tests_testConfigParser_SOURCES = \
3535 tests/stub_MemBuf.cc \
3536 tests/stub_time.cc \
3537 tests/stub_SBufDetailedStats.cc \
3541 tests/stub_fatal.cc \
3542 tests/testConfigParser.cc \
3543 tests/testConfigParser.h \
3545 tests/stub_cache_cf.cc \
3546 tests/stub_cbdata.cc \
3547 tests/stub_debug.cc \
3548 tests/stub_libmem.cc \
3549 tests/stub_HelperChildConfig.cc \
3551 tests/stub_tools.cc \
3554 nodist_tests_testConfigParser_SOURCES = \
3556 tests_testConfigParser_LDADD = \
3561 $(top_builddir)/lib/libmiscutil.la \
3564 $(LIBCPPUNIT_LIBS) \
3567 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3569 tests_testStatHist_SOURCES = \
3570 tests/stub_cbdata.cc \
3572 tests/stub_fatal.cc \
3573 tests/stub_MemBuf.cc \
3574 tests/stub_SBufDetailedStats.cc \
3578 tests/stub_cache_manager.cc \
3579 tests/stub_comm.cc \
3580 tests/stub_debug.cc \
3581 tests/stub_DelayId.cc \
3582 tests/stub_HelperChildConfig.cc \
3583 tests/stub_libmem.cc \
3584 tests/stub_MemObject.cc \
3586 tests/stub_mime.cc \
3587 tests/stub_pconn.cc \
3588 tests/stub_stmem.cc \
3590 tests/stub_store.cc \
3591 tests/stub_store_stats.cc \
3594 tests/stub_tools.cc \
3595 tests/testStatHist.cc \
3596 tests/testStatHist.h
3597 nodist_tests_testStatHist_SOURCES = \
3599 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3600 tests_testStatHist_LDADD = \
3603 $(top_builddir)/lib/libmiscutil.la \
3604 $(top_builddir)/lib/libmisccontainers.la \
3605 $(LIBCPPUNIT_LIBS) \
3608 tests_testLookupTable_SOURCES = \
3609 tests/testLookupTable.h \
3610 tests/testLookupTable.cc \
3611 tests/stub_debug.cc \
3612 tests/stub_libmem.cc \
3613 tests/stub_SBufDetailedStats.cc \
3615 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3616 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3617 tests_testLookupTable_LDADD = \
3620 $(LIBCPPUNIT_LIBS) \
3624 tests_testEnumIterator_SOURCES = \
3625 base/EnumIterator.h \
3626 tests/stub_debug.cc \
3627 tests/stub_libmem.cc \
3628 tests/testEnumIterator.h \
3629 tests/testEnumIterator.cc
3630 nodist_tests_testEnumIterator_SOURCES = \
3632 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3633 tests_testEnumIterator_LDADD = \
3635 $(LIBCPPUNIT_LIBS) \
3639 tests_testYesNoNone_SOURCES = \
3640 tests/testYesNoNone.cc \
3641 tests/testYesNoNone.h
3642 nodist_tests_testYesNoNone_SOURCES = \
3644 tests/stub_debug.cc \
3645 tests/stub_libmem.cc \
3647 tests_testYesNoNone_LDADD= \
3649 $(LIBCPPUNIT_LIBS) \
3652 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3654 TESTS += testHeaders
3656 ## Special Universal .h dependency test script
3657 ## aborts if error encountered
3658 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3659 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3660 ## src/repl/ has no .h files and its own makefile.
3662 CLEANFILES += testHeaders