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 \
261 CompletionDispatcher.cc \
262 CompletionDispatcher.h \
276 $(DELAY_POOL_SOURCE) \
297 ExternalACLEntry.cc \
320 HierarchyLogEntry.h \
324 HttpHeaderFieldStat.h \
332 HttpHdrContRange.cc \
339 HttpHeaderFieldInfo.h \
365 $(LEAKFINDERSOURCE) \
390 $(XPROF_STATS_SOURCE) \
395 peer_proxy_negotiate_auth.h \
396 peer_proxy_negotiate_auth.cc \
419 sbuf/StringConvert.h \
459 StoreMetaUnpacker.cc \
460 StoreMetaUnpacker.h \
461 $(STOREMETA_SOURCE) \
465 StoreSwapLogData.cc \
492 XactionInitiator.cc \
496 EXTRA_squid_SOURCES = \
499 $(DELAY_POOL_ALL_SOURCE) \
509 $(WIN32_ALL_SOURCE) \
510 $(LOADABLE_MODULES_SOURCES)
529 CLEANFILES += $(BUILT_SOURCES)
531 nodist_squid_SOURCES = \
541 clients/libclients.la \
542 servers/libservers.la \
544 helper/libhelper.la \
551 DiskIO/libdiskio.la \
554 security/libsecurity.la \
558 parser/libparser.la \
562 format/libformat.la \
574 $(top_builddir)/lib/libmisccontainers.la \
575 $(top_builddir)/lib/libmiscencoding.la \
576 $(top_builddir)/lib/libmiscutil.la \
585 if ENABLE_LOADABLE_MODULES
586 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
587 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
588 squid_LDFLAGS = -export-dynamic -dlopen force
589 ## when static module linking is supported and enabled:
590 ## squid_LDFLAGS = -all-static -dlopen self
592 ## LTDL headers require their local include path...
593 AM_CPPFLAGS += $(INCLTDL)
596 ## Kerberos libraries require their include path...
597 AM_CPPFLAGS += $(KRB5INCS)
600 unlinkd_SOURCES = unlinkd_daemon.cc
605 recv_announce_SOURCES = recv-announce.cc
607 ## What requires what..
608 ## many things want ACLChecklist.cc
609 ## ACLChecklist.cc wants AuthUserRequest.cc
610 ## ACLChecklist.cc wants AuthScheme.cc
611 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
612 ## ACLProxyAuth.cc wants ACLUserData
613 ## ACLProxyAuth.cc wants ACLRegexData
614 ## cache_cf.cc wants $(AUTH_LIBS)
615 ## cache_cf.cc wants store/libstore.la
616 ## cache_cf.cc wants AnyP::PortCfg
617 ## client_side wants client_db
618 ## client_db wants SNMP_SOURCE
619 ## snmp_core wants ACLStringData
620 ## tools.cc wants ip/libip.la
621 ## client_side.cc wants ip/libip.la
622 ## libbase.la wants cbdata.*
623 ## libbase.la wants MemBuf.*
637 tests/stub_StoreMeta.cc \
638 StoreMetaUnpacker.cc \
645 helper/ChildConfig.h \
646 tests/stub_HelperChildConfig.cc \
673 ufsdump_DEPENDENCIES = \
685 DiskIO/libdiskio.la \
688 nodist_ufsdump_SOURCES = \
693 squid.conf.documented \
718 include $(srcdir)/tests/Stub.list
726 mk-string-arrays.awk \
732 # Make location configure settings available to the code
733 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
735 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
737 globals.cc: globals.h mk-globals-c.awk
738 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
740 ## Generate files containing string arrays for various enums....
741 hier_code.cc: hier_code.h mk-string-arrays.awk
742 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
744 err_type.cc: err_type.h mk-string-arrays.awk
745 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
747 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
748 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
750 lookup_t.cc: lookup_t.h mk-string-arrays.awk
751 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
753 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
754 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
756 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
757 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
760 ## other generated files...
762 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
763 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
765 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
766 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
768 ## If autodependency works well this is not needed anymore
769 cache_cf.o: cf_parser.cci
771 # cf_gen builds the configuration files.
772 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
773 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
775 # squid.conf.default is built by cf_gen when making cf_parser.cci
776 squid.conf.default squid.conf.documented: cf_parser.cci
779 cf_parser.cci: cf.data cf_gen$(EXEEXT)
780 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
782 # The cf_gen_defines.cci is auto-generated and does not exist when the
783 # dependencies computed. We need to add its include files (autoconf.h) here
784 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
785 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
788 ## FIXME: generate a sed command file from configure. Then this doesn't
789 ## depend on the Makefile.
790 cf.data: cf.data.pre Makefile
792 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
793 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
794 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
795 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
796 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
797 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
798 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
799 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
800 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
801 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
802 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
803 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
804 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
805 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
806 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
807 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
808 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
809 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
810 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
811 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
812 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
813 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
814 -f $(srcdir)/cf.data.sed \
815 < $(srcdir)/cf.data.pre >$@
817 repl_modules.cc: repl_modules.sh Makefile
818 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
820 include $(top_srcdir)/doc/manuals/Substitute.am
822 squid.8: $(srcdir)/squid.8.in Makefile
823 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
826 EXTRA_DIST += squid.8.in
827 CLEANFILES += squid.8
829 install-data-local: install-sysconfDATA install-dataDATA
830 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
831 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
833 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
834 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
836 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
837 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
839 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
840 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
842 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
843 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
844 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
845 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
846 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
847 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
848 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
850 uninstall-local: squid.conf.default
851 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
852 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
854 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
857 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
858 cp $(top_srcdir)/test-suite/test_tools.cc .
860 # stock tools for unit tests - library independent versions of dlink_list
862 # globals.cc is needed by test_tools.cc.
863 # Neither of these should be disted from here.
870 tests/testBoilerplate \
871 tests/testCacheManager \
872 tests/testCharacterSet \
875 tests/testEnumIterator \
877 tests/testEventLoop \
878 tests/test_http_range \
879 tests/testTokenizer \
880 tests/testHttp1Parser \
881 tests/testHttpReply \
882 tests/testHttpRequest \
884 tests/testIpAddress \
892 tests/testConfigParser \
894 tests/testLookupTable \
898 check_PROGRAMS += tests/testRock
901 check_PROGRAMS += tests/testUfs
904 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
905 TESTS += $(check_PROGRAMS)
907 ### Template for new Unit Test Program
908 ## - add tests/testX to check_PROGRAMS above.
909 ## - copy template below and substitue X for class name
910 ## - add other component .(h|cc) files needed to link and run tests
912 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
914 #tests_testX_SOURCES=\
919 #nodist_tests_testX_SOURCES=\
920 # tests/stubs_as_needed.cc\
922 #tests_testX_LDFLAGS = $(LIBADD_DL)
924 # $(LIBCPPUNIT_LIBS) \
928 # - add other component .(h|cc) files needed to link and run tests
929 tests_testHttpReply_SOURCES=\
935 tests/stub_fatal.cc \
938 HttpHeaderFieldStat.h \
941 HttpHdrContRange.cc \
951 HttpHeaderFieldInfo.h \
968 tests/stub_SBufDetailedStats.cc \
973 tests/stub_access_log.cc \
975 tests/stub_cache_cf.cc \
976 tests/stub_cache_manager.cc \
978 tests/stub_debug.cc \
979 tests/stub_errorpage.cc \
980 tests/stub_event.cc \
982 tests/stub_HelperChildConfig.cc \
983 tests/stub_libformat.cc \
984 tests/stub_libauth.cc \
985 tests/stub_libcomm.cc \
986 tests/stub_libmgr.cc \
987 tests/stub_libsecurity.cc \
988 tests/stub_libsslsquid.cc \
992 tests/stub_StatHist.cc \
994 tests/stub_store.cc \
995 tests/stub_store_stats.cc \
997 tests/stub_tools.cc \
998 tests/stub_HttpRequest.cc \
999 tests/testHttpReply.cc \
1000 tests/testHttpReply.h \
1001 tests/stub_time.cc \
1005 nodist_tests_testHttpReply_SOURCES=\
1008 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1009 tests_testHttpReply_LDADD=\
1012 parser/libparser.la \
1022 $(top_builddir)/lib/libmisccontainers.la \
1023 $(top_builddir)/lib/libmiscencoding.la \
1024 $(top_builddir)/lib/libmiscutil.la \
1027 $(LIBCPPUNIT_LIBS) \
1031 tests_testACLMaxUserIP_SOURCES= \
1034 tests/stub_CollapsedForwarding.cc \
1037 tests/stub_ETag.cc \
1040 tests/stub_fatal.cc \
1046 HttpHeaderFieldInfo.h \
1048 HttpHeaderTools.cc \
1049 HttpHdrContRange.cc \
1051 HttpHeaderFieldStat.h \
1055 HttpHdrScTarget.cc \
1064 tests/stub_libsecurity.cc \
1071 tests/stub_StatHist.cc \
1073 tests/stub_SBufDetailedStats.cc \
1076 tests/stub_StoreMeta.cc \
1077 StoreMetaUnpacker.cc \
1078 StoreSwapLogData.cc \
1083 tests/stub_SwapDir.cc \
1086 tests/stub_access_log.cc \
1088 tests/stub_cache_cf.cc \
1089 tests/stub_client_side.cc \
1090 tests/stub_debug.cc \
1091 tests/stub_DelayId.cc \
1092 tests/stub_errorpage.cc \
1095 tests/stub_HttpRequest.cc \
1096 tests/stub_HttpReply.cc \
1097 tests/stub_ipc_TypedMsgHdr.cc \
1098 tests/stub_libauth.cc \
1099 tests/stub_libcomm.cc \
1100 tests/stub_libdiskio.cc \
1101 tests/stub_libformat.cc \
1102 tests/stub_libmem.cc \
1103 tests/stub_libsslsquid.cc \
1104 tests/stub_MemObject.cc \
1105 tests/stub_MemStore.cc \
1107 tests/stub_mime.cc \
1108 tests/stub_pconn.cc \
1109 tests/stub_Port.cc \
1111 tests/stub_store.cc \
1112 tests/stub_store_client.cc \
1114 tests/stub_store_rebuild.cc \
1115 tests/stub_store_stats.cc \
1116 tests/stub_store_swapout.cc \
1118 tests/stub_tools.cc \
1119 tests/stub_cache_manager.cc \
1120 tests/stub_UdsOp.cc \
1121 tests/testACLMaxUserIP.cc \
1122 tests/testACLMaxUserIP.h \
1123 tests/stub_time.cc \
1129 nodist_tests_testACLMaxUserIP_SOURCES= \
1131 tests_testACLMaxUserIP_LDADD= \
1133 helper/libhelper.la \
1135 parser/libparser.la \
1148 $(top_builddir)/lib/libmisccontainers.la \
1149 $(top_builddir)/lib/libmiscencoding.la \
1150 $(top_builddir)/lib/libmiscutil.la \
1154 $(LIBCPPUNIT_LIBS) \
1157 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1159 ## a demonstration test that does nothing but shows the salient points
1160 ## involved in writing tests.
1161 tests_testBoilerplate_SOURCES = \
1162 tests/testBoilerplate.cc \
1163 tests/testBoilerplate.h \
1164 tests/stub_debug.cc \
1165 tests/stub_libmem.cc \
1166 tests/stub_SBuf.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 \
1192 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1193 tests_testCharacterSet_LDADD= \
1195 $(LIBCPPUNIT_LIBS) \
1199 ## Tests of the CacheManager module.
1200 tests_testCacheManager_SOURCES = \
1207 tests/testCacheManager.cc \
1208 tests/testCacheManager.h \
1209 tests/stub_main_cc.cc \
1210 tests/stub_HttpControlMsg.cc \
1211 tests/stub_ipc_Forwarder.cc \
1212 tests/stub_store_stats.cc \
1213 tests/stub_EventLoop.cc \
1224 tests/stub_CacheDigest.cc \
1226 tests/stub_carp.cc \
1232 client_side_reply.cc \
1233 client_side_request.cc \
1236 tests/stub_CollapsedForwarding.cc \
1243 $(DELAY_POOL_SOURCE) \
1250 tests/stub_ETag.cc \
1253 ExternalACLEntry.cc \
1255 tests/stub_fatal.cc \
1275 HttpHeaderFieldInfo.h \
1277 HttpHeaderTools.cc \
1278 HttpHeaderFieldStat.h \
1281 HttpHdrContRange.cc \
1284 HttpHdrScTarget.cc \
1295 tests/stub_libsecurity.cc \
1314 peer_proxy_negotiate_auth.h \
1315 peer_proxy_negotiate_auth.cc \
1318 peer_sourcehash.cc \
1326 tests/stub_redirect.cc \
1330 tests/stub_SBufDetailedStats.cc \
1342 tests/stub_libauth_acls.cc \
1343 tests/stub_libauth.cc \
1344 tests/stub_libdiskio.cc \
1345 tests/stub_StatHist.cc \
1351 tests/stub_store_digest.cc \
1363 StoreFileSystem.cc \
1365 tests/stub_StoreMeta.cc \
1366 StoreMetaUnpacker.cc \
1367 StoreSwapLogData.cc \
1371 tests/stub_tunnel.cc \
1372 tests/stub_SwapDir.cc \
1379 tests/stub_wccp2.cc \
1381 tests/stub_whois.cc \
1386 nodist_tests_testCacheManager_SOURCES = \
1388 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1389 tests_testCacheManager_LDADD = \
1391 clients/libclients.la \
1392 servers/libservers.la \
1394 helper/libhelper.la \
1396 parser/libparser.la \
1409 format/libformat.la \
1411 $(ADAPTATION_LIBS) \
1421 $(top_builddir)/lib/libmisccontainers.la \
1422 $(top_builddir)/lib/libmiscencoding.la \
1423 $(top_builddir)/lib/libmiscutil.la \
1428 $(LIBCPPUNIT_LIBS) \
1431 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1433 tests_testDiskIO_SOURCES = \
1437 tests/stub_CacheDigest.cc \
1441 tests/stub_CollapsedForwarding.cc \
1444 $(DELAY_POOL_SOURCE) \
1448 tests/stub_ETag.cc \
1452 tests/stub_fatal.cc \
1461 HttpHeaderFieldStat.h \
1464 HttpHdrContRange.cc \
1466 HttpHdrScTarget.cc \
1468 HttpHeaderFieldInfo.h \
1470 HttpHeaderTools.cc \
1489 tests/stub_libsecurity.cc \
1493 tests/stub_StatHist.cc \
1495 tests/stub_SBufDetailedStats.cc \
1496 StoreFileSystem.cc \
1498 tests/stub_StoreMeta.cc \
1499 StoreMetaUnpacker.cc \
1500 StoreSwapLogData.cc \
1511 tests/stub_SwapDir.cc \
1514 tests/stub_access_log.cc \
1517 tests/stub_cache_cf.cc \
1518 tests/stub_cache_manager.cc \
1519 tests/stub_client_db.cc \
1520 client_side_request.h \
1521 tests/stub_client_side_request.cc \
1522 tests/stub_debug.cc \
1523 tests/stub_errorpage.cc \
1524 tests/stub_helper.cc \
1525 tests/stub_HelperChildConfig.cc \
1526 tests/stub_HttpRequest.cc \
1527 tests/stub_http.cc \
1530 tests/stub_internal.cc \
1532 tests/stub_ipcache.cc \
1533 tests/stub_libauth_acls.cc \
1534 tests/stub_libauth.cc \
1535 tests/stub_libeui.cc \
1536 tests/stub_libformat.cc \
1537 tests/stub_libicmp.cc \
1538 tests/stub_liblog.cc \
1539 tests/stub_MemStore.cc \
1541 tests/stub_mime.cc \
1542 tests/stub_neighbors.cc \
1543 tests/stub_pconn.cc \
1544 tests/stub_Port.cc \
1545 tests/stub_stat.cc \
1546 tests/stub_store_client.cc \
1547 tests/stub_store_stats.cc \
1549 tests/stub_store_rebuild.cc \
1550 tests/stub_UdsOp.cc \
1551 tests/testDiskIO.cc \
1552 tests/testDiskIO.h \
1553 tests/testStoreSupport.cc \
1554 tests/testStoreSupport.h \
1555 tests/stub_time.cc \
1563 nodist_tests_testDiskIO_SOURCES= \
1569 tests_testDiskIO_LDADD = \
1572 parser/libparser.la \
1583 $(ADAPTATION_LIBS) \
1584 DiskIO/libdiskio.la \
1595 $(top_builddir)/lib/libmisccontainers.la \
1596 $(top_builddir)/lib/libmiscencoding.la \
1597 $(top_builddir)/lib/libmiscutil.la \
1601 $(LIBCPPUNIT_LIBS) \
1604 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1605 tests_testDiskIO_DEPENDENCIES = \
1606 DiskIO/libdiskio.la \
1609 tests_testDns_SOURCES= \
1610 tests/testRFC1035.cc \
1612 nodist_tests_testDns_SOURCES= \
1613 tests/stub_debug.cc \
1614 tests/stub_libmem.cc \
1615 tests/stub_SBuf.cc \
1617 tests_testDns_LDADD= \
1620 $(top_builddir)/lib/libmiscutil.la \
1621 $(LIBCPPUNIT_LIBS) \
1624 tests_testDns_LDFLAGS= $(LIBADD_DL)
1626 tests_testEvent_SOURCES = \
1630 tests/stub_CacheDigest.cc \
1639 tests/stub_carp.cc \
1645 client_side_reply.cc \
1646 client_side_request.cc \
1649 tests/stub_CollapsedForwarding.cc \
1657 $(DELAY_POOL_SOURCE) \
1664 tests/stub_ETag.cc \
1669 ExternalACLEntry.cc \
1672 tests/stub_fatal.cc \
1690 tests/stub_HttpControlMsg.cc \
1693 HttpHeaderFieldInfo.h \
1695 HttpHeaderTools.cc \
1696 HttpHeaderFieldStat.h \
1699 HttpHdrContRange.cc \
1702 HttpHdrScTarget.cc \
1718 tests/stub_libsecurity.cc \
1721 tests/stub_libmem.cc \
1738 peer_proxy_negotiate_auth.h \
1739 peer_proxy_negotiate_auth.cc \
1742 peer_sourcehash.cc \
1748 tests/stub_redirect.cc \
1754 tests/stub_SBufDetailedStats.cc \
1770 tests/stub_store_digest.cc \
1782 StoreFileSystem.cc \
1784 tests/stub_StoreMeta.cc \
1785 StoreMetaUnpacker.cc \
1786 StoreSwapLogData.cc \
1788 tests/stub_SwapDir.cc \
1789 tests/CapturingStoreEntry.h \
1790 tests/testEvent.cc \
1792 tests/stub_main_cc.cc \
1793 tests/stub_ipc_Forwarder.cc \
1794 tests/stub_libauth_acls.cc \
1795 tests/stub_libauth.cc \
1796 tests/stub_libdiskio.cc \
1797 tests/stub_libeui.cc \
1798 tests/stub_store_stats.cc \
1803 tests/stub_tunnel.cc \
1810 tests/stub_wccp2.cc \
1812 tests/stub_whois.cc \
1816 nodist_tests_testEvent_SOURCES = \
1818 tests_testEvent_LDADD = \
1820 clients/libclients.la \
1821 servers/libservers.la \
1823 helper/libhelper.la \
1825 parser/libparser.la \
1838 format/libformat.la \
1840 $(ADAPTATION_LIBS) \
1843 $(top_builddir)/lib/libmisccontainers.la \
1844 $(top_builddir)/lib/libmiscencoding.la \
1845 $(top_builddir)/lib/libmiscutil.la \
1855 $(LIBCPPUNIT_LIBS) \
1858 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1860 ## Tests of the EventLoop module.
1861 tests_testEventLoop_SOURCES = \
1865 tests/stub_CacheDigest.cc \
1874 tests/stub_carp.cc \
1880 client_side_reply.cc \
1881 client_side_request.cc \
1884 tests/stub_CollapsedForwarding.cc \
1892 $(DELAY_POOL_SOURCE) \
1899 tests/stub_ETag.cc \
1904 ExternalACLEntry.cc \
1907 tests/stub_fatal.cc \
1925 tests/stub_HttpControlMsg.cc \
1928 HttpHeaderFieldInfo.h \
1930 HttpHeaderTools.cc \
1931 HttpHeaderFieldStat.h \
1934 HttpHdrContRange.cc \
1937 HttpHdrScTarget.cc \
1957 tests/stub_libmem.cc \
1972 peer_proxy_negotiate_auth.h \
1973 peer_proxy_negotiate_auth.cc \
1976 peer_sourcehash.cc \
1983 tests/stub_redirect.cc \
1986 tests/stub_SBufDetailedStats.cc \
2002 tests/stub_store_digest.cc \
2014 StoreFileSystem.cc \
2016 tests/stub_StoreMeta.cc \
2017 StoreMetaUnpacker.cc \
2018 StoreSwapLogData.cc \
2022 tests/stub_SwapDir.cc \
2023 tests/testEventLoop.cc \
2024 tests/testEventLoop.h \
2025 tests/stub_main_cc.cc \
2026 tests/stub_ipc_Forwarder.cc \
2027 tests/stub_libauth_acls.cc \
2028 tests/stub_libauth.cc \
2029 tests/stub_libdiskio.cc \
2030 tests/stub_libeui.cc \
2031 tests/stub_libsecurity.cc \
2032 tests/stub_store_stats.cc \
2037 tests/stub_tunnel.cc \
2044 tests/stub_wccp2.cc \
2046 tests/stub_whois.cc \
2050 nodist_tests_testEventLoop_SOURCES = \
2052 tests_testEventLoop_LDADD = \
2054 clients/libclients.la \
2055 servers/libservers.la \
2057 helper/libhelper.la \
2059 parser/libparser.la \
2072 format/libformat.la \
2074 $(ADAPTATION_LIBS) \
2077 $(top_builddir)/lib/libmisccontainers.la \
2078 $(top_builddir)/lib/libmiscencoding.la \
2079 $(top_builddir)/lib/libmiscutil.la \
2089 $(LIBCPPUNIT_LIBS) \
2092 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2094 tests_test_http_range_SOURCES = \
2105 tests/stub_CacheDigest.cc \
2107 tests/stub_carp.cc \
2113 client_side_reply.cc \
2114 client_side_request.cc \
2117 tests/stub_CollapsedForwarding.cc \
2125 $(DELAY_POOL_SOURCE) \
2132 tests/stub_ETag.cc \
2136 tests/stub_libauth.cc \
2137 tests/stub_fatal.cc \
2155 tests/stub_HttpControlMsg.cc \
2156 HttpHeaderFieldStat.h \
2159 HttpHdrContRange.cc \
2162 HttpHdrScTarget.cc \
2165 HttpHeaderFieldInfo.h \
2167 HttpHeaderTools.cc \
2187 tests/stub_libmem.cc \
2201 peer_proxy_negotiate_auth.h \
2202 peer_proxy_negotiate_auth.cc \
2205 peer_sourcehash.cc \
2212 tests/stub_redirect.cc \
2216 tests/stub_SBufDetailedStats.cc \
2232 tests/stub_store_digest.cc \
2244 StoreFileSystem.cc \
2246 tests/stub_StoreMeta.cc \
2247 StoreMetaUnpacker.cc \
2248 StoreSwapLogData.cc \
2252 tests/stub_SwapDir.cc \
2254 tests/test_http_range.cc \
2255 tests/stub_external_acl.cc \
2256 tests/stub_ipc_Forwarder.cc \
2257 tests/stub_libdiskio.cc \
2258 tests/stub_libeui.cc \
2259 tests/stub_libsecurity.cc \
2260 tests/stub_main_cc.cc \
2261 tests/stub_MemStore.cc \
2262 tests/stub_store_stats.cc \
2263 tests/stub_EventLoop.cc \
2267 tests/stub_tunnel.cc \
2273 tests/stub_wccp2.cc \
2275 tests/stub_whois.cc \
2279 nodist_tests_test_http_range_SOURCES = \
2281 tests_test_http_range_LDADD = \
2283 clients/libclients.la \
2284 servers/libservers.la \
2286 helper/libhelper.la \
2288 parser/libparser.la \
2293 parser/libparser.la \
2300 format/libformat.la \
2302 $(ADAPTATION_LIBS) \
2312 $(top_builddir)/lib/libmisccontainers.la \
2313 $(top_builddir)/lib/libmiscencoding.la \
2314 $(top_builddir)/lib/libmiscutil.la \
2319 $(LIBCPPUNIT_LIBS) \
2322 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2324 ## Tests of parser/* objects
2325 tests_testTokenizer_SOURCES = \
2326 tests/testTokenizer.h \
2327 tests/testTokenizer.cc
2328 nodist_tests_testTokenizer_SOURCES = \
2329 parser/Tokenizer.h \
2333 tests/stub_debug.cc \
2334 tests/stub_libmem.cc \
2335 tests/stub_time.cc \
2336 tests/stub_SBufDetailedStats.cc
2337 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2338 tests_testTokenizer_LDADD = \
2339 parser/libparser.la \
2342 $(top_builddir)/lib/libmiscutil.la \
2343 $(LIBCPPUNIT_LIBS) \
2347 tests_testHttp1Parser_SOURCES = \
2351 tests/stub_MemObject.cc \
2356 tests/stub_SBufDetailedStats.cc \
2357 tests/stub_cache_cf.cc \
2358 tests/stub_cache_manager.cc \
2359 tests/stub_comm.cc \
2360 tests/stub_cbdata.cc \
2361 tests/stub_debug.cc \
2362 tests/stub_event.cc \
2363 tests/stub_HelperChildConfig.cc \
2364 tests/stub_libmem.cc \
2365 tests/stub_libsecurity.cc \
2366 tests/stub_stmem.cc \
2367 tests/stub_store.cc \
2368 tests/stub_store_stats.cc \
2370 tests/stub_tools.cc \
2371 tests/testHttp1Parser.cc \
2372 tests/testHttp1Parser.h \
2373 tests/stub_time.cc \
2377 nodist_tests_testHttp1Parser_SOURCES = \
2379 tests_testHttp1Parser_LDADD= \
2381 parser/libparser.la \
2387 $(top_builddir)/lib/libmiscutil.la \
2389 $(LIBCPPUNIT_LIBS) \
2392 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2394 ## Tests of the HttpRequest module.
2395 tests_testHttpRequest_SOURCES = \
2400 tests/stub_libmem.cc \
2402 tests/testHttpRequest.h \
2403 tests/testHttpRequest.cc \
2404 tests/testHttpRequestMethod.h \
2405 tests/testHttpRequestMethod.cc \
2406 tests/stub_libauth.cc \
2407 tests/stub_main_cc.cc \
2408 tests/stub_ipc_Forwarder.cc \
2409 tests/stub_libdiskio.cc \
2410 tests/stub_libeui.cc \
2411 tests/stub_store_stats.cc \
2412 tests/stub_EventLoop.cc \
2422 tests/stub_CacheDigest.cc \
2426 tests/stub_carp.cc \
2432 client_side_reply.cc \
2433 client_side_request.cc \
2436 tests/stub_CollapsedForwarding.cc \
2443 $(DELAY_POOL_SOURCE) \
2450 tests/stub_ETag.cc \
2452 ExternalACLEntry.cc \
2454 tests/stub_fatal.cc \
2470 tests/stub_HttpControlMsg.cc \
2473 HttpHeaderFieldInfo.h \
2475 HttpHeaderTools.cc \
2476 HttpHeaderFieldStat.h \
2479 HttpHdrContRange.cc \
2482 HttpHdrScTarget.cc \
2493 tests/stub_libsecurity.cc \
2512 peer_proxy_negotiate_auth.h \
2513 peer_proxy_negotiate_auth.cc \
2516 peer_sourcehash.cc \
2524 tests/stub_libauth_acls.cc \
2525 tests/stub_redirect.cc \
2529 tests/stub_SBufDetailedStats.cc \
2545 tests/stub_store_digest.cc \
2557 StoreFileSystem.cc \
2559 tests/stub_StoreMeta.cc \
2560 StoreMetaUnpacker.cc \
2561 StoreSwapLogData.cc \
2568 tests/stub_tunnel.cc \
2569 tests/stub_SwapDir.cc \
2575 tests/stub_wccp2.cc \
2577 tests/stub_whois.cc \
2582 nodist_tests_testHttpRequest_SOURCES = \
2584 tests_testHttpRequest_LDADD = \
2586 clients/libclients.la \
2587 servers/libservers.la \
2588 helper/libhelper.la \
2595 parser/libparser.la \
2600 parser/libparser.la \
2609 format/libformat.la \
2613 $(ADAPTATION_LIBS) \
2615 $(top_builddir)/lib/libmisccontainers.la \
2616 $(top_builddir)/lib/libmiscencoding.la \
2617 $(top_builddir)/lib/libmiscutil.la \
2622 $(LIBCPPUNIT_LIBS) \
2625 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2627 ## Tests for icmp/* objects
2628 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2629 tests_testIcmp_SOURCES = \
2632 nodist_tests_testIcmp_SOURCES = \
2635 tests/stub_debug.cc \
2636 tests/stub_libmem.cc \
2637 tests/stub_SBuf.cc \
2640 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2641 tests_testIcmp_LDADD=\
2642 icmp/libicmpcore.la \
2645 $(LIBCPPUNIT_LIBS) \
2649 tests_testNetDb_SOURCES = \
2650 tests/testNetDb.cc \
2652 nodist_tests_testNetDb_SOURCES = \
2654 tests/stub_debug.cc \
2655 tests/stub_libmem.cc \
2656 tests/stub_SBuf.cc \
2659 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2660 tests_testNetDb_LDADD = \
2664 $(top_builddir)/lib/libmisccontainers.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 \
2709 HttpHdrContRange.cc \
2712 HttpHdrScTarget.cc \
2713 HttpHeaderFieldInfo.h \
2715 HttpHeaderTools.cc \
2743 tests/stub_StoreMeta.cc \
2744 StoreMetaUnpacker.cc \
2745 StoreSwapLogData.cc \
2748 tests/stub_SBufDetailedStats.cc \
2752 tests/CapturingStoreEntry.h \
2754 tests/stub_access_log.cc \
2757 tests/stub_cache_cf.cc \
2758 tests/stub_cache_manager.cc \
2759 tests/stub_client_side_request.cc \
2760 tests/stub_comm.cc \
2761 tests/stub_debug.cc \
2762 tests/stub_errorpage.cc \
2766 tests/stub_helper.cc \
2767 tests/stub_HelperChildConfig.cc \
2768 tests/stub_http.cc \
2769 tests/stub_libauth.cc \
2770 tests/stub_libeui.cc \
2771 tests/stub_libdiskio.cc \
2772 tests/stub_libformat.cc \
2773 tests/stub_libsecurity.cc \
2774 tests/stub_libsslsquid.cc \
2777 tests/stub_HttpReply.cc \
2778 tests/stub_HttpRequest.cc \
2779 tests/stub_libcomm.cc \
2780 tests/stub_MemStore.cc \
2782 tests/stub_mime.cc \
2783 tests/stub_Port.cc \
2784 tests/stub_stat.cc \
2785 tests/stub_store_client.cc \
2786 tests/stub_store_stats.cc \
2788 tests/stub_store_rebuild.cc \
2789 tests/stub_store_swapout.cc \
2792 tests/stub_tools.cc \
2793 tests/stub_UdsOp.cc \
2794 tests/testPackableStream.cc \
2795 tests/testPackableStream.h \
2796 tests/testStore.cc \
2798 tests/testStoreController.cc \
2799 tests/testStoreController.h \
2800 tests/testStoreHashIndex.cc \
2801 tests/testStoreHashIndex.h \
2802 tests/testStoreSupport.cc \
2803 tests/testStoreSupport.h \
2804 tests/TestSwapDir.cc \
2805 tests/TestSwapDir.h \
2806 tests/stub_time.cc \
2811 nodist_tests_testStore_SOURCES= \
2817 tests_testStore_LDADD= \
2820 parser/libparser.la \
2835 DiskIO/libdiskio.la \
2836 $(top_builddir)/lib/libmisccontainers.la \
2837 $(top_builddir)/lib/libmiscencoding.la \
2838 $(top_builddir)/lib/libmiscutil.la \
2843 $(LIBCPPUNIT_LIBS) \
2846 tests_testStore_LDFLAGS = $(LIBADD_DL)
2848 ## string needs mem.cc.
2849 ## mem.cc needs ClientInfo.h
2850 ## libsquid pulls in SquidConfig and children. stub them.
2851 tests_testString_SOURCES = \
2855 tests/stub_SBufDetailedStats.cc \
2856 tests/testString.cc \
2857 tests/testString.h \
2859 tests/stub_cache_cf.cc \
2860 tests/stub_cache_manager.cc \
2861 tests/stub_cbdata.cc \
2862 tests/stub_debug.cc \
2863 tests/stub_HelperChildConfig.cc \
2864 tests/stub_libmem.cc \
2866 tests/stub_tools.cc \
2867 tests/stub_time.cc \
2870 nodist_tests_testString_SOURCES = \
2872 tests_testString_LDADD = \
2877 $(top_builddir)/lib/libmiscutil.la \
2880 $(LIBCPPUNIT_LIBS) \
2883 tests_testString_LDFLAGS = $(LIBADD_DL)
2895 DiskIO/libdiskio.la \
2900 tests_testUfs_SOURCES = \
2905 tests/stub_cache_manager.cc \
2906 tests/stub_client_db.cc \
2907 tests/stub_CollapsedForwarding.cc \
2908 tests/stub_HelperChildConfig.cc \
2911 tests/stub_ipcache.cc \
2912 tests/stub_libeui.cc \
2913 tests/stub_libicmp.cc \
2914 tests/stub_liblog.cc \
2915 tests/stub_MemStore.cc \
2916 tests/stub_neighbors.cc \
2917 tests/stub_pconn.cc \
2918 tests/stub_Port.cc \
2919 tests/stub_UdsOp.cc \
2921 tests/stub_internal.cc \
2922 tests/stub_libformat.cc \
2923 tests/stub_libsecurity.cc \
2924 tests/stub_stat.cc \
2926 tests/stub_store_rebuild.cc \
2927 tests/stub_store_stats.cc \
2929 tests/stub_fatal.cc \
2953 StoreSwapLogData.cc \
2955 StoreMetaUnpacker.cc \
2956 $(STOREMETA_SOURCE) \
2957 StoreFileSystem.cc \
2964 $(DELAY_POOL_SOURCE) \
2966 tests/stub_CacheDigest.cc \
2978 tests/stub_cache_cf.cc \
2979 tests/stub_helper.cc \
2981 tests/stub_SBufDetailedStats.cc \
2983 tests/stub_debug.cc \
2984 tests/stub_client_side_request.cc \
2985 tests/stub_http.cc \
2986 tests/stub_libauth.cc \
2990 tests/stub_mime.cc \
2991 HttpHeaderFieldInfo.h \
2993 HttpHeaderTools.cc \
2998 HttpHdrContRange.cc \
2999 HttpHeaderFieldStat.h \
3003 HttpHdrScTarget.cc \
3013 tests/stub_errorpage.cc \
3014 tests/stub_HttpRequest.cc \
3016 tests/stub_access_log.cc \
3019 tests/stub_store_client.cc \
3021 tests/stub_tools.cc \
3022 tests/testStoreSupport.cc \
3023 tests/testStoreSupport.h \
3028 nodist_tests_testUfs_SOURCES = \
3034 tests_testUfs_LDADD = \
3036 parser/libparser.la \
3048 DiskIO/libdiskio.la \
3059 $(ADAPTATION_LIBS) \
3061 $(top_builddir)/lib/libmisccontainers.la \
3062 $(top_builddir)/lib/libmiscencoding.la \
3063 $(top_builddir)/lib/libmiscutil.la \
3067 $(LIBCPPUNIT_LIBS) \
3070 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3071 tests_testUfs_DEPENDENCIES = \
3074 check_PROGRAMS += testRefCount
3075 testRefCount_SOURCES= \
3078 tests/stub_cbdata.cc \
3079 tests/stub_debug.cc \
3080 tests/stub_libmem.cc \
3081 tests/stub_MemBuf.cc \
3082 tests/testRefCount.cc
3083 testRefCount_LDADD = \
3085 $(top_builddir)/lib/libmiscutil.la \
3089 tests_testRock_SOURCES = \
3094 CollapsedForwarding.h \
3095 CollapsedForwarding.cc \
3096 tests/stub_CacheDigest.cc \
3113 HttpHeaderFieldStat.h \
3117 HttpHdrContRange.cc \
3120 HttpHdrScTarget.cc \
3123 HttpHeaderFieldInfo.h \
3125 HttpHeaderTools.cc \
3143 tests/stub_StatHist.cc \
3146 tests/stub_stat.cc \
3148 StoreFileSystem.cc \
3150 StoreMetaUnpacker.cc \
3151 $(STOREMETA_SOURCE) \
3152 StoreSwapLogData.cc \
3158 tests/stub_SBufDetailedStats.cc \
3166 tests/testStoreSupport.cc \
3167 tests/testStoreSupport.h \
3169 tests/stub_access_log.cc \
3171 tests/stub_cache_cf.cc \
3173 tests/stub_cache_manager.cc \
3174 tests/stub_client_db.cc \
3175 tests/stub_client_side_request.cc \
3176 tests/stub_debug.cc \
3177 tests/stub_errorpage.cc \
3178 tests/stub_HelperChildConfig.cc \
3179 tests/stub_http.cc \
3180 tests/stub_HttpRequest.cc \
3181 tests/stub_libauth.cc \
3184 tests/stub_ipcache.cc \
3185 tests/stub_libeui.cc \
3186 tests/stub_libformat.cc \
3187 tests/stub_libicmp.cc \
3188 tests/stub_liblog.cc \
3189 tests/stub_libmgr.cc \
3190 tests/stub_libsecurity.cc \
3191 tests/stub_MemStore.cc \
3193 tests/stub_mime.cc \
3194 tests/stub_neighbors.cc \
3195 tests/stub_Port.cc \
3196 tests/stub_pconn.cc \
3197 tests/stub_store_client.cc \
3199 tests/stub_store_rebuild.cc \
3200 tests/stub_store_stats.cc \
3202 tests/stub_tools.cc \
3207 $(DELAY_POOL_SOURCE) \
3209 nodist_tests_testRock_SOURCES = \
3215 tests_testRock_LDADD = \
3217 parser/libparser.la \
3224 DiskIO/libdiskio.la \
3235 $(ADAPTATION_LIBS) \
3237 $(top_builddir)/lib/libmisccontainers.la \
3238 $(top_builddir)/lib/libmiscencoding.la \
3239 $(top_builddir)/lib/libmiscutil.la \
3243 $(LIBCPPUNIT_LIBS) \
3246 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3247 tests_testRock_DEPENDENCIES = \
3250 ## Tests of the URL module.
3251 ## TODO: Trim this down once the insanity is over.
3252 tests_testURL_SOURCES = \
3259 tests/stub_cache_manager.cc \
3261 tests/stub_CacheDigest.cc \
3265 tests/stub_carp.cc \
3271 client_side_reply.cc \
3272 client_side_request.cc \
3275 tests/stub_CollapsedForwarding.cc \
3282 $(DELAY_POOL_SOURCE) \
3292 ExternalACLEntry.cc \
3294 tests/stub_fatal.cc \
3312 tests/stub_HttpControlMsg.cc \
3313 HttpHeaderFieldStat.h \
3316 HttpHdrContRange.cc \
3319 HttpHdrScTarget.cc \
3322 HttpHeaderFieldInfo.h \
3324 HttpHeaderTools.cc \
3339 tests/stub_libeui.cc \
3359 peer_proxy_negotiate_auth.h \
3360 peer_proxy_negotiate_auth.cc \
3363 peer_sourcehash.cc \
3369 tests/stub_redirect.cc \
3373 tests/stub_SBufDetailedStats.cc \
3383 tests/stub_StatHist.cc \
3389 tests/stub_store_digest.cc \
3401 StoreFileSystem.cc \
3403 tests/stub_StoreMeta.cc \
3404 StoreMetaUnpacker.cc \
3405 StoreSwapLogData.cc \
3410 tests/stub_SwapDir.cc \
3412 tests/stub_debug.cc \
3413 tests/stub_libauth_acls.cc \
3414 tests/stub_libauth.cc \
3415 tests/stub_libdiskio.cc \
3416 tests/stub_libmem.cc \
3417 tests/stub_libsecurity.cc \
3418 tests/stub_main_cc.cc \
3419 tests/stub_ipc_Forwarder.cc \
3420 tests/stub_store_stats.cc \
3423 tests/testUriScheme.cc \
3424 tests/testUriScheme.h \
3425 tests/stub_time.cc \
3426 tests/stub_EventLoop.cc \
3429 tests/stub_tunnel.cc \
3434 tests/stub_wccp2.cc \
3436 tests/stub_whois.cc \
3441 nodist_tests_testURL_SOURCES = \
3443 tests_testURL_LDADD = \
3445 clients/libclients.la \
3446 servers/libservers.la \
3447 helper/libhelper.la \
3450 parser/libparser.la \
3468 format/libformat.la \
3473 $(ADAPTATION_LIBS) \
3475 $(top_builddir)/lib/libmisccontainers.la \
3476 $(top_builddir)/lib/libmiscencoding.la \
3477 $(top_builddir)/lib/libmiscutil.la \
3481 $(LIBCPPUNIT_LIBS) \
3484 tests_testURL_LDFLAGS = $(LIBADD_DL)
3486 tests_testSBuf_SOURCES= \
3489 tests/SBufFindTest.h \
3490 tests/SBufFindTest.cc \
3491 tests/stub_SBufDetailedStats.cc \
3492 tests/stub_time.cc \
3493 tests/stub_debug.cc \
3494 tests/stub_fatal.cc \
3495 tests/stub_libmem.cc
3496 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3497 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3498 tests_testSBuf_LDADD= \
3501 $(LIBCPPUNIT_LIBS) \
3505 tests_testSBufList_SOURCES= \
3506 tests/testSBufList.h \
3507 tests/testSBufList.cc \
3508 tests/stub_SBufDetailedStats.cc \
3509 tests/stub_time.cc \
3510 tests/stub_debug.cc \
3511 tests/stub_fatal.cc \
3512 tests/stub_libmem.cc
3513 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3514 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3515 tests_testSBufList_LDADD=\
3518 $(LIBCPPUNIT_LIBS) \
3522 tests_testConfigParser_SOURCES = \
3524 tests/stub_MemBuf.cc \
3525 tests/stub_time.cc \
3526 tests/stub_SBufDetailedStats.cc \
3530 tests/stub_fatal.cc \
3531 tests/testConfigParser.cc \
3532 tests/testConfigParser.h \
3534 tests/stub_cache_cf.cc \
3535 tests/stub_cbdata.cc \
3536 tests/stub_debug.cc \
3537 tests/stub_libmem.cc \
3538 tests/stub_HelperChildConfig.cc \
3540 tests/stub_tools.cc \
3543 nodist_tests_testConfigParser_SOURCES = \
3545 tests_testConfigParser_LDADD = \
3550 $(top_builddir)/lib/libmiscutil.la \
3553 $(LIBCPPUNIT_LIBS) \
3556 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3558 tests_testStatHist_SOURCES = \
3559 tests/stub_cbdata.cc \
3561 tests/stub_fatal.cc \
3562 tests/stub_MemBuf.cc \
3563 tests/stub_SBufDetailedStats.cc \
3567 tests/stub_cache_manager.cc \
3568 tests/stub_comm.cc \
3569 tests/stub_debug.cc \
3570 tests/stub_DelayId.cc \
3571 tests/stub_HelperChildConfig.cc \
3572 tests/stub_libmem.cc \
3573 tests/stub_MemObject.cc \
3575 tests/stub_mime.cc \
3576 tests/stub_pconn.cc \
3577 tests/stub_stmem.cc \
3579 tests/stub_store.cc \
3580 tests/stub_store_stats.cc \
3583 tests/stub_tools.cc \
3584 tests/testStatHist.cc \
3585 tests/testStatHist.h
3586 nodist_tests_testStatHist_SOURCES = \
3588 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3589 tests_testStatHist_LDADD = \
3592 $(top_builddir)/lib/libmiscutil.la \
3593 $(top_builddir)/lib/libmisccontainers.la \
3594 $(LIBCPPUNIT_LIBS) \
3597 tests_testLookupTable_SOURCES = \
3598 tests/testLookupTable.h \
3599 tests/testLookupTable.cc \
3600 tests/stub_debug.cc \
3601 tests/stub_libmem.cc \
3602 tests/stub_SBufDetailedStats.cc \
3604 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3605 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3606 tests_testLookupTable_LDADD = \
3609 $(LIBCPPUNIT_LIBS) \
3613 tests_testEnumIterator_SOURCES = \
3614 base/EnumIterator.h \
3615 tests/stub_debug.cc \
3616 tests/stub_libmem.cc \
3617 tests/stub_SBuf.cc \
3618 tests/testEnumIterator.h \
3619 tests/testEnumIterator.cc
3620 nodist_tests_testEnumIterator_SOURCES = \
3622 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3623 tests_testEnumIterator_LDADD = \
3625 $(LIBCPPUNIT_LIBS) \
3629 tests_testYesNoNone_SOURCES = \
3630 tests/testYesNoNone.cc \
3631 tests/testYesNoNone.h
3632 nodist_tests_testYesNoNone_SOURCES = \
3634 tests/stub_debug.cc \
3635 tests/stub_libmem.cc \
3636 tests/stub_SBuf.cc \
3638 tests_testYesNoNone_LDADD= \
3640 $(LIBCPPUNIT_LIBS) \
3643 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3645 tests_testMem_SOURCES = \
3648 nodist_tests_testMem_SOURCES = \
3649 tests/stub_debug.cc \
3650 tests/stub_SBuf.cc \
3651 tests/stub_time.cc \
3653 tests_testMem_LDADD= \
3656 $(top_builddir)/lib/libmiscutil.la \
3657 $(LIBCPPUNIT_LIBS) \
3660 tests_testMem_LDFLAGS = $(LIBADD_DL)
3662 TESTS += testHeaders
3664 ## Special Universal .h dependency test script
3665 ## aborts if error encountered
3666 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3667 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3668 ## src/repl/ has no .h files and its own makefile.
3670 CLEANFILES += testHeaders