1 ## Copyright (C) 1996-2017 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) \
296 ExternalACLEntry.cc \
319 HierarchyLogEntry.h \
323 HttpHeaderFieldStat.h \
331 HttpHdrContRange.cc \
338 HttpHeaderFieldInfo.h \
364 $(LEAKFINDERSOURCE) \
389 $(XPROF_STATS_SOURCE) \
394 peer_proxy_negotiate_auth.h \
395 peer_proxy_negotiate_auth.cc \
418 sbuf/StringConvert.h \
458 StoreMetaUnpacker.cc \
459 StoreMetaUnpacker.h \
460 $(STOREMETA_SOURCE) \
464 StoreSwapLogData.cc \
491 XactionInitiator.cc \
495 EXTRA_squid_SOURCES = \
498 $(DELAY_POOL_ALL_SOURCE) \
508 $(WIN32_ALL_SOURCE) \
509 $(LOADABLE_MODULES_SOURCES)
528 CLEANFILES += $(BUILT_SOURCES)
530 nodist_squid_SOURCES = \
540 clients/libclients.la \
541 servers/libservers.la \
543 helper/libhelper.la \
550 DiskIO/libdiskio.la \
553 security/libsecurity.la \
557 parser/libparser.la \
561 format/libformat.la \
573 $(top_builddir)/lib/libmisccontainers.la \
574 $(top_builddir)/lib/libmiscencoding.la \
575 $(top_builddir)/lib/libmiscutil.la \
584 if ENABLE_LOADABLE_MODULES
585 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
586 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
587 squid_LDFLAGS = -export-dynamic -dlopen force
588 ## when static module linking is supported and enabled:
589 ## squid_LDFLAGS = -all-static -dlopen self
591 ## LTDL headers require their local include path...
592 AM_CPPFLAGS += $(INCLTDL)
595 ## Kerberos libraries require their include path...
596 AM_CPPFLAGS += $(KRB5INCS)
599 unlinkd_SOURCES = unlinkd_daemon.cc
604 recv_announce_SOURCES = recv-announce.cc
606 ## What requires what..
607 ## many things want ACLChecklist.cc
608 ## ACLChecklist.cc wants AuthUserRequest.cc
609 ## ACLChecklist.cc wants AuthScheme.cc
610 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
611 ## ACLProxyAuth.cc wants ACLUserData
612 ## ACLProxyAuth.cc wants ACLRegexData
613 ## cache_cf.cc wants $(AUTH_LIBS)
614 ## cache_cf.cc wants store/libstore.la
615 ## cache_cf.cc wants AnyP::PortCfg
616 ## client_side wants client_db
617 ## client_db wants SNMP_SOURCE
618 ## snmp_core wants ACLStringData
619 ## tools.cc wants ip/libip.la
620 ## client_side.cc wants ip/libip.la
621 ## libbase.la wants cbdata.*
622 ## libbase.la wants MemBuf.*
636 tests/stub_StoreMeta.cc \
637 StoreMetaUnpacker.cc \
644 helper/ChildConfig.h \
645 tests/stub_HelperChildConfig.cc \
672 ufsdump_DEPENDENCIES = \
684 DiskIO/libdiskio.la \
687 nodist_ufsdump_SOURCES = \
692 squid.conf.documented \
717 include $(srcdir)/tests/Stub.list
725 mk-string-arrays.awk \
731 # Make location configure settings available to the code
732 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
734 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
736 globals.cc: globals.h mk-globals-c.awk
737 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
739 ## Generate files containing string arrays for various enums....
740 hier_code.cc: hier_code.h mk-string-arrays.awk
741 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
743 err_type.cc: err_type.h mk-string-arrays.awk
744 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
746 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
747 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
749 lookup_t.cc: lookup_t.h mk-string-arrays.awk
750 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
752 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
753 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
755 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
756 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
759 ## other generated files...
761 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
762 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
764 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
765 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
767 ## If autodependency works well this is not needed anymore
768 cache_cf.o: cf_parser.cci
770 # cf_gen builds the configuration files.
771 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
772 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
774 # squid.conf.default is built by cf_gen when making cf_parser.cci
775 squid.conf.default squid.conf.documented: cf_parser.cci
778 cf_parser.cci: cf.data cf_gen$(EXEEXT)
779 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
781 # The cf_gen_defines.cci is auto-generated and does not exist when the
782 # dependencies computed. We need to add its include files (autoconf.h) here
783 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
784 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
787 ## FIXME: generate a sed command file from configure. Then this doesn't
788 ## depend on the Makefile.
789 cf.data: cf.data.pre Makefile
791 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
792 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
793 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
794 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
795 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
796 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
797 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
798 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
799 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
800 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
801 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
802 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
803 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
804 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
805 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
806 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
807 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
808 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
809 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
810 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
811 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
812 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
813 -f $(srcdir)/cf.data.sed \
814 < $(srcdir)/cf.data.pre >$@
816 repl_modules.cc: repl_modules.sh Makefile
817 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
819 include $(top_srcdir)/doc/manuals/Substitute.am
821 squid.8: $(srcdir)/squid.8.in Makefile
822 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
825 EXTRA_DIST += squid.8.in
826 CLEANFILES += squid.8
828 install-data-local: install-sysconfDATA install-dataDATA
829 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
830 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
832 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
833 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
835 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
836 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
838 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
839 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
841 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
842 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
843 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
844 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
845 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
846 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
847 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
849 uninstall-local: squid.conf.default
850 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
851 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
853 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
856 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
857 cp $(top_srcdir)/test-suite/test_tools.cc .
859 # stock tools for unit tests - library independent versions of dlink_list
861 # globals.cc is needed by test_tools.cc.
862 # Neither of these should be disted from here.
869 tests/testBoilerplate \
870 tests/testCacheManager \
871 tests/testCharacterSet \
874 tests/testEnumIterator \
876 tests/testEventLoop \
877 tests/test_http_range \
878 tests/testTokenizer \
879 tests/testHttp1Parser \
880 tests/testHttpReply \
881 tests/testHttpRequest \
883 tests/testIpAddress \
891 tests/testConfigParser \
893 tests/testLookupTable \
897 check_PROGRAMS += tests/testRock
900 check_PROGRAMS += tests/testUfs
903 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
904 TESTS += $(check_PROGRAMS)
906 ### Template for new Unit Test Program
907 ## - add tests/testX to check_PROGRAMS above.
908 ## - copy template below and substitue X for class name
909 ## - add other component .(h|cc) files needed to link and run tests
911 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
913 #tests_testX_SOURCES=\
918 #nodist_tests_testX_SOURCES=\
919 # tests/stubs_as_needed.cc\
921 #tests_testX_LDFLAGS = $(LIBADD_DL)
923 # $(LIBCPPUNIT_LIBS) \
927 # - add other component .(h|cc) files needed to link and run tests
928 tests_testHttpReply_SOURCES=\
934 tests/stub_fatal.cc \
937 HttpHeaderFieldStat.h \
940 HttpHdrContRange.cc \
950 HttpHeaderFieldInfo.h \
967 tests/stub_SBufDetailedStats.cc \
972 tests/stub_access_log.cc \
974 tests/stub_cache_cf.cc \
975 tests/stub_cache_manager.cc \
977 tests/stub_debug.cc \
978 tests/stub_errorpage.cc \
979 tests/stub_event.cc \
981 tests/stub_HelperChildConfig.cc \
982 tests/stub_libformat.cc \
983 tests/stub_libauth.cc \
984 tests/stub_libcomm.cc \
985 tests/stub_libmgr.cc \
986 tests/stub_libsecurity.cc \
987 tests/stub_libsslsquid.cc \
991 tests/stub_StatHist.cc \
993 tests/stub_store.cc \
994 tests/stub_store_stats.cc \
996 tests/stub_tools.cc \
997 tests/stub_HttpRequest.cc \
998 tests/testHttpReply.cc \
999 tests/testHttpReply.h \
1000 tests/stub_time.cc \
1004 nodist_tests_testHttpReply_SOURCES=\
1007 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1008 tests_testHttpReply_LDADD=\
1011 parser/libparser.la \
1021 $(top_builddir)/lib/libmisccontainers.la \
1022 $(top_builddir)/lib/libmiscencoding.la \
1023 $(top_builddir)/lib/libmiscutil.la \
1026 $(LIBCPPUNIT_LIBS) \
1030 tests_testACLMaxUserIP_SOURCES= \
1033 tests/stub_CollapsedForwarding.cc \
1036 tests/stub_ETag.cc \
1039 tests/stub_fatal.cc \
1045 HttpHeaderFieldInfo.h \
1047 HttpHeaderTools.cc \
1048 HttpHdrContRange.cc \
1050 HttpHeaderFieldStat.h \
1054 HttpHdrScTarget.cc \
1063 tests/stub_libsecurity.cc \
1070 tests/stub_StatHist.cc \
1072 tests/stub_SBufDetailedStats.cc \
1075 tests/stub_StoreMeta.cc \
1076 StoreMetaUnpacker.cc \
1077 StoreSwapLogData.cc \
1082 tests/stub_SwapDir.cc \
1085 tests/stub_access_log.cc \
1087 tests/stub_cache_cf.cc \
1088 tests/stub_client_side.cc \
1089 tests/stub_debug.cc \
1090 tests/stub_DelayId.cc \
1091 tests/stub_errorpage.cc \
1094 tests/stub_HttpRequest.cc \
1095 tests/stub_HttpReply.cc \
1096 tests/stub_ipc_TypedMsgHdr.cc \
1097 tests/stub_libauth.cc \
1098 tests/stub_libcomm.cc \
1099 tests/stub_libdiskio.cc \
1100 tests/stub_libformat.cc \
1101 tests/stub_libmem.cc \
1102 tests/stub_libsslsquid.cc \
1103 tests/stub_MemObject.cc \
1104 tests/stub_MemStore.cc \
1106 tests/stub_mime.cc \
1107 tests/stub_pconn.cc \
1108 tests/stub_Port.cc \
1110 tests/stub_store.cc \
1111 tests/stub_store_client.cc \
1113 tests/stub_store_rebuild.cc \
1114 tests/stub_store_stats.cc \
1115 tests/stub_store_swapout.cc \
1117 tests/stub_tools.cc \
1118 tests/stub_cache_manager.cc \
1119 tests/stub_UdsOp.cc \
1120 tests/testACLMaxUserIP.cc \
1121 tests/testACLMaxUserIP.h \
1122 tests/stub_time.cc \
1128 nodist_tests_testACLMaxUserIP_SOURCES= \
1130 tests_testACLMaxUserIP_LDADD= \
1132 helper/libhelper.la \
1134 parser/libparser.la \
1147 $(top_builddir)/lib/libmisccontainers.la \
1148 $(top_builddir)/lib/libmiscencoding.la \
1149 $(top_builddir)/lib/libmiscutil.la \
1153 $(LIBCPPUNIT_LIBS) \
1156 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1158 ## a demonstration test that does nothing but shows the salient points
1159 ## involved in writing tests.
1160 tests_testBoilerplate_SOURCES = \
1161 tests/testBoilerplate.cc \
1162 tests/testBoilerplate.h \
1163 tests/stub_debug.cc \
1164 tests/stub_libmem.cc \
1165 tests/stub_SBuf.cc \
1167 nodist_tests_testBoilerplate_SOURCES = \
1168 tests/stub_cbdata.cc \
1169 tests/stub_MemBuf.cc \
1171 tests_testBoilerplate_LDADD= \
1174 $(LIBCPPUNIT_LIBS) \
1177 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1179 ## Tests of base/libbase.la objects
1180 tests_testCharacterSet_SOURCES = \
1181 tests/testCharacterSet.cc \
1182 tests/testCharacterSet.h
1183 nodist_tests_testCharacterSet_SOURCES = \
1184 base/CharacterSet.h \
1186 tests/stub_cbdata.cc \
1187 tests/stub_debug.cc \
1188 tests/stub_libmem.cc \
1189 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 \
1274 HttpHeaderFieldInfo.h \
1276 HttpHeaderTools.cc \
1277 HttpHeaderFieldStat.h \
1280 HttpHdrContRange.cc \
1283 HttpHdrScTarget.cc \
1294 tests/stub_libsecurity.cc \
1313 peer_proxy_negotiate_auth.h \
1314 peer_proxy_negotiate_auth.cc \
1317 peer_sourcehash.cc \
1325 tests/stub_redirect.cc \
1329 tests/stub_SBufDetailedStats.cc \
1341 tests/stub_libauth_acls.cc \
1342 tests/stub_libauth.cc \
1343 tests/stub_libdiskio.cc \
1344 tests/stub_StatHist.cc \
1350 tests/stub_store_digest.cc \
1362 StoreFileSystem.cc \
1364 tests/stub_StoreMeta.cc \
1365 StoreMetaUnpacker.cc \
1366 StoreSwapLogData.cc \
1370 tests/stub_tunnel.cc \
1371 tests/stub_SwapDir.cc \
1378 tests/stub_wccp2.cc \
1380 tests/stub_whois.cc \
1385 nodist_tests_testCacheManager_SOURCES = \
1387 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1388 tests_testCacheManager_LDADD = \
1390 clients/libclients.la \
1391 servers/libservers.la \
1393 helper/libhelper.la \
1395 parser/libparser.la \
1408 format/libformat.la \
1410 $(ADAPTATION_LIBS) \
1420 $(top_builddir)/lib/libmisccontainers.la \
1421 $(top_builddir)/lib/libmiscencoding.la \
1422 $(top_builddir)/lib/libmiscutil.la \
1427 $(LIBCPPUNIT_LIBS) \
1430 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1432 tests_testDiskIO_SOURCES = \
1436 tests/stub_CacheDigest.cc \
1440 tests/stub_CollapsedForwarding.cc \
1443 $(DELAY_POOL_SOURCE) \
1447 tests/stub_ETag.cc \
1451 tests/stub_fatal.cc \
1460 HttpHeaderFieldStat.h \
1463 HttpHdrContRange.cc \
1465 HttpHdrScTarget.cc \
1467 HttpHeaderFieldInfo.h \
1469 HttpHeaderTools.cc \
1488 tests/stub_libsecurity.cc \
1492 tests/stub_StatHist.cc \
1494 tests/stub_SBufDetailedStats.cc \
1495 StoreFileSystem.cc \
1497 tests/stub_StoreMeta.cc \
1498 StoreMetaUnpacker.cc \
1499 StoreSwapLogData.cc \
1510 tests/stub_SwapDir.cc \
1513 tests/stub_access_log.cc \
1516 tests/stub_cache_cf.cc \
1517 tests/stub_cache_manager.cc \
1518 tests/stub_client_db.cc \
1519 client_side_request.h \
1520 tests/stub_client_side_request.cc \
1521 tests/stub_debug.cc \
1522 tests/stub_errorpage.cc \
1523 tests/stub_helper.cc \
1524 tests/stub_HelperChildConfig.cc \
1525 tests/stub_HttpRequest.cc \
1526 tests/stub_http.cc \
1529 tests/stub_internal.cc \
1531 tests/stub_ipcache.cc \
1532 tests/stub_libauth_acls.cc \
1533 tests/stub_libauth.cc \
1534 tests/stub_libeui.cc \
1535 tests/stub_libformat.cc \
1536 tests/stub_libicmp.cc \
1537 tests/stub_liblog.cc \
1538 tests/stub_MemStore.cc \
1540 tests/stub_mime.cc \
1541 tests/stub_neighbors.cc \
1542 tests/stub_pconn.cc \
1543 tests/stub_Port.cc \
1544 tests/stub_stat.cc \
1545 tests/stub_store_client.cc \
1546 tests/stub_store_stats.cc \
1548 tests/stub_store_rebuild.cc \
1549 tests/stub_UdsOp.cc \
1550 tests/testDiskIO.cc \
1551 tests/testDiskIO.h \
1552 tests/testStoreSupport.cc \
1553 tests/testStoreSupport.h \
1554 tests/stub_time.cc \
1562 nodist_tests_testDiskIO_SOURCES= \
1568 tests_testDiskIO_LDADD = \
1571 parser/libparser.la \
1582 $(ADAPTATION_LIBS) \
1583 DiskIO/libdiskio.la \
1594 $(top_builddir)/lib/libmisccontainers.la \
1595 $(top_builddir)/lib/libmiscencoding.la \
1596 $(top_builddir)/lib/libmiscutil.la \
1600 $(LIBCPPUNIT_LIBS) \
1603 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1604 tests_testDiskIO_DEPENDENCIES = \
1605 DiskIO/libdiskio.la \
1608 tests_testDns_SOURCES= \
1609 tests/testRFC1035.cc \
1611 nodist_tests_testDns_SOURCES= \
1612 tests/stub_debug.cc \
1613 tests/stub_libmem.cc \
1614 tests/stub_SBuf.cc \
1616 tests_testDns_LDADD= \
1619 $(top_builddir)/lib/libmiscutil.la \
1620 $(LIBCPPUNIT_LIBS) \
1623 tests_testDns_LDFLAGS= $(LIBADD_DL)
1625 tests_testEvent_SOURCES = \
1629 tests/stub_CacheDigest.cc \
1638 tests/stub_carp.cc \
1644 client_side_reply.cc \
1645 client_side_request.cc \
1648 tests/stub_CollapsedForwarding.cc \
1656 $(DELAY_POOL_SOURCE) \
1663 tests/stub_ETag.cc \
1668 ExternalACLEntry.cc \
1671 tests/stub_fatal.cc \
1689 tests/stub_HttpControlMsg.cc \
1692 HttpHeaderFieldInfo.h \
1694 HttpHeaderTools.cc \
1695 HttpHeaderFieldStat.h \
1698 HttpHdrContRange.cc \
1701 HttpHdrScTarget.cc \
1717 tests/stub_libsecurity.cc \
1720 tests/stub_libmem.cc \
1737 peer_proxy_negotiate_auth.h \
1738 peer_proxy_negotiate_auth.cc \
1741 peer_sourcehash.cc \
1747 tests/stub_redirect.cc \
1753 tests/stub_SBufDetailedStats.cc \
1769 tests/stub_store_digest.cc \
1781 StoreFileSystem.cc \
1783 tests/stub_StoreMeta.cc \
1784 StoreMetaUnpacker.cc \
1785 StoreSwapLogData.cc \
1787 tests/stub_SwapDir.cc \
1788 tests/CapturingStoreEntry.h \
1789 tests/testEvent.cc \
1791 tests/stub_main_cc.cc \
1792 tests/stub_ipc_Forwarder.cc \
1793 tests/stub_libauth_acls.cc \
1794 tests/stub_libauth.cc \
1795 tests/stub_libdiskio.cc \
1796 tests/stub_libeui.cc \
1797 tests/stub_store_stats.cc \
1802 tests/stub_tunnel.cc \
1809 tests/stub_wccp2.cc \
1811 tests/stub_whois.cc \
1815 nodist_tests_testEvent_SOURCES = \
1817 tests_testEvent_LDADD = \
1819 clients/libclients.la \
1820 servers/libservers.la \
1822 helper/libhelper.la \
1824 parser/libparser.la \
1837 format/libformat.la \
1839 $(ADAPTATION_LIBS) \
1842 $(top_builddir)/lib/libmisccontainers.la \
1843 $(top_builddir)/lib/libmiscencoding.la \
1844 $(top_builddir)/lib/libmiscutil.la \
1854 $(LIBCPPUNIT_LIBS) \
1857 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1859 ## Tests of the EventLoop module.
1860 tests_testEventLoop_SOURCES = \
1864 tests/stub_CacheDigest.cc \
1873 tests/stub_carp.cc \
1879 client_side_reply.cc \
1880 client_side_request.cc \
1883 tests/stub_CollapsedForwarding.cc \
1891 $(DELAY_POOL_SOURCE) \
1898 tests/stub_ETag.cc \
1903 ExternalACLEntry.cc \
1906 tests/stub_fatal.cc \
1924 tests/stub_HttpControlMsg.cc \
1927 HttpHeaderFieldInfo.h \
1929 HttpHeaderTools.cc \
1930 HttpHeaderFieldStat.h \
1933 HttpHdrContRange.cc \
1936 HttpHdrScTarget.cc \
1956 tests/stub_libmem.cc \
1971 peer_proxy_negotiate_auth.h \
1972 peer_proxy_negotiate_auth.cc \
1975 peer_sourcehash.cc \
1982 tests/stub_redirect.cc \
1985 tests/stub_SBufDetailedStats.cc \
2001 tests/stub_store_digest.cc \
2013 StoreFileSystem.cc \
2015 tests/stub_StoreMeta.cc \
2016 StoreMetaUnpacker.cc \
2017 StoreSwapLogData.cc \
2021 tests/stub_SwapDir.cc \
2022 tests/testEventLoop.cc \
2023 tests/testEventLoop.h \
2024 tests/stub_main_cc.cc \
2025 tests/stub_ipc_Forwarder.cc \
2026 tests/stub_libauth_acls.cc \
2027 tests/stub_libauth.cc \
2028 tests/stub_libdiskio.cc \
2029 tests/stub_libeui.cc \
2030 tests/stub_libsecurity.cc \
2031 tests/stub_store_stats.cc \
2036 tests/stub_tunnel.cc \
2043 tests/stub_wccp2.cc \
2045 tests/stub_whois.cc \
2049 nodist_tests_testEventLoop_SOURCES = \
2051 tests_testEventLoop_LDADD = \
2053 clients/libclients.la \
2054 servers/libservers.la \
2056 helper/libhelper.la \
2058 parser/libparser.la \
2071 format/libformat.la \
2073 $(ADAPTATION_LIBS) \
2076 $(top_builddir)/lib/libmisccontainers.la \
2077 $(top_builddir)/lib/libmiscencoding.la \
2078 $(top_builddir)/lib/libmiscutil.la \
2088 $(LIBCPPUNIT_LIBS) \
2091 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2093 tests_test_http_range_SOURCES = \
2104 tests/stub_CacheDigest.cc \
2106 tests/stub_carp.cc \
2112 client_side_reply.cc \
2113 client_side_request.cc \
2116 tests/stub_CollapsedForwarding.cc \
2124 $(DELAY_POOL_SOURCE) \
2131 tests/stub_ETag.cc \
2135 tests/stub_libauth.cc \
2136 tests/stub_fatal.cc \
2154 tests/stub_HttpControlMsg.cc \
2155 HttpHeaderFieldStat.h \
2158 HttpHdrContRange.cc \
2161 HttpHdrScTarget.cc \
2164 HttpHeaderFieldInfo.h \
2166 HttpHeaderTools.cc \
2186 tests/stub_libmem.cc \
2200 peer_proxy_negotiate_auth.h \
2201 peer_proxy_negotiate_auth.cc \
2204 peer_sourcehash.cc \
2211 tests/stub_redirect.cc \
2215 tests/stub_SBufDetailedStats.cc \
2231 tests/stub_store_digest.cc \
2243 StoreFileSystem.cc \
2245 tests/stub_StoreMeta.cc \
2246 StoreMetaUnpacker.cc \
2247 StoreSwapLogData.cc \
2251 tests/stub_SwapDir.cc \
2253 tests/test_http_range.cc \
2254 tests/stub_external_acl.cc \
2255 tests/stub_ipc_Forwarder.cc \
2256 tests/stub_libdiskio.cc \
2257 tests/stub_libeui.cc \
2258 tests/stub_libsecurity.cc \
2259 tests/stub_main_cc.cc \
2260 tests/stub_MemStore.cc \
2261 tests/stub_store_stats.cc \
2262 tests/stub_EventLoop.cc \
2266 tests/stub_tunnel.cc \
2272 tests/stub_wccp2.cc \
2274 tests/stub_whois.cc \
2278 nodist_tests_test_http_range_SOURCES = \
2280 tests_test_http_range_LDADD = \
2282 clients/libclients.la \
2283 servers/libservers.la \
2285 helper/libhelper.la \
2287 parser/libparser.la \
2292 parser/libparser.la \
2299 format/libformat.la \
2301 $(ADAPTATION_LIBS) \
2311 $(top_builddir)/lib/libmisccontainers.la \
2312 $(top_builddir)/lib/libmiscencoding.la \
2313 $(top_builddir)/lib/libmiscutil.la \
2318 $(LIBCPPUNIT_LIBS) \
2321 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2323 ## Tests of parser/* objects
2324 tests_testTokenizer_SOURCES = \
2325 tests/testTokenizer.h \
2326 tests/testTokenizer.cc
2327 nodist_tests_testTokenizer_SOURCES = \
2328 parser/Tokenizer.h \
2332 tests/stub_debug.cc \
2333 tests/stub_libmem.cc \
2334 tests/stub_time.cc \
2335 tests/stub_SBufDetailedStats.cc
2336 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2337 tests_testTokenizer_LDADD = \
2338 parser/libparser.la \
2341 $(top_builddir)/lib/libmiscutil.la \
2342 $(LIBCPPUNIT_LIBS) \
2346 tests_testHttp1Parser_SOURCES = \
2350 tests/stub_MemObject.cc \
2355 tests/stub_SBufDetailedStats.cc \
2356 tests/stub_cache_cf.cc \
2357 tests/stub_cache_manager.cc \
2358 tests/stub_comm.cc \
2359 tests/stub_cbdata.cc \
2360 tests/stub_debug.cc \
2361 tests/stub_event.cc \
2362 tests/stub_HelperChildConfig.cc \
2363 tests/stub_libmem.cc \
2364 tests/stub_libsecurity.cc \
2365 tests/stub_stmem.cc \
2366 tests/stub_store.cc \
2367 tests/stub_store_stats.cc \
2369 tests/stub_tools.cc \
2370 tests/testHttp1Parser.cc \
2371 tests/testHttp1Parser.h \
2372 tests/stub_time.cc \
2376 nodist_tests_testHttp1Parser_SOURCES = \
2378 tests_testHttp1Parser_LDADD= \
2380 parser/libparser.la \
2386 $(top_builddir)/lib/libmiscutil.la \
2388 $(LIBCPPUNIT_LIBS) \
2391 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2393 ## Tests of the HttpRequest module.
2394 tests_testHttpRequest_SOURCES = \
2399 tests/stub_libmem.cc \
2401 tests/testHttpRequest.h \
2402 tests/testHttpRequest.cc \
2403 tests/testHttpRequestMethod.h \
2404 tests/testHttpRequestMethod.cc \
2405 tests/stub_libauth.cc \
2406 tests/stub_main_cc.cc \
2407 tests/stub_ipc_Forwarder.cc \
2408 tests/stub_libdiskio.cc \
2409 tests/stub_libeui.cc \
2410 tests/stub_store_stats.cc \
2411 tests/stub_EventLoop.cc \
2421 tests/stub_CacheDigest.cc \
2425 tests/stub_carp.cc \
2431 client_side_reply.cc \
2432 client_side_request.cc \
2435 tests/stub_CollapsedForwarding.cc \
2442 $(DELAY_POOL_SOURCE) \
2449 tests/stub_ETag.cc \
2451 ExternalACLEntry.cc \
2453 tests/stub_fatal.cc \
2469 tests/stub_HttpControlMsg.cc \
2472 HttpHeaderFieldInfo.h \
2474 HttpHeaderTools.cc \
2475 HttpHeaderFieldStat.h \
2478 HttpHdrContRange.cc \
2481 HttpHdrScTarget.cc \
2492 tests/stub_libsecurity.cc \
2511 peer_proxy_negotiate_auth.h \
2512 peer_proxy_negotiate_auth.cc \
2515 peer_sourcehash.cc \
2523 tests/stub_libauth_acls.cc \
2524 tests/stub_redirect.cc \
2528 tests/stub_SBufDetailedStats.cc \
2544 tests/stub_store_digest.cc \
2556 StoreFileSystem.cc \
2558 tests/stub_StoreMeta.cc \
2559 StoreMetaUnpacker.cc \
2560 StoreSwapLogData.cc \
2567 tests/stub_tunnel.cc \
2568 tests/stub_SwapDir.cc \
2574 tests/stub_wccp2.cc \
2576 tests/stub_whois.cc \
2581 nodist_tests_testHttpRequest_SOURCES = \
2583 tests_testHttpRequest_LDADD = \
2585 clients/libclients.la \
2586 servers/libservers.la \
2587 helper/libhelper.la \
2594 parser/libparser.la \
2599 parser/libparser.la \
2608 format/libformat.la \
2612 $(ADAPTATION_LIBS) \
2614 $(top_builddir)/lib/libmisccontainers.la \
2615 $(top_builddir)/lib/libmiscencoding.la \
2616 $(top_builddir)/lib/libmiscutil.la \
2621 $(LIBCPPUNIT_LIBS) \
2624 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2626 ## Tests for icmp/* objects
2627 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2628 tests_testIcmp_SOURCES = \
2631 nodist_tests_testIcmp_SOURCES = \
2634 tests/stub_debug.cc \
2635 tests/stub_libmem.cc \
2636 tests/stub_SBuf.cc \
2639 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2640 tests_testIcmp_LDADD=\
2641 icmp/libicmpcore.la \
2644 $(LIBCPPUNIT_LIBS) \
2648 tests_testNetDb_SOURCES = \
2649 tests/testNetDb.cc \
2651 nodist_tests_testNetDb_SOURCES = \
2653 tests/stub_debug.cc \
2654 tests/stub_libmem.cc \
2655 tests/stub_SBuf.cc \
2658 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2659 tests_testNetDb_LDADD = \
2663 $(top_builddir)/lib/libmisccontainers.la \
2664 $(LIBCPPUNIT_LIBS) \
2668 ## Tests for ip/* objects
2669 tests_testIpAddress_SOURCES= \
2670 tests/testAddress.cc \
2672 nodist_tests_testIpAddress_SOURCES= \
2674 tests/stub_debug.cc \
2675 tests/stub_libmem.cc \
2677 tests_testIpAddress_LDADD= \
2680 $(LIBCPPUNIT_LIBS) \
2683 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2685 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2686 ## first line - what we are testing.
2687 tests_testStore_SOURCES= \
2689 tests/stub_CacheDigest.cc \
2692 tests/stub_CollapsedForwarding.cc \
2695 $(DELAY_POOL_SOURCE) \
2702 tests/stub_fatal.cc \
2705 HttpHeaderFieldStat.h \
2708 HttpHdrContRange.cc \
2711 HttpHdrScTarget.cc \
2712 HttpHeaderFieldInfo.h \
2714 HttpHeaderTools.cc \
2742 tests/stub_StoreMeta.cc \
2743 StoreMetaUnpacker.cc \
2744 StoreSwapLogData.cc \
2747 tests/stub_SBufDetailedStats.cc \
2751 tests/CapturingStoreEntry.h \
2753 tests/stub_access_log.cc \
2756 tests/stub_cache_cf.cc \
2757 tests/stub_cache_manager.cc \
2758 tests/stub_client_side_request.cc \
2759 tests/stub_comm.cc \
2760 tests/stub_debug.cc \
2761 tests/stub_errorpage.cc \
2765 tests/stub_helper.cc \
2766 tests/stub_HelperChildConfig.cc \
2767 tests/stub_http.cc \
2768 tests/stub_libauth.cc \
2769 tests/stub_libeui.cc \
2770 tests/stub_libdiskio.cc \
2771 tests/stub_libformat.cc \
2772 tests/stub_libsecurity.cc \
2773 tests/stub_libsslsquid.cc \
2776 tests/stub_HttpReply.cc \
2777 tests/stub_HttpRequest.cc \
2778 tests/stub_libcomm.cc \
2779 tests/stub_MemStore.cc \
2781 tests/stub_mime.cc \
2782 tests/stub_Port.cc \
2783 tests/stub_stat.cc \
2784 tests/stub_store_client.cc \
2785 tests/stub_store_stats.cc \
2787 tests/stub_store_rebuild.cc \
2788 tests/stub_store_swapout.cc \
2791 tests/stub_tools.cc \
2792 tests/stub_UdsOp.cc \
2793 tests/testPackableStream.cc \
2794 tests/testPackableStream.h \
2795 tests/testStore.cc \
2797 tests/testStoreController.cc \
2798 tests/testStoreController.h \
2799 tests/testStoreHashIndex.cc \
2800 tests/testStoreHashIndex.h \
2801 tests/testStoreSupport.cc \
2802 tests/testStoreSupport.h \
2803 tests/TestSwapDir.cc \
2804 tests/TestSwapDir.h \
2805 tests/stub_time.cc \
2810 nodist_tests_testStore_SOURCES= \
2816 tests_testStore_LDADD= \
2819 parser/libparser.la \
2834 DiskIO/libdiskio.la \
2835 $(top_builddir)/lib/libmisccontainers.la \
2836 $(top_builddir)/lib/libmiscencoding.la \
2837 $(top_builddir)/lib/libmiscutil.la \
2842 $(LIBCPPUNIT_LIBS) \
2845 tests_testStore_LDFLAGS = $(LIBADD_DL)
2847 ## string needs mem.cc.
2848 ## mem.cc needs ClientInfo.h
2849 ## libsquid pulls in SquidConfig and children. stub them.
2850 tests_testString_SOURCES = \
2854 tests/stub_SBufDetailedStats.cc \
2855 tests/testString.cc \
2856 tests/testString.h \
2858 tests/stub_cache_cf.cc \
2859 tests/stub_cache_manager.cc \
2860 tests/stub_cbdata.cc \
2861 tests/stub_debug.cc \
2862 tests/stub_HelperChildConfig.cc \
2863 tests/stub_libmem.cc \
2865 tests/stub_tools.cc \
2866 tests/stub_time.cc \
2869 nodist_tests_testString_SOURCES = \
2871 tests_testString_LDADD = \
2876 $(top_builddir)/lib/libmiscutil.la \
2879 $(LIBCPPUNIT_LIBS) \
2882 tests_testString_LDFLAGS = $(LIBADD_DL)
2894 DiskIO/libdiskio.la \
2899 tests_testUfs_SOURCES = \
2904 tests/stub_cache_manager.cc \
2905 tests/stub_client_db.cc \
2906 tests/stub_CollapsedForwarding.cc \
2907 tests/stub_HelperChildConfig.cc \
2910 tests/stub_ipcache.cc \
2911 tests/stub_libeui.cc \
2912 tests/stub_libicmp.cc \
2913 tests/stub_liblog.cc \
2914 tests/stub_MemStore.cc \
2915 tests/stub_neighbors.cc \
2916 tests/stub_pconn.cc \
2917 tests/stub_Port.cc \
2918 tests/stub_UdsOp.cc \
2920 tests/stub_internal.cc \
2921 tests/stub_libformat.cc \
2922 tests/stub_libsecurity.cc \
2923 tests/stub_stat.cc \
2925 tests/stub_store_rebuild.cc \
2926 tests/stub_store_stats.cc \
2928 tests/stub_fatal.cc \
2952 StoreSwapLogData.cc \
2954 StoreMetaUnpacker.cc \
2955 $(STOREMETA_SOURCE) \
2956 StoreFileSystem.cc \
2963 $(DELAY_POOL_SOURCE) \
2965 tests/stub_CacheDigest.cc \
2977 tests/stub_cache_cf.cc \
2978 tests/stub_helper.cc \
2980 tests/stub_SBufDetailedStats.cc \
2982 tests/stub_debug.cc \
2983 tests/stub_client_side_request.cc \
2984 tests/stub_http.cc \
2985 tests/stub_libauth.cc \
2989 tests/stub_mime.cc \
2990 HttpHeaderFieldInfo.h \
2992 HttpHeaderTools.cc \
2997 HttpHdrContRange.cc \
2998 HttpHeaderFieldStat.h \
3002 HttpHdrScTarget.cc \
3012 tests/stub_errorpage.cc \
3013 tests/stub_HttpRequest.cc \
3015 tests/stub_access_log.cc \
3018 tests/stub_store_client.cc \
3020 tests/stub_tools.cc \
3021 tests/testStoreSupport.cc \
3022 tests/testStoreSupport.h \
3027 nodist_tests_testUfs_SOURCES = \
3033 tests_testUfs_LDADD = \
3035 parser/libparser.la \
3047 DiskIO/libdiskio.la \
3058 $(ADAPTATION_LIBS) \
3060 $(top_builddir)/lib/libmisccontainers.la \
3061 $(top_builddir)/lib/libmiscencoding.la \
3062 $(top_builddir)/lib/libmiscutil.la \
3066 $(LIBCPPUNIT_LIBS) \
3069 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3070 tests_testUfs_DEPENDENCIES = \
3073 check_PROGRAMS += testRefCount
3074 testRefCount_SOURCES= \
3077 tests/stub_cbdata.cc \
3078 tests/stub_debug.cc \
3079 tests/stub_libmem.cc \
3080 tests/stub_MemBuf.cc \
3081 tests/testRefCount.cc
3082 testRefCount_LDADD = \
3084 $(top_builddir)/lib/libmiscutil.la \
3088 tests_testRock_SOURCES = \
3093 CollapsedForwarding.h \
3094 CollapsedForwarding.cc \
3095 tests/stub_CacheDigest.cc \
3112 HttpHeaderFieldStat.h \
3116 HttpHdrContRange.cc \
3119 HttpHdrScTarget.cc \
3122 HttpHeaderFieldInfo.h \
3124 HttpHeaderTools.cc \
3142 tests/stub_StatHist.cc \
3145 tests/stub_stat.cc \
3147 StoreFileSystem.cc \
3149 StoreMetaUnpacker.cc \
3150 $(STOREMETA_SOURCE) \
3151 StoreSwapLogData.cc \
3157 tests/stub_SBufDetailedStats.cc \
3165 tests/testStoreSupport.cc \
3166 tests/testStoreSupport.h \
3168 tests/stub_access_log.cc \
3170 tests/stub_cache_cf.cc \
3172 tests/stub_cache_manager.cc \
3173 tests/stub_client_db.cc \
3174 tests/stub_client_side_request.cc \
3175 tests/stub_debug.cc \
3176 tests/stub_errorpage.cc \
3177 tests/stub_HelperChildConfig.cc \
3178 tests/stub_http.cc \
3179 tests/stub_HttpRequest.cc \
3180 tests/stub_libauth.cc \
3183 tests/stub_ipcache.cc \
3184 tests/stub_libeui.cc \
3185 tests/stub_libformat.cc \
3186 tests/stub_libicmp.cc \
3187 tests/stub_liblog.cc \
3188 tests/stub_libmgr.cc \
3189 tests/stub_libsecurity.cc \
3190 tests/stub_MemStore.cc \
3192 tests/stub_mime.cc \
3193 tests/stub_neighbors.cc \
3194 tests/stub_Port.cc \
3195 tests/stub_pconn.cc \
3196 tests/stub_store_client.cc \
3198 tests/stub_store_rebuild.cc \
3199 tests/stub_store_stats.cc \
3201 tests/stub_tools.cc \
3206 $(DELAY_POOL_SOURCE) \
3208 nodist_tests_testRock_SOURCES = \
3214 tests_testRock_LDADD = \
3216 parser/libparser.la \
3223 DiskIO/libdiskio.la \
3234 $(ADAPTATION_LIBS) \
3236 $(top_builddir)/lib/libmisccontainers.la \
3237 $(top_builddir)/lib/libmiscencoding.la \
3238 $(top_builddir)/lib/libmiscutil.la \
3242 $(LIBCPPUNIT_LIBS) \
3245 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3246 tests_testRock_DEPENDENCIES = \
3249 ## Tests of the URL module.
3250 ## TODO: Trim this down once the insanity is over.
3251 tests_testURL_SOURCES = \
3258 tests/stub_cache_manager.cc \
3260 tests/stub_CacheDigest.cc \
3264 tests/stub_carp.cc \
3270 client_side_reply.cc \
3271 client_side_request.cc \
3274 tests/stub_CollapsedForwarding.cc \
3281 $(DELAY_POOL_SOURCE) \
3291 ExternalACLEntry.cc \
3293 tests/stub_fatal.cc \
3311 tests/stub_HttpControlMsg.cc \
3312 HttpHeaderFieldStat.h \
3315 HttpHdrContRange.cc \
3318 HttpHdrScTarget.cc \
3321 HttpHeaderFieldInfo.h \
3323 HttpHeaderTools.cc \
3338 tests/stub_libeui.cc \
3358 peer_proxy_negotiate_auth.h \
3359 peer_proxy_negotiate_auth.cc \
3362 peer_sourcehash.cc \
3368 tests/stub_redirect.cc \
3372 tests/stub_SBufDetailedStats.cc \
3382 tests/stub_StatHist.cc \
3388 tests/stub_store_digest.cc \
3400 StoreFileSystem.cc \
3402 tests/stub_StoreMeta.cc \
3403 StoreMetaUnpacker.cc \
3404 StoreSwapLogData.cc \
3409 tests/stub_SwapDir.cc \
3411 tests/stub_debug.cc \
3412 tests/stub_libauth_acls.cc \
3413 tests/stub_libauth.cc \
3414 tests/stub_libdiskio.cc \
3415 tests/stub_libmem.cc \
3416 tests/stub_libsecurity.cc \
3417 tests/stub_main_cc.cc \
3418 tests/stub_ipc_Forwarder.cc \
3419 tests/stub_store_stats.cc \
3422 tests/testUriScheme.cc \
3423 tests/testUriScheme.h \
3424 tests/stub_time.cc \
3425 tests/stub_EventLoop.cc \
3428 tests/stub_tunnel.cc \
3433 tests/stub_wccp2.cc \
3435 tests/stub_whois.cc \
3440 nodist_tests_testURL_SOURCES = \
3442 tests_testURL_LDADD = \
3444 clients/libclients.la \
3445 servers/libservers.la \
3446 helper/libhelper.la \
3449 parser/libparser.la \
3467 format/libformat.la \
3472 $(ADAPTATION_LIBS) \
3474 $(top_builddir)/lib/libmisccontainers.la \
3475 $(top_builddir)/lib/libmiscencoding.la \
3476 $(top_builddir)/lib/libmiscutil.la \
3480 $(LIBCPPUNIT_LIBS) \
3483 tests_testURL_LDFLAGS = $(LIBADD_DL)
3485 tests_testSBuf_SOURCES= \
3488 tests/SBufFindTest.h \
3489 tests/SBufFindTest.cc \
3490 tests/stub_SBufDetailedStats.cc \
3491 tests/stub_time.cc \
3492 tests/stub_debug.cc \
3493 tests/stub_fatal.cc \
3494 tests/stub_libmem.cc
3495 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3496 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3497 tests_testSBuf_LDADD= \
3500 $(LIBCPPUNIT_LIBS) \
3504 tests_testSBufList_SOURCES= \
3505 tests/testSBufList.h \
3506 tests/testSBufList.cc \
3507 tests/stub_SBufDetailedStats.cc \
3508 tests/stub_time.cc \
3509 tests/stub_debug.cc \
3510 tests/stub_fatal.cc \
3511 tests/stub_libmem.cc
3512 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3513 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3514 tests_testSBufList_LDADD=\
3517 $(LIBCPPUNIT_LIBS) \
3521 tests_testConfigParser_SOURCES = \
3523 tests/stub_MemBuf.cc \
3524 tests/stub_time.cc \
3525 tests/stub_SBufDetailedStats.cc \
3529 tests/stub_fatal.cc \
3530 tests/testConfigParser.cc \
3531 tests/testConfigParser.h \
3533 tests/stub_cache_cf.cc \
3534 tests/stub_cbdata.cc \
3535 tests/stub_debug.cc \
3536 tests/stub_libmem.cc \
3537 tests/stub_HelperChildConfig.cc \
3539 tests/stub_tools.cc \
3542 nodist_tests_testConfigParser_SOURCES = \
3544 tests_testConfigParser_LDADD = \
3549 $(top_builddir)/lib/libmiscutil.la \
3552 $(LIBCPPUNIT_LIBS) \
3555 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3557 tests_testStatHist_SOURCES = \
3558 tests/stub_cbdata.cc \
3560 tests/stub_fatal.cc \
3561 tests/stub_MemBuf.cc \
3562 tests/stub_SBufDetailedStats.cc \
3566 tests/stub_cache_manager.cc \
3567 tests/stub_comm.cc \
3568 tests/stub_debug.cc \
3569 tests/stub_DelayId.cc \
3570 tests/stub_HelperChildConfig.cc \
3571 tests/stub_libmem.cc \
3572 tests/stub_MemObject.cc \
3574 tests/stub_mime.cc \
3575 tests/stub_pconn.cc \
3576 tests/stub_stmem.cc \
3578 tests/stub_store.cc \
3579 tests/stub_store_stats.cc \
3582 tests/stub_tools.cc \
3583 tests/testStatHist.cc \
3584 tests/testStatHist.h
3585 nodist_tests_testStatHist_SOURCES = \
3587 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3588 tests_testStatHist_LDADD = \
3591 $(top_builddir)/lib/libmiscutil.la \
3592 $(top_builddir)/lib/libmisccontainers.la \
3593 $(LIBCPPUNIT_LIBS) \
3596 tests_testLookupTable_SOURCES = \
3597 tests/testLookupTable.h \
3598 tests/testLookupTable.cc \
3599 tests/stub_debug.cc \
3600 tests/stub_libmem.cc \
3601 tests/stub_SBufDetailedStats.cc \
3603 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3604 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3605 tests_testLookupTable_LDADD = \
3608 $(LIBCPPUNIT_LIBS) \
3612 tests_testEnumIterator_SOURCES = \
3613 base/EnumIterator.h \
3614 tests/stub_debug.cc \
3615 tests/stub_libmem.cc \
3616 tests/stub_SBuf.cc \
3617 tests/testEnumIterator.h \
3618 tests/testEnumIterator.cc
3619 nodist_tests_testEnumIterator_SOURCES = \
3621 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3622 tests_testEnumIterator_LDADD = \
3624 $(LIBCPPUNIT_LIBS) \
3628 tests_testYesNoNone_SOURCES = \
3629 tests/testYesNoNone.cc \
3630 tests/testYesNoNone.h
3631 nodist_tests_testYesNoNone_SOURCES = \
3633 tests/stub_debug.cc \
3634 tests/stub_libmem.cc \
3635 tests/stub_SBuf.cc \
3637 tests_testYesNoNone_LDADD= \
3639 $(LIBCPPUNIT_LIBS) \
3642 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3644 tests_testMem_SOURCES = \
3647 nodist_tests_testMem_SOURCES = \
3648 tests/stub_debug.cc \
3649 tests/stub_SBuf.cc \
3650 tests/stub_time.cc \
3652 tests_testMem_LDADD= \
3655 $(top_builddir)/lib/libmiscutil.la \
3656 $(LIBCPPUNIT_LIBS) \
3659 tests_testMem_LDFLAGS = $(LIBADD_DL)
3661 TESTS += testHeaders
3663 ## Special Universal .h dependency test script
3664 ## aborts if error encountered
3665 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3666 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3667 ## src/repl/ has no .h files and its own makefile.
3669 CLEANFILES += testHeaders