1 ## Copyright (C) 1996-2018 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 = \
116 MessageDelayPools.h \
117 MessageDelayPools.cc \
119 ClientDelayConfig.cc \
122 if ENABLE_DELAY_POOLS
123 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
128 if ENABLE_XPROF_STATS
129 XPROF_STATS_SOURCE = ProfStats.cc
135 HTCPSOURCE = htcp.cc htcp.h
139 LEAKFINDERSOURCE = LeakFinder.cc
145 UNLINKDSOURCE = unlinkd.h unlinkd.cc
148 UNLINKDSOURCE = unlinkd.h
157 if ENABLE_WIN32SPECIFIC
158 WIN32_SOURCE = win32.cc
159 WINSVC_SOURCE = WinSvc.cc
166 IPC_SOURCE = SquidIpc.h ipc_win32.cc
168 IPC_SOURCE = SquidIpc.h ipc.cc
171 noinst_LTLIBRARIES = libsquid.la
180 ## cfgen is used when building squid
181 ## ufsdump is a debug utility, it is possibly useful for end users with cache
182 ## corruption, but at this point we do not install it.
194 cf_gen_SOURCES = cf_gen.cc
195 nodist_cf_gen_HEADER = cf_gen_defines.cci
196 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
198 cf_gen.$(OBJEXT): cf_gen_defines.cci
200 ## cf_gen.cc needs src/cf_gen_defines.cci
201 AM_CPPFLAGS += -I$(top_builddir)/src
204 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
206 # common library for all the binaries and tests. This is kindof a catch all
207 # and smaller libraries split from this are encouraged. Using lt convenience
208 # libraries, dependencies should not be a problem either.
209 libsquid_la_SOURCES = \
220 $(ACL_REGISTRATION_SOURCES) \
232 NeighborTypeDomainList.h \
245 client_side_reply.cc \
246 client_side_reply.h \
247 client_side_request.cc \
248 client_side_request.h \
253 ClientRequestContext.h \
256 clientStreamForward.h \
257 CollapsedForwarding.cc \
258 CollapsedForwarding.h \
259 CompletionDispatcher.cc \
260 CompletionDispatcher.h \
274 $(DELAY_POOL_SOURCE) \
295 ExternalACLEntry.cc \
318 HierarchyLogEntry.h \
322 HttpHeaderFieldStat.h \
330 HttpHdrContRange.cc \
337 HttpHeaderFieldInfo.h \
363 $(LEAKFINDERSOURCE) \
388 $(XPROF_STATS_SOURCE) \
393 peer_proxy_negotiate_auth.h \
394 peer_proxy_negotiate_auth.cc \
417 sbuf/StringConvert.h \
457 StoreMetaUnpacker.cc \
458 StoreMetaUnpacker.h \
459 $(STOREMETA_SOURCE) \
463 StoreSwapLogData.cc \
490 XactionInitiator.cc \
494 EXTRA_squid_SOURCES = \
497 $(DELAY_POOL_ALL_SOURCE) \
507 $(WIN32_ALL_SOURCE) \
508 $(LOADABLE_MODULES_SOURCES)
527 CLEANFILES += $(BUILT_SOURCES)
529 nodist_squid_SOURCES = \
539 clients/libclients.la \
540 servers/libservers.la \
542 helper/libhelper.la \
549 DiskIO/libdiskio.la \
552 security/libsecurity.la \
556 parser/libparser.la \
560 format/libformat.la \
572 $(top_builddir)/lib/libmisccontainers.la \
573 $(top_builddir)/lib/libmiscencoding.la \
574 $(top_builddir)/lib/libmiscutil.la \
583 if ENABLE_LOADABLE_MODULES
584 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
585 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
586 squid_LDFLAGS = -export-dynamic -dlopen force
587 ## when static module linking is supported and enabled:
588 ## squid_LDFLAGS = -all-static -dlopen self
590 ## LTDL headers require their local include path...
591 AM_CPPFLAGS += $(INCLTDL)
594 ## Kerberos libraries require their include path...
595 AM_CPPFLAGS += $(KRB5INCS)
598 unlinkd_SOURCES = unlinkd_daemon.cc
603 recv_announce_SOURCES = recv-announce.cc
605 ## What requires what..
606 ## many things want ACLChecklist.cc
607 ## ACLChecklist.cc wants AuthUserRequest.cc
608 ## ACLChecklist.cc wants AuthScheme.cc
609 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
610 ## ACLProxyAuth.cc wants ACLUserData
611 ## ACLProxyAuth.cc wants ACLRegexData
612 ## cache_cf.cc wants $(AUTH_LIBS)
613 ## cache_cf.cc wants store/libstore.la
614 ## cache_cf.cc wants AnyP::PortCfg
615 ## client_side wants client_db
616 ## client_db wants SNMP_SOURCE
617 ## snmp_core wants ACLStringData
618 ## tools.cc wants ip/libip.la
619 ## client_side.cc wants ip/libip.la
620 ## libbase.la wants cbdata.*
621 ## libbase.la wants MemBuf.*
635 tests/stub_StoreMeta.cc \
636 StoreMetaUnpacker.cc \
643 helper/ChildConfig.h \
644 tests/stub_HelperChildConfig.cc \
671 ufsdump_DEPENDENCIES = \
683 DiskIO/libdiskio.la \
686 nodist_ufsdump_SOURCES = \
691 squid.conf.documented \
716 include $(srcdir)/tests/Stub.list
724 mk-string-arrays.awk \
730 # Make location configure settings available to the code
731 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
733 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
735 globals.cc: globals.h mk-globals-c.awk
736 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
738 ## Generate files containing string arrays for various enums....
739 hier_code.cc: hier_code.h mk-string-arrays.awk
740 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
742 err_type.cc: err_type.h mk-string-arrays.awk
743 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
745 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
746 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
748 lookup_t.cc: lookup_t.h mk-string-arrays.awk
749 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
751 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
752 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
754 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
755 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
758 ## other generated files...
760 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
761 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
763 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
764 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
766 ## If autodependency works well this is not needed anymore
767 cache_cf.o: cf_parser.cci
769 # cf_gen builds the configuration files.
770 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
771 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
773 # squid.conf.default is built by cf_gen when making cf_parser.cci
774 squid.conf.default squid.conf.documented: cf_parser.cci
777 cf_parser.cci: cf.data cf_gen$(EXEEXT)
778 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
780 # The cf_gen_defines.cci is auto-generated and does not exist when the
781 # dependencies computed. We need to add its include files (autoconf.h) here
782 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
783 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
786 ## FIXME: generate a sed command file from configure. Then this doesn't
787 ## depend on the Makefile.
788 cf.data: cf.data.pre Makefile
790 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
791 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
792 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
793 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
794 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
795 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
796 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
797 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
798 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
799 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
800 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
801 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
802 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
803 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
804 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
805 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
806 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
807 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
808 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
809 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
810 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
811 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
812 -f $(srcdir)/cf.data.sed \
813 < $(srcdir)/cf.data.pre >$@
815 repl_modules.cc: repl_modules.sh Makefile
816 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
818 include $(top_srcdir)/doc/manuals/Substitute.am
820 squid.8: $(srcdir)/squid.8.in Makefile
821 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
824 EXTRA_DIST += squid.8.in
825 CLEANFILES += squid.8
827 install-data-local: install-sysconfDATA install-dataDATA
828 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
829 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
831 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
832 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
834 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
835 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
837 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
838 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
840 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
841 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
842 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
843 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
844 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
845 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
846 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
848 uninstall-local: squid.conf.default
849 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
850 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
852 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
855 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
856 cp $(top_srcdir)/test-suite/test_tools.cc .
858 # stock tools for unit tests - library independent versions of dlink_list
860 # globals.cc is needed by test_tools.cc.
861 # Neither of these should be disted from here.
868 tests/testBoilerplate \
869 tests/testCacheManager \
870 tests/testCharacterSet \
873 tests/testEnumIterator \
875 tests/testEventLoop \
876 tests/test_http_range \
877 tests/testTokenizer \
878 tests/testHttp1Parser \
879 tests/testHttpReply \
880 tests/testHttpRequest \
882 tests/testIpAddress \
890 tests/testConfigParser \
892 tests/testLookupTable \
896 check_PROGRAMS += tests/testRock
899 check_PROGRAMS += tests/testUfs
902 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
903 TESTS += $(check_PROGRAMS)
905 ### Template for new Unit Test Program
906 ## - add tests/testX to check_PROGRAMS above.
907 ## - copy template below and substitue X for class name
908 ## - add other component .(h|cc) files needed to link and run tests
910 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
912 #tests_testX_SOURCES=\
917 #nodist_tests_testX_SOURCES=\
918 # tests/stubs_as_needed.cc\
920 #tests_testX_LDFLAGS = $(LIBADD_DL)
922 # $(LIBCPPUNIT_LIBS) \
926 # - add other component .(h|cc) files needed to link and run tests
927 tests_testHttpReply_SOURCES=\
933 tests/stub_fatal.cc \
936 HttpHeaderFieldStat.h \
939 HttpHdrContRange.cc \
949 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=\
1006 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1007 tests_testHttpReply_LDADD=\
1010 parser/libparser.la \
1020 $(top_builddir)/lib/libmisccontainers.la \
1021 $(top_builddir)/lib/libmiscencoding.la \
1022 $(top_builddir)/lib/libmiscutil.la \
1025 $(LIBCPPUNIT_LIBS) \
1029 tests_testACLMaxUserIP_SOURCES= \
1032 tests/stub_CollapsedForwarding.cc \
1035 tests/stub_ETag.cc \
1038 tests/stub_fatal.cc \
1044 HttpHeaderFieldInfo.h \
1046 HttpHeaderTools.cc \
1047 HttpHdrContRange.cc \
1049 HttpHeaderFieldStat.h \
1053 HttpHdrScTarget.cc \
1062 tests/stub_libsecurity.cc \
1069 tests/stub_StatHist.cc \
1071 tests/stub_SBufDetailedStats.cc \
1074 tests/stub_StoreMeta.cc \
1075 StoreMetaUnpacker.cc \
1076 StoreSwapLogData.cc \
1081 tests/stub_SwapDir.cc \
1084 tests/stub_access_log.cc \
1086 tests/stub_cache_cf.cc \
1087 tests/stub_client_side.cc \
1088 tests/stub_debug.cc \
1089 tests/stub_DelayId.cc \
1090 tests/stub_errorpage.cc \
1093 tests/stub_HttpRequest.cc \
1094 tests/stub_HttpReply.cc \
1095 tests/stub_ipc_TypedMsgHdr.cc \
1096 tests/stub_libauth.cc \
1097 tests/stub_libcomm.cc \
1098 tests/stub_libdiskio.cc \
1099 tests/stub_libformat.cc \
1100 tests/stub_libmem.cc \
1101 tests/stub_libsslsquid.cc \
1102 tests/stub_MemObject.cc \
1103 tests/stub_MemStore.cc \
1105 tests/stub_mime.cc \
1106 tests/stub_pconn.cc \
1107 tests/stub_Port.cc \
1109 tests/stub_store.cc \
1110 tests/stub_store_client.cc \
1112 tests/stub_store_rebuild.cc \
1113 tests/stub_store_stats.cc \
1114 tests/stub_store_swapout.cc \
1116 tests/stub_tools.cc \
1117 tests/stub_cache_manager.cc \
1118 tests/stub_UdsOp.cc \
1119 tests/testACLMaxUserIP.cc \
1120 tests/testACLMaxUserIP.h \
1121 tests/stub_time.cc \
1127 nodist_tests_testACLMaxUserIP_SOURCES= \
1129 tests_testACLMaxUserIP_LDADD= \
1131 helper/libhelper.la \
1133 parser/libparser.la \
1146 $(top_builddir)/lib/libmisccontainers.la \
1147 $(top_builddir)/lib/libmiscencoding.la \
1148 $(top_builddir)/lib/libmiscutil.la \
1152 $(LIBCPPUNIT_LIBS) \
1155 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1157 ## a demonstration test that does nothing but shows the salient points
1158 ## involved in writing tests.
1159 tests_testBoilerplate_SOURCES = \
1160 tests/testBoilerplate.cc \
1161 tests/testBoilerplate.h \
1162 tests/stub_debug.cc \
1163 tests/stub_libmem.cc \
1164 tests/stub_SBuf.cc \
1166 nodist_tests_testBoilerplate_SOURCES = \
1167 tests/stub_cbdata.cc \
1168 tests/stub_MemBuf.cc \
1170 tests_testBoilerplate_LDADD= \
1173 $(LIBCPPUNIT_LIBS) \
1176 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1178 ## Tests of base/libbase.la objects
1179 tests_testCharacterSet_SOURCES = \
1180 tests/testCharacterSet.cc \
1181 tests/testCharacterSet.h
1182 nodist_tests_testCharacterSet_SOURCES = \
1183 base/CharacterSet.h \
1185 tests/stub_cbdata.cc \
1186 tests/stub_debug.cc \
1187 tests/stub_libmem.cc \
1188 tests/stub_MemBuf.cc \
1190 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1191 tests_testCharacterSet_LDADD= \
1193 $(LIBCPPUNIT_LIBS) \
1197 ## Tests of the CacheManager module.
1198 tests_testCacheManager_SOURCES = \
1205 tests/testCacheManager.cc \
1206 tests/testCacheManager.h \
1207 tests/stub_main_cc.cc \
1208 tests/stub_HttpControlMsg.cc \
1209 tests/stub_ipc_Forwarder.cc \
1210 tests/stub_store_stats.cc \
1211 tests/stub_EventLoop.cc \
1222 tests/stub_CacheDigest.cc \
1224 tests/stub_carp.cc \
1230 client_side_reply.cc \
1231 client_side_request.cc \
1234 tests/stub_CollapsedForwarding.cc \
1241 $(DELAY_POOL_SOURCE) \
1248 tests/stub_ETag.cc \
1251 ExternalACLEntry.cc \
1253 tests/stub_fatal.cc \
1273 HttpHeaderFieldInfo.h \
1275 HttpHeaderTools.cc \
1276 HttpHeaderFieldStat.h \
1279 HttpHdrContRange.cc \
1282 HttpHdrScTarget.cc \
1293 tests/stub_libsecurity.cc \
1312 peer_proxy_negotiate_auth.h \
1313 peer_proxy_negotiate_auth.cc \
1316 peer_sourcehash.cc \
1324 tests/stub_redirect.cc \
1328 tests/stub_SBufDetailedStats.cc \
1340 tests/stub_libauth_acls.cc \
1341 tests/stub_libauth.cc \
1342 tests/stub_libdiskio.cc \
1343 tests/stub_StatHist.cc \
1349 tests/stub_store_digest.cc \
1361 StoreFileSystem.cc \
1363 tests/stub_StoreMeta.cc \
1364 StoreMetaUnpacker.cc \
1365 StoreSwapLogData.cc \
1369 tests/stub_tunnel.cc \
1370 tests/stub_SwapDir.cc \
1377 tests/stub_wccp2.cc \
1379 tests/stub_whois.cc \
1384 nodist_tests_testCacheManager_SOURCES = \
1386 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1387 tests_testCacheManager_LDADD = \
1389 clients/libclients.la \
1390 servers/libservers.la \
1392 helper/libhelper.la \
1394 parser/libparser.la \
1407 format/libformat.la \
1409 $(ADAPTATION_LIBS) \
1419 $(top_builddir)/lib/libmisccontainers.la \
1420 $(top_builddir)/lib/libmiscencoding.la \
1421 $(top_builddir)/lib/libmiscutil.la \
1426 $(LIBCPPUNIT_LIBS) \
1429 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1431 tests_testDiskIO_SOURCES = \
1435 tests/stub_CacheDigest.cc \
1439 tests/stub_CollapsedForwarding.cc \
1442 $(DELAY_POOL_SOURCE) \
1446 tests/stub_ETag.cc \
1450 tests/stub_fatal.cc \
1459 HttpHeaderFieldStat.h \
1462 HttpHdrContRange.cc \
1464 HttpHdrScTarget.cc \
1466 HttpHeaderFieldInfo.h \
1468 HttpHeaderTools.cc \
1487 tests/stub_libsecurity.cc \
1491 tests/stub_StatHist.cc \
1493 tests/stub_SBufDetailedStats.cc \
1494 StoreFileSystem.cc \
1496 tests/stub_StoreMeta.cc \
1497 StoreMetaUnpacker.cc \
1498 StoreSwapLogData.cc \
1509 tests/stub_SwapDir.cc \
1512 tests/stub_access_log.cc \
1515 tests/stub_cache_cf.cc \
1516 tests/stub_cache_manager.cc \
1517 tests/stub_client_db.cc \
1518 client_side_request.h \
1519 tests/stub_client_side_request.cc \
1520 tests/stub_debug.cc \
1521 tests/stub_errorpage.cc \
1522 tests/stub_helper.cc \
1523 tests/stub_HelperChildConfig.cc \
1524 tests/stub_HttpRequest.cc \
1525 tests/stub_http.cc \
1528 tests/stub_internal.cc \
1530 tests/stub_ipcache.cc \
1531 tests/stub_libauth_acls.cc \
1532 tests/stub_libauth.cc \
1533 tests/stub_libeui.cc \
1534 tests/stub_libformat.cc \
1535 tests/stub_libicmp.cc \
1536 tests/stub_liblog.cc \
1537 tests/stub_MemStore.cc \
1539 tests/stub_mime.cc \
1540 tests/stub_neighbors.cc \
1541 tests/stub_pconn.cc \
1542 tests/stub_Port.cc \
1543 tests/stub_stat.cc \
1544 tests/stub_store_client.cc \
1545 tests/stub_store_stats.cc \
1547 tests/stub_store_rebuild.cc \
1548 tests/stub_UdsOp.cc \
1549 tests/testDiskIO.cc \
1550 tests/testDiskIO.h \
1551 tests/testStoreSupport.cc \
1552 tests/testStoreSupport.h \
1553 tests/stub_time.cc \
1561 nodist_tests_testDiskIO_SOURCES= \
1567 tests_testDiskIO_LDADD = \
1570 parser/libparser.la \
1581 $(ADAPTATION_LIBS) \
1582 DiskIO/libdiskio.la \
1593 $(top_builddir)/lib/libmisccontainers.la \
1594 $(top_builddir)/lib/libmiscencoding.la \
1595 $(top_builddir)/lib/libmiscutil.la \
1599 $(LIBCPPUNIT_LIBS) \
1602 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1603 tests_testDiskIO_DEPENDENCIES = \
1604 DiskIO/libdiskio.la \
1607 tests_testDns_SOURCES= \
1608 tests/testRFC1035.cc \
1610 nodist_tests_testDns_SOURCES= \
1611 tests/stub_debug.cc \
1612 tests/stub_libmem.cc \
1613 tests/stub_SBuf.cc \
1615 tests_testDns_LDADD= \
1618 $(top_builddir)/lib/libmiscutil.la \
1619 $(LIBCPPUNIT_LIBS) \
1622 tests_testDns_LDFLAGS= $(LIBADD_DL)
1624 tests_testEvent_SOURCES = \
1628 tests/stub_CacheDigest.cc \
1637 tests/stub_carp.cc \
1643 client_side_reply.cc \
1644 client_side_request.cc \
1647 tests/stub_CollapsedForwarding.cc \
1655 $(DELAY_POOL_SOURCE) \
1662 tests/stub_ETag.cc \
1667 ExternalACLEntry.cc \
1670 tests/stub_fatal.cc \
1688 tests/stub_HttpControlMsg.cc \
1691 HttpHeaderFieldInfo.h \
1693 HttpHeaderTools.cc \
1694 HttpHeaderFieldStat.h \
1697 HttpHdrContRange.cc \
1700 HttpHdrScTarget.cc \
1716 tests/stub_libsecurity.cc \
1719 tests/stub_libmem.cc \
1736 peer_proxy_negotiate_auth.h \
1737 peer_proxy_negotiate_auth.cc \
1740 peer_sourcehash.cc \
1746 tests/stub_redirect.cc \
1752 tests/stub_SBufDetailedStats.cc \
1768 tests/stub_store_digest.cc \
1780 StoreFileSystem.cc \
1782 tests/stub_StoreMeta.cc \
1783 StoreMetaUnpacker.cc \
1784 StoreSwapLogData.cc \
1786 tests/stub_SwapDir.cc \
1787 tests/CapturingStoreEntry.h \
1788 tests/testEvent.cc \
1790 tests/stub_main_cc.cc \
1791 tests/stub_ipc_Forwarder.cc \
1792 tests/stub_libauth_acls.cc \
1793 tests/stub_libauth.cc \
1794 tests/stub_libdiskio.cc \
1795 tests/stub_libeui.cc \
1796 tests/stub_store_stats.cc \
1801 tests/stub_tunnel.cc \
1808 tests/stub_wccp2.cc \
1810 tests/stub_whois.cc \
1814 nodist_tests_testEvent_SOURCES = \
1816 tests_testEvent_LDADD = \
1818 clients/libclients.la \
1819 servers/libservers.la \
1821 helper/libhelper.la \
1823 parser/libparser.la \
1836 format/libformat.la \
1838 $(ADAPTATION_LIBS) \
1841 $(top_builddir)/lib/libmisccontainers.la \
1842 $(top_builddir)/lib/libmiscencoding.la \
1843 $(top_builddir)/lib/libmiscutil.la \
1853 $(LIBCPPUNIT_LIBS) \
1856 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1858 ## Tests of the EventLoop module.
1859 tests_testEventLoop_SOURCES = \
1863 tests/stub_CacheDigest.cc \
1872 tests/stub_carp.cc \
1878 client_side_reply.cc \
1879 client_side_request.cc \
1882 tests/stub_CollapsedForwarding.cc \
1890 $(DELAY_POOL_SOURCE) \
1897 tests/stub_ETag.cc \
1902 ExternalACLEntry.cc \
1905 tests/stub_fatal.cc \
1923 tests/stub_HttpControlMsg.cc \
1926 HttpHeaderFieldInfo.h \
1928 HttpHeaderTools.cc \
1929 HttpHeaderFieldStat.h \
1932 HttpHdrContRange.cc \
1935 HttpHdrScTarget.cc \
1955 tests/stub_libmem.cc \
1970 peer_proxy_negotiate_auth.h \
1971 peer_proxy_negotiate_auth.cc \
1974 peer_sourcehash.cc \
1981 tests/stub_redirect.cc \
1984 tests/stub_SBufDetailedStats.cc \
2000 tests/stub_store_digest.cc \
2012 StoreFileSystem.cc \
2014 tests/stub_StoreMeta.cc \
2015 StoreMetaUnpacker.cc \
2016 StoreSwapLogData.cc \
2020 tests/stub_SwapDir.cc \
2021 tests/testEventLoop.cc \
2022 tests/testEventLoop.h \
2023 tests/stub_main_cc.cc \
2024 tests/stub_ipc_Forwarder.cc \
2025 tests/stub_libauth_acls.cc \
2026 tests/stub_libauth.cc \
2027 tests/stub_libdiskio.cc \
2028 tests/stub_libeui.cc \
2029 tests/stub_libsecurity.cc \
2030 tests/stub_store_stats.cc \
2035 tests/stub_tunnel.cc \
2042 tests/stub_wccp2.cc \
2044 tests/stub_whois.cc \
2048 nodist_tests_testEventLoop_SOURCES = \
2050 tests_testEventLoop_LDADD = \
2052 clients/libclients.la \
2053 servers/libservers.la \
2055 helper/libhelper.la \
2057 parser/libparser.la \
2070 format/libformat.la \
2072 $(ADAPTATION_LIBS) \
2075 $(top_builddir)/lib/libmisccontainers.la \
2076 $(top_builddir)/lib/libmiscencoding.la \
2077 $(top_builddir)/lib/libmiscutil.la \
2087 $(LIBCPPUNIT_LIBS) \
2090 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2092 tests_test_http_range_SOURCES = \
2103 tests/stub_CacheDigest.cc \
2105 tests/stub_carp.cc \
2111 client_side_reply.cc \
2112 client_side_request.cc \
2115 tests/stub_CollapsedForwarding.cc \
2123 $(DELAY_POOL_SOURCE) \
2130 tests/stub_ETag.cc \
2134 tests/stub_libauth.cc \
2135 tests/stub_fatal.cc \
2153 tests/stub_HttpControlMsg.cc \
2154 HttpHeaderFieldStat.h \
2157 HttpHdrContRange.cc \
2160 HttpHdrScTarget.cc \
2163 HttpHeaderFieldInfo.h \
2165 HttpHeaderTools.cc \
2185 tests/stub_libmem.cc \
2199 peer_proxy_negotiate_auth.h \
2200 peer_proxy_negotiate_auth.cc \
2203 peer_sourcehash.cc \
2210 tests/stub_redirect.cc \
2214 tests/stub_SBufDetailedStats.cc \
2230 tests/stub_store_digest.cc \
2242 StoreFileSystem.cc \
2244 tests/stub_StoreMeta.cc \
2245 StoreMetaUnpacker.cc \
2246 StoreSwapLogData.cc \
2250 tests/stub_SwapDir.cc \
2252 tests/test_http_range.cc \
2253 tests/stub_external_acl.cc \
2254 tests/stub_ipc_Forwarder.cc \
2255 tests/stub_libdiskio.cc \
2256 tests/stub_libeui.cc \
2257 tests/stub_libsecurity.cc \
2258 tests/stub_main_cc.cc \
2259 tests/stub_MemStore.cc \
2260 tests/stub_store_stats.cc \
2261 tests/stub_EventLoop.cc \
2265 tests/stub_tunnel.cc \
2271 tests/stub_wccp2.cc \
2273 tests/stub_whois.cc \
2277 nodist_tests_test_http_range_SOURCES = \
2279 tests_test_http_range_LDADD = \
2281 clients/libclients.la \
2282 servers/libservers.la \
2284 helper/libhelper.la \
2286 parser/libparser.la \
2291 parser/libparser.la \
2298 format/libformat.la \
2300 $(ADAPTATION_LIBS) \
2310 $(top_builddir)/lib/libmisccontainers.la \
2311 $(top_builddir)/lib/libmiscencoding.la \
2312 $(top_builddir)/lib/libmiscutil.la \
2317 $(LIBCPPUNIT_LIBS) \
2320 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2322 ## Tests of parser/* objects
2323 tests_testTokenizer_SOURCES = \
2324 tests/testTokenizer.h \
2325 tests/testTokenizer.cc
2326 nodist_tests_testTokenizer_SOURCES = \
2327 parser/Tokenizer.h \
2331 tests/stub_debug.cc \
2332 tests/stub_libmem.cc \
2333 tests/stub_time.cc \
2334 tests/stub_SBufDetailedStats.cc
2335 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2336 tests_testTokenizer_LDADD = \
2337 parser/libparser.la \
2340 $(top_builddir)/lib/libmiscutil.la \
2341 $(LIBCPPUNIT_LIBS) \
2345 tests_testHttp1Parser_SOURCES = \
2349 tests/stub_MemObject.cc \
2354 tests/stub_SBufDetailedStats.cc \
2355 tests/stub_cache_cf.cc \
2356 tests/stub_cache_manager.cc \
2357 tests/stub_comm.cc \
2358 tests/stub_cbdata.cc \
2359 tests/stub_debug.cc \
2360 tests/stub_event.cc \
2361 tests/stub_HelperChildConfig.cc \
2362 tests/stub_libmem.cc \
2363 tests/stub_libsecurity.cc \
2364 tests/stub_stmem.cc \
2365 tests/stub_store.cc \
2366 tests/stub_store_stats.cc \
2368 tests/stub_tools.cc \
2369 tests/testHttp1Parser.cc \
2370 tests/testHttp1Parser.h \
2371 tests/stub_time.cc \
2375 nodist_tests_testHttp1Parser_SOURCES = \
2377 tests_testHttp1Parser_LDADD= \
2379 parser/libparser.la \
2385 $(top_builddir)/lib/libmiscutil.la \
2387 $(LIBCPPUNIT_LIBS) \
2390 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2392 ## Tests of the HttpRequest module.
2393 tests_testHttpRequest_SOURCES = \
2398 tests/stub_libmem.cc \
2400 tests/testHttpRequest.h \
2401 tests/testHttpRequest.cc \
2402 tests/testHttpRequestMethod.h \
2403 tests/testHttpRequestMethod.cc \
2404 tests/stub_libauth.cc \
2405 tests/stub_main_cc.cc \
2406 tests/stub_ipc_Forwarder.cc \
2407 tests/stub_libdiskio.cc \
2408 tests/stub_libeui.cc \
2409 tests/stub_store_stats.cc \
2410 tests/stub_EventLoop.cc \
2420 tests/stub_CacheDigest.cc \
2424 tests/stub_carp.cc \
2430 client_side_reply.cc \
2431 client_side_request.cc \
2434 tests/stub_CollapsedForwarding.cc \
2441 $(DELAY_POOL_SOURCE) \
2448 tests/stub_ETag.cc \
2450 ExternalACLEntry.cc \
2452 tests/stub_fatal.cc \
2468 tests/stub_HttpControlMsg.cc \
2471 HttpHeaderFieldInfo.h \
2473 HttpHeaderTools.cc \
2474 HttpHeaderFieldStat.h \
2477 HttpHdrContRange.cc \
2480 HttpHdrScTarget.cc \
2491 tests/stub_libsecurity.cc \
2510 peer_proxy_negotiate_auth.h \
2511 peer_proxy_negotiate_auth.cc \
2514 peer_sourcehash.cc \
2522 tests/stub_libauth_acls.cc \
2523 tests/stub_redirect.cc \
2527 tests/stub_SBufDetailedStats.cc \
2543 tests/stub_store_digest.cc \
2555 StoreFileSystem.cc \
2557 tests/stub_StoreMeta.cc \
2558 StoreMetaUnpacker.cc \
2559 StoreSwapLogData.cc \
2566 tests/stub_tunnel.cc \
2567 tests/stub_SwapDir.cc \
2573 tests/stub_wccp2.cc \
2575 tests/stub_whois.cc \
2580 nodist_tests_testHttpRequest_SOURCES = \
2582 tests_testHttpRequest_LDADD = \
2584 clients/libclients.la \
2585 servers/libservers.la \
2586 helper/libhelper.la \
2593 parser/libparser.la \
2598 parser/libparser.la \
2607 format/libformat.la \
2611 $(ADAPTATION_LIBS) \
2613 $(top_builddir)/lib/libmisccontainers.la \
2614 $(top_builddir)/lib/libmiscencoding.la \
2615 $(top_builddir)/lib/libmiscutil.la \
2620 $(LIBCPPUNIT_LIBS) \
2623 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2625 ## Tests for icmp/* objects
2626 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2627 tests_testIcmp_SOURCES = \
2630 nodist_tests_testIcmp_SOURCES = \
2633 tests/stub_debug.cc \
2634 tests/stub_libmem.cc \
2635 tests/stub_SBuf.cc \
2638 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2639 tests_testIcmp_LDADD=\
2640 icmp/libicmpcore.la \
2643 $(LIBCPPUNIT_LIBS) \
2647 tests_testNetDb_SOURCES = \
2648 tests/testNetDb.cc \
2650 nodist_tests_testNetDb_SOURCES = \
2652 tests/stub_debug.cc \
2653 tests/stub_libmem.cc \
2654 tests/stub_SBuf.cc \
2657 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2658 tests_testNetDb_LDADD = \
2662 $(top_builddir)/lib/libmisccontainers.la \
2663 $(LIBCPPUNIT_LIBS) \
2667 ## Tests for ip/* objects
2668 tests_testIpAddress_SOURCES= \
2669 tests/testAddress.cc \
2671 nodist_tests_testIpAddress_SOURCES= \
2673 tests/stub_debug.cc \
2674 tests/stub_libmem.cc \
2676 tests_testIpAddress_LDADD= \
2679 $(LIBCPPUNIT_LIBS) \
2682 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2684 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2685 ## first line - what we are testing.
2686 tests_testStore_SOURCES= \
2688 tests/stub_CacheDigest.cc \
2691 tests/stub_CollapsedForwarding.cc \
2694 $(DELAY_POOL_SOURCE) \
2701 tests/stub_fatal.cc \
2704 HttpHeaderFieldStat.h \
2707 HttpHdrContRange.cc \
2710 HttpHdrScTarget.cc \
2711 HttpHeaderFieldInfo.h \
2713 HttpHeaderTools.cc \
2741 tests/stub_StoreMeta.cc \
2742 StoreMetaUnpacker.cc \
2743 StoreSwapLogData.cc \
2746 tests/stub_SBufDetailedStats.cc \
2750 tests/CapturingStoreEntry.h \
2752 tests/stub_access_log.cc \
2755 tests/stub_cache_cf.cc \
2756 tests/stub_cache_manager.cc \
2757 tests/stub_client_side_request.cc \
2758 tests/stub_comm.cc \
2759 tests/stub_debug.cc \
2760 tests/stub_errorpage.cc \
2764 tests/stub_helper.cc \
2765 tests/stub_HelperChildConfig.cc \
2766 tests/stub_http.cc \
2767 tests/stub_libauth.cc \
2768 tests/stub_libeui.cc \
2769 tests/stub_libdiskio.cc \
2770 tests/stub_libformat.cc \
2771 tests/stub_libsecurity.cc \
2772 tests/stub_libsslsquid.cc \
2775 tests/stub_HttpReply.cc \
2776 tests/stub_HttpRequest.cc \
2777 tests/stub_libcomm.cc \
2778 tests/stub_MemStore.cc \
2780 tests/stub_mime.cc \
2781 tests/stub_Port.cc \
2782 tests/stub_stat.cc \
2783 tests/stub_store_client.cc \
2784 tests/stub_store_stats.cc \
2786 tests/stub_store_rebuild.cc \
2787 tests/stub_store_swapout.cc \
2790 tests/stub_tools.cc \
2791 tests/stub_UdsOp.cc \
2792 tests/testPackableStream.cc \
2793 tests/testPackableStream.h \
2794 tests/testStore.cc \
2796 tests/testStoreController.cc \
2797 tests/testStoreController.h \
2798 tests/testStoreHashIndex.cc \
2799 tests/testStoreHashIndex.h \
2800 tests/testStoreSupport.cc \
2801 tests/testStoreSupport.h \
2802 tests/TestSwapDir.cc \
2803 tests/TestSwapDir.h \
2804 tests/stub_time.cc \
2809 nodist_tests_testStore_SOURCES= \
2815 tests_testStore_LDADD= \
2818 parser/libparser.la \
2833 DiskIO/libdiskio.la \
2834 $(top_builddir)/lib/libmisccontainers.la \
2835 $(top_builddir)/lib/libmiscencoding.la \
2836 $(top_builddir)/lib/libmiscutil.la \
2841 $(LIBCPPUNIT_LIBS) \
2844 tests_testStore_LDFLAGS = $(LIBADD_DL)
2846 ## string needs mem.cc.
2847 ## mem.cc needs ClientInfo.h
2848 ## libsquid pulls in SquidConfig and children. stub them.
2849 tests_testString_SOURCES = \
2853 tests/stub_SBufDetailedStats.cc \
2854 tests/testString.cc \
2855 tests/testString.h \
2857 tests/stub_cache_cf.cc \
2858 tests/stub_cache_manager.cc \
2859 tests/stub_cbdata.cc \
2860 tests/stub_debug.cc \
2861 tests/stub_HelperChildConfig.cc \
2862 tests/stub_libmem.cc \
2864 tests/stub_tools.cc \
2865 tests/stub_time.cc \
2868 nodist_tests_testString_SOURCES = \
2870 tests_testString_LDADD = \
2875 $(top_builddir)/lib/libmiscutil.la \
2878 $(LIBCPPUNIT_LIBS) \
2881 tests_testString_LDFLAGS = $(LIBADD_DL)
2893 DiskIO/libdiskio.la \
2898 tests_testUfs_SOURCES = \
2903 tests/stub_cache_manager.cc \
2904 tests/stub_client_db.cc \
2905 tests/stub_CollapsedForwarding.cc \
2906 tests/stub_HelperChildConfig.cc \
2909 tests/stub_ipcache.cc \
2910 tests/stub_libeui.cc \
2911 tests/stub_libicmp.cc \
2912 tests/stub_liblog.cc \
2913 tests/stub_MemStore.cc \
2914 tests/stub_neighbors.cc \
2915 tests/stub_pconn.cc \
2916 tests/stub_Port.cc \
2917 tests/stub_UdsOp.cc \
2919 tests/stub_internal.cc \
2920 tests/stub_libformat.cc \
2921 tests/stub_libsecurity.cc \
2922 tests/stub_stat.cc \
2924 tests/stub_store_rebuild.cc \
2925 tests/stub_store_stats.cc \
2927 tests/stub_fatal.cc \
2951 StoreSwapLogData.cc \
2953 StoreMetaUnpacker.cc \
2954 $(STOREMETA_SOURCE) \
2955 StoreFileSystem.cc \
2962 $(DELAY_POOL_SOURCE) \
2964 tests/stub_CacheDigest.cc \
2976 tests/stub_cache_cf.cc \
2977 tests/stub_helper.cc \
2979 tests/stub_SBufDetailedStats.cc \
2981 tests/stub_debug.cc \
2982 tests/stub_client_side_request.cc \
2983 tests/stub_http.cc \
2984 tests/stub_libauth.cc \
2988 tests/stub_mime.cc \
2989 HttpHeaderFieldInfo.h \
2991 HttpHeaderTools.cc \
2996 HttpHdrContRange.cc \
2997 HttpHeaderFieldStat.h \
3001 HttpHdrScTarget.cc \
3011 tests/stub_errorpage.cc \
3012 tests/stub_HttpRequest.cc \
3014 tests/stub_access_log.cc \
3017 tests/stub_store_client.cc \
3019 tests/stub_tools.cc \
3020 tests/testStoreSupport.cc \
3021 tests/testStoreSupport.h \
3026 nodist_tests_testUfs_SOURCES = \
3032 tests_testUfs_LDADD = \
3034 parser/libparser.la \
3046 DiskIO/libdiskio.la \
3057 $(ADAPTATION_LIBS) \
3059 $(top_builddir)/lib/libmisccontainers.la \
3060 $(top_builddir)/lib/libmiscencoding.la \
3061 $(top_builddir)/lib/libmiscutil.la \
3065 $(LIBCPPUNIT_LIBS) \
3068 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3069 tests_testUfs_DEPENDENCIES = \
3072 check_PROGRAMS += testRefCount
3073 testRefCount_SOURCES= \
3076 tests/stub_cbdata.cc \
3077 tests/stub_debug.cc \
3078 tests/stub_libmem.cc \
3079 tests/stub_MemBuf.cc \
3080 tests/testRefCount.cc
3081 testRefCount_LDADD = \
3083 $(top_builddir)/lib/libmiscutil.la \
3087 tests_testRock_SOURCES = \
3092 CollapsedForwarding.h \
3093 CollapsedForwarding.cc \
3094 tests/stub_CacheDigest.cc \
3111 HttpHeaderFieldStat.h \
3115 HttpHdrContRange.cc \
3118 HttpHdrScTarget.cc \
3121 HttpHeaderFieldInfo.h \
3123 HttpHeaderTools.cc \
3141 tests/stub_StatHist.cc \
3144 tests/stub_stat.cc \
3146 StoreFileSystem.cc \
3148 StoreMetaUnpacker.cc \
3149 $(STOREMETA_SOURCE) \
3150 StoreSwapLogData.cc \
3156 tests/stub_SBufDetailedStats.cc \
3164 tests/testStoreSupport.cc \
3165 tests/testStoreSupport.h \
3167 tests/stub_access_log.cc \
3169 tests/stub_cache_cf.cc \
3171 tests/stub_cache_manager.cc \
3172 tests/stub_client_db.cc \
3173 tests/stub_client_side_request.cc \
3174 tests/stub_debug.cc \
3175 tests/stub_errorpage.cc \
3176 tests/stub_HelperChildConfig.cc \
3177 tests/stub_http.cc \
3178 tests/stub_HttpRequest.cc \
3179 tests/stub_libauth.cc \
3182 tests/stub_ipcache.cc \
3183 tests/stub_libeui.cc \
3184 tests/stub_libformat.cc \
3185 tests/stub_libicmp.cc \
3186 tests/stub_liblog.cc \
3187 tests/stub_libmgr.cc \
3188 tests/stub_libsecurity.cc \
3189 tests/stub_MemStore.cc \
3191 tests/stub_mime.cc \
3192 tests/stub_neighbors.cc \
3193 tests/stub_Port.cc \
3194 tests/stub_pconn.cc \
3195 tests/stub_store_client.cc \
3197 tests/stub_store_rebuild.cc \
3198 tests/stub_store_stats.cc \
3200 tests/stub_tools.cc \
3205 $(DELAY_POOL_SOURCE) \
3207 nodist_tests_testRock_SOURCES = \
3213 tests_testRock_LDADD = \
3215 parser/libparser.la \
3222 DiskIO/libdiskio.la \
3233 $(ADAPTATION_LIBS) \
3235 $(top_builddir)/lib/libmisccontainers.la \
3236 $(top_builddir)/lib/libmiscencoding.la \
3237 $(top_builddir)/lib/libmiscutil.la \
3241 $(LIBCPPUNIT_LIBS) \
3244 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3245 tests_testRock_DEPENDENCIES = \
3248 ## Tests of the URL module.
3249 ## TODO: Trim this down once the insanity is over.
3250 tests_testURL_SOURCES = \
3257 tests/stub_cache_manager.cc \
3259 tests/stub_CacheDigest.cc \
3263 tests/stub_carp.cc \
3269 client_side_reply.cc \
3270 client_side_request.cc \
3273 tests/stub_CollapsedForwarding.cc \
3280 $(DELAY_POOL_SOURCE) \
3290 ExternalACLEntry.cc \
3292 tests/stub_fatal.cc \
3310 tests/stub_HttpControlMsg.cc \
3311 HttpHeaderFieldStat.h \
3314 HttpHdrContRange.cc \
3317 HttpHdrScTarget.cc \
3320 HttpHeaderFieldInfo.h \
3322 HttpHeaderTools.cc \
3337 tests/stub_libeui.cc \
3357 peer_proxy_negotiate_auth.h \
3358 peer_proxy_negotiate_auth.cc \
3361 peer_sourcehash.cc \
3367 tests/stub_redirect.cc \
3371 tests/stub_SBufDetailedStats.cc \
3381 tests/stub_StatHist.cc \
3387 tests/stub_store_digest.cc \
3399 StoreFileSystem.cc \
3401 tests/stub_StoreMeta.cc \
3402 StoreMetaUnpacker.cc \
3403 StoreSwapLogData.cc \
3408 tests/stub_SwapDir.cc \
3410 tests/stub_debug.cc \
3411 tests/stub_libauth_acls.cc \
3412 tests/stub_libauth.cc \
3413 tests/stub_libdiskio.cc \
3414 tests/stub_libmem.cc \
3415 tests/stub_libsecurity.cc \
3416 tests/stub_main_cc.cc \
3417 tests/stub_ipc_Forwarder.cc \
3418 tests/stub_store_stats.cc \
3421 tests/testUriScheme.cc \
3422 tests/testUriScheme.h \
3423 tests/stub_time.cc \
3424 tests/stub_EventLoop.cc \
3427 tests/stub_tunnel.cc \
3432 tests/stub_wccp2.cc \
3434 tests/stub_whois.cc \
3439 nodist_tests_testURL_SOURCES = \
3441 tests_testURL_LDADD = \
3443 clients/libclients.la \
3444 servers/libservers.la \
3445 helper/libhelper.la \
3448 parser/libparser.la \
3466 format/libformat.la \
3471 $(ADAPTATION_LIBS) \
3473 $(top_builddir)/lib/libmisccontainers.la \
3474 $(top_builddir)/lib/libmiscencoding.la \
3475 $(top_builddir)/lib/libmiscutil.la \
3479 $(LIBCPPUNIT_LIBS) \
3482 tests_testURL_LDFLAGS = $(LIBADD_DL)
3484 tests_testSBuf_SOURCES= \
3487 tests/SBufFindTest.h \
3488 tests/SBufFindTest.cc \
3489 tests/stub_SBufDetailedStats.cc \
3490 tests/stub_time.cc \
3491 tests/stub_debug.cc \
3492 tests/stub_fatal.cc \
3493 tests/stub_libmem.cc
3494 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3495 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3496 tests_testSBuf_LDADD= \
3499 $(LIBCPPUNIT_LIBS) \
3503 tests_testSBufList_SOURCES= \
3504 tests/testSBufList.h \
3505 tests/testSBufList.cc \
3506 tests/stub_SBufDetailedStats.cc \
3507 tests/stub_time.cc \
3508 tests/stub_debug.cc \
3509 tests/stub_fatal.cc \
3510 tests/stub_libmem.cc
3511 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3512 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3513 tests_testSBufList_LDADD=\
3516 $(LIBCPPUNIT_LIBS) \
3520 tests_testConfigParser_SOURCES = \
3522 tests/stub_MemBuf.cc \
3523 tests/stub_time.cc \
3524 tests/stub_SBufDetailedStats.cc \
3528 tests/stub_fatal.cc \
3529 tests/testConfigParser.cc \
3530 tests/testConfigParser.h \
3532 tests/stub_cache_cf.cc \
3533 tests/stub_cbdata.cc \
3534 tests/stub_debug.cc \
3535 tests/stub_libmem.cc \
3536 tests/stub_HelperChildConfig.cc \
3538 tests/stub_tools.cc \
3541 nodist_tests_testConfigParser_SOURCES = \
3543 tests_testConfigParser_LDADD = \
3548 $(top_builddir)/lib/libmiscutil.la \
3551 $(LIBCPPUNIT_LIBS) \
3554 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3556 tests_testStatHist_SOURCES = \
3557 tests/stub_cbdata.cc \
3559 tests/stub_fatal.cc \
3560 tests/stub_MemBuf.cc \
3561 tests/stub_SBufDetailedStats.cc \
3565 tests/stub_cache_manager.cc \
3566 tests/stub_comm.cc \
3567 tests/stub_debug.cc \
3568 tests/stub_DelayId.cc \
3569 tests/stub_HelperChildConfig.cc \
3570 tests/stub_libmem.cc \
3571 tests/stub_MemObject.cc \
3573 tests/stub_mime.cc \
3574 tests/stub_pconn.cc \
3575 tests/stub_stmem.cc \
3577 tests/stub_store.cc \
3578 tests/stub_store_stats.cc \
3581 tests/stub_tools.cc \
3582 tests/testStatHist.cc \
3583 tests/testStatHist.h
3584 nodist_tests_testStatHist_SOURCES = \
3586 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3587 tests_testStatHist_LDADD = \
3590 $(top_builddir)/lib/libmiscutil.la \
3591 $(top_builddir)/lib/libmisccontainers.la \
3592 $(LIBCPPUNIT_LIBS) \
3595 tests_testLookupTable_SOURCES = \
3596 tests/testLookupTable.h \
3597 tests/testLookupTable.cc \
3598 tests/stub_debug.cc \
3599 tests/stub_libmem.cc \
3600 tests/stub_SBufDetailedStats.cc \
3602 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3603 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3604 tests_testLookupTable_LDADD = \
3607 $(LIBCPPUNIT_LIBS) \
3611 tests_testEnumIterator_SOURCES = \
3612 base/EnumIterator.h \
3613 tests/stub_debug.cc \
3614 tests/stub_libmem.cc \
3615 tests/stub_SBuf.cc \
3616 tests/testEnumIterator.h \
3617 tests/testEnumIterator.cc
3618 nodist_tests_testEnumIterator_SOURCES = \
3620 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3621 tests_testEnumIterator_LDADD = \
3623 $(LIBCPPUNIT_LIBS) \
3627 tests_testYesNoNone_SOURCES = \
3628 tests/testYesNoNone.cc \
3629 tests/testYesNoNone.h
3630 nodist_tests_testYesNoNone_SOURCES = \
3632 tests/stub_debug.cc \
3633 tests/stub_libmem.cc \
3634 tests/stub_SBuf.cc \
3636 tests_testYesNoNone_LDADD= \
3638 $(LIBCPPUNIT_LIBS) \
3641 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3643 tests_testMem_SOURCES = \
3646 nodist_tests_testMem_SOURCES = \
3647 tests/stub_debug.cc \
3648 tests/stub_SBuf.cc \
3649 tests/stub_time.cc \
3651 tests_testMem_LDADD= \
3654 $(top_builddir)/lib/libmiscutil.la \
3655 $(LIBCPPUNIT_LIBS) \
3658 tests_testMem_LDFLAGS = $(LIBADD_DL)
3660 TESTS += testHeaders
3662 ## Special Universal .h dependency test script
3663 ## aborts if error encountered
3664 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3665 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3666 ## src/repl/ has no .h files and its own makefile.
3668 CLEANFILES += testHeaders