1 ## Copyright (C) 1996-2015 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
10 AUTOMAKE_OPTIONS = subdir-objects
20 OutOfBoundsException.h \
41 LOADABLE_MODULES_SOURCES = \
47 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl DiskIO
48 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl DiskIO
52 AUTH_LIBS= auth/libauth.la
53 AUTH_ACL_LIBS= auth/libacls.la
54 check_PROGRAMS+= tests/testACLMaxUserIP
58 SUBDIRS += http ip icmp ident log ipc mgr security
59 DIST_SUBDIRS += http ip icmp ident log ipc mgr security
77 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
79 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
88 DIST_SUBDIRS += adaptation
94 $(top_builddir)/lib/libTrie/libTrie.a \
102 DELAY_POOL_ALL_SOURCE = \
104 CompositePoolNode.h \
126 ClientDelayConfig.cc \
129 if ENABLE_DELAY_POOLS
130 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
135 if ENABLE_XPROF_STATS
136 XPROF_STATS_SOURCE = ProfStats.cc
142 HTCPSOURCE = htcp.cc htcp.h
146 LEAKFINDERSOURCE = LeakFinder.cc
152 UNLINKDSOURCE = unlinkd.h unlinkd.cc
155 UNLINKDSOURCE = unlinkd.h
164 if ENABLE_WIN32SPECIFIC
165 WIN32_SOURCE = win32.cc
166 WINSVC_SOURCE = WinSvc.cc
173 IPC_SOURCE = SquidIpc.h ipc_win32.cc
175 IPC_SOURCE = SquidIpc.h ipc.cc
178 noinst_LTLIBRARIES = libsquid.la
187 ## cfgen is used when building squid
188 ## ufsdump is a debug utility, it is possibly useful for end users with cache
189 ## corruption, but at this point we do not install it.
202 cf_gen_SOURCES = cf_gen.cc
203 nodist_cf_gen_HEADER = cf_gen_defines.cci
204 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
206 cf_gen.$(OBJEXT): cf_gen_defines.cci
208 ## cf_gen.cc needs src/cf_gen_defines.cci
209 AM_CPPFLAGS += -I$(top_builddir)/src
212 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
214 # common library for all the binaries and tests. This is kindof a catch all
215 # and smaller libraries split from this are encouraged. Using lt convenience
216 # libraries, dependencies should not be a problem either.
217 libsquid_la_SOURCES = \
228 $(ACL_REGISTRATION_SOURCES) \
242 NeighborTypeDomainList.h \
255 client_side_reply.cc \
256 client_side_reply.h \
257 client_side_request.cc \
258 client_side_request.h \
263 ClientRequestContext.h \
266 clientStreamForward.h \
267 CollapsedForwarding.cc \
268 CollapsedForwarding.h \
269 CompletionDispatcher.cc \
270 CompletionDispatcher.h \
284 $(DELAY_POOL_SOURCE) \
303 ExternalACLEntry.cc \
326 HierarchyLogEntry.h \
331 HttpHeaderFieldStat.h \
340 HttpHdrContRange.cc \
347 HttpHeaderFieldInfo.h \
372 $(LEAKFINDERSOURCE) \
399 $(XPROF_STATS_SOURCE) \
404 peer_proxy_negotiate_auth.h \
405 peer_proxy_negotiate_auth.cc \
425 SBufDetailedStats.h \
426 SBufDetailedStats.cc \
470 StoreMetaUnpacker.cc \
471 StoreMetaUnpacker.h \
472 $(STOREMETA_SOURCE) \
476 StoreSwapLogData.cc \
507 EXTRA_squid_SOURCES = \
510 $(DELAY_POOL_ALL_SOURCE) \
520 $(WIN32_ALL_SOURCE) \
521 $(LOADABLE_MODULES_SOURCES)
524 client_side_request.cci \
543 CLEANFILES += $(BUILT_SOURCES)
545 nodist_squid_SOURCES = \
555 clients/libclients.la \
556 servers/libservers.la \
558 helper/libhelper.la \
559 http/libsquid-http.la \
560 parser/libsquid-parser.la \
566 DiskIO/libdiskio.la \
571 security/libsecurity.la \
574 icmp/libicmp.la icmp/libicmp-core.la \
576 format/libformat.la \
586 $(top_builddir)/lib/libmisccontainers.la \
587 $(top_builddir)/lib/libmiscencoding.la \
588 $(top_builddir)/lib/libmiscutil.la \
596 if ENABLE_LOADABLE_MODULES
597 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
598 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
599 squid_LDFLAGS = -export-dynamic -dlopen force
600 ## when static module linking is supported and enabled:
601 ## squid_LDFLAGS = -all-static -dlopen self
603 ## LTDL headers require their local include path...
604 AM_CPPFLAGS += $(INCLTDL)
607 ## Kerberos libraries require their include path...
608 AM_CPPFLAGS += $(KRB5INCS)
611 unlinkd_SOURCES = unlinkd_daemon.cc
616 recv_announce_SOURCES = recv-announce.cc
618 ## What requires what..
619 ## many things want ACLChecklist.cc
620 ## ACLChecklist.cc wants AuthUserRequest.cc
621 ## ACLChecklist.cc wants AuthScheme.cc
622 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
623 ## ACLProxyAuth.cc wants ACLUserData
624 ## ACLProxyAuth.cc wants ACLRegexData
625 ## cache_cf.cc wants $(AUTH_LIBS)
626 ## cache_cf.cc wants Swapdir
627 ## cache_cf.cc wants AnyP::PortCfg
628 ## client_side wants client_db
629 ## client_db wants SNMP_SOURCE
630 ## snmp_core wants ACLStringData
631 ## SwapDir wants ConfigOption
632 ## tools.cc wants ip/libip.la
633 ## client_side.cc wants ip/libip.la
634 ## libbase.la wants cbdata.*
635 ## libbase.la wants MemBuf.*
649 tests/stub_StoreMeta.cc \
650 StoreMetaUnpacker.cc \
657 helper/ChildConfig.h \
658 tests/stub_HelperChildConfig.cc \
684 ufsdump_DEPENDENCIES = \
696 DiskIO/libdiskio.la \
700 nodist_ufsdump_SOURCES = \
705 squid.conf.documented \
730 include $(srcdir)/tests/Stub.list
738 mk-string-arrays.pl \
739 mk-string-arrays.awk \
745 DEFAULT_HTTP_PORT = 3128
746 DEFAULT_ICP_PORT = 3130
747 DEFAULT_PREFIX = $(prefix)
748 DEFAULT_CONFIG_DIR = $(sysconfdir)
749 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
750 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
751 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
752 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
753 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
754 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
755 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
756 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
757 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
758 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
759 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
760 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
761 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
762 DEFAULT_ICON_DIR = $(datadir)/icons
763 DEFAULT_ERROR_DIR = $(datadir)/errors
765 # Make location configure settings available to the code
766 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
768 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
770 globals.cc: globals.h mk-globals-c.awk
771 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
773 ## Generate files containing string arrays for various enums....
774 hier_code.cc: hier_code.h mk-string-arrays.awk
775 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
777 err_type.cc: err_type.h mk-string-arrays.awk
778 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
780 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
781 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
783 lookup_t.cc: lookup_t.h mk-string-arrays.awk
784 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
786 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
787 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
789 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
790 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
793 ## other generated files...
795 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
796 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
798 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
799 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
801 ## If autodependency works well this is not needed anymore
802 cache_cf.o: cf_parser.cci
804 # cf_gen builds the configuration files.
805 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
806 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
808 # squid.conf.default is built by cf_gen when making cf_parser.cci
809 squid.conf.default squid.conf.documented: cf_parser.cci
812 cf_parser.cci: cf.data cf_gen$(EXEEXT)
813 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
815 # The cf_gen_defines.cci is auto-generated and does not exist when the
816 # dependencies computed. We need to add its include files (autoconf.h) here
817 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
818 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
821 ## FIXME: generate a sed command file from configure. Then this doesn't
822 ## depend on the Makefile.
823 cf.data: cf.data.pre Makefile
825 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
826 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
827 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
828 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
829 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
830 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
831 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
832 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
833 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
834 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
835 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
836 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
837 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
838 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
839 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
840 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
841 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
842 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
843 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
844 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
845 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
846 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
847 < $(srcdir)/cf.data.pre >$@
849 repl_modules.cc: repl_modules.sh Makefile
850 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
852 include $(top_srcdir)/doc/manuals/Substitute.am
854 squid.8: $(srcdir)/squid.8.in Makefile
855 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
858 EXTRA_DIST += squid.8.in
859 CLEANFILES += squid.8
861 install-data-local: install-sysconfDATA install-dataDATA
862 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
863 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
865 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
866 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
868 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
869 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
871 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
872 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
874 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
875 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
876 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
877 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
878 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
879 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
880 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
882 uninstall-local: squid.conf.default
883 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
884 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
886 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
889 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
890 cp $(top_srcdir)/test-suite/test_tools.cc .
892 # stock tools for unit tests - library independent versions of dlink_list
894 # globals.cc is needed by test_tools.cc.
895 # Neither of these should be disted from here.
902 tests/testBoilerplate \
903 tests/testCacheManager \
907 tests/testEventLoop \
908 tests/test_http_range \
909 tests/testHttp1Parser \
910 tests/testHttpReply \
911 tests/testHttpRequest \
917 tests/testConfigParser \
919 tests/testLookupTable
922 check_PROGRAMS += tests/testRock
925 check_PROGRAMS += tests/testUfs
928 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
929 TESTS += $(check_PROGRAMS)
931 ### Template for new Unit Test Program
932 ## - add tests/testX to check_PROGRAMS above.
933 ## - copy template below and substitue X for class name
934 ## - add other component .(h|cc) files needed to link and run tests
936 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
938 #tests_testX_SOURCES=\
943 #nodist_tests_testX_SOURCES=\
945 #tests_testX_LDFLAGS = $(LIBADD_DL)
947 # $(SQUID_CPPUNIT_LIBS) \
948 # $(SQUID_CPPUNIT_LA) \
950 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
953 # - add other component .(h|cc) files needed to link and run tests
954 tests_testHttpReply_SOURCES=\
960 tests/stub_fatal.cc \
963 HttpHeaderFieldStat.h \
967 HttpHdrContRange.cc \
977 HttpHeaderFieldInfo.h \
996 SBufDetailedStats.h \
997 tests/stub_SBufDetailedStats.cc \
1002 tests/stub_access_log.cc \
1005 tests/stub_cache_cf.cc \
1006 tests/stub_cache_manager.cc \
1007 tests/stub_comm.cc \
1008 tests/stub_debug.cc \
1009 tests/stub_errorpage.cc \
1010 tests/stub_event.cc \
1012 tests/stub_HelperChildConfig.cc \
1013 tests/stub_libformat.cc \
1014 tests/stub_libauth.cc \
1015 tests/stub_libcomm.cc \
1016 tests/stub_libmgr.cc \
1017 tests/stub_libsecurity.cc \
1018 tests/stub_libsslsquid.cc \
1022 tests/stub_StatHist.cc \
1024 tests/stub_store.cc \
1025 tests/stub_store_stats.cc \
1027 tests/stub_tools.cc \
1028 tests/stub_HttpRequest.cc \
1029 tests/testHttpReply.cc \
1030 tests/testHttpReply.h \
1031 tests/stub_time.cc \
1035 nodist_tests_testHttpReply_SOURCES=\
1037 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1038 tests_testHttpReply_LDADD=\
1040 http/libsquid-http.la \
1041 parser/libsquid-parser.la \
1050 $(top_builddir)/lib/libmisccontainers.la \
1051 $(top_builddir)/lib/libmiscencoding.la \
1052 $(top_builddir)/lib/libmiscutil.la \
1053 $(SQUID_CPPUNIT_LIBS) \
1054 $(SQUID_CPPUNIT_LA) \
1059 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1061 tests_testACLMaxUserIP_SOURCES= \
1064 tests/stub_CollapsedForwarding.cc \
1067 tests/stub_ETag.cc \
1070 tests/stub_fatal.cc \
1076 HttpHeaderFieldInfo.h \
1078 HttpHeaderTools.cc \
1079 HttpHdrContRange.cc \
1081 HttpHeaderFieldStat.h \
1086 HttpHdrScTarget.cc \
1098 tests/stub_libsecurity.cc \
1105 tests/stub_StatHist.cc \
1108 SBufDetailedStats.h \
1109 tests/stub_SBufDetailedStats.cc \
1113 tests/stub_StoreMeta.cc \
1114 StoreMetaUnpacker.cc \
1115 StoreSwapLogData.cc \
1120 tests/stub_SwapDir.cc \
1124 tests/stub_access_log.cc \
1127 tests/stub_cache_cf.cc \
1128 tests/stub_client_side.cc \
1129 tests/stub_debug.cc \
1130 tests/stub_DelayId.cc \
1131 tests/stub_errorpage.cc \
1134 tests/stub_HttpRequest.cc \
1135 tests/stub_HttpReply.cc \
1136 tests/stub_ipc_TypedMsgHdr.cc \
1137 tests/stub_libauth.cc \
1138 tests/stub_libcomm.cc \
1139 tests/stub_libdiskio.cc \
1140 tests/stub_libformat.cc \
1141 tests/stub_libsslsquid.cc \
1142 tests/stub_MemObject.cc \
1143 tests/stub_MemStore.cc \
1145 tests/stub_mime.cc \
1146 tests/stub_pconn.cc \
1147 tests/stub_Port.cc \
1149 tests/stub_store.cc \
1150 tests/stub_store_client.cc \
1152 tests/stub_store_rebuild.cc \
1153 tests/stub_store_stats.cc \
1154 tests/stub_store_swapout.cc \
1156 tests/stub_tools.cc \
1157 tests/stub_cache_manager.cc \
1158 tests/stub_UdsOp.cc \
1159 tests/testACLMaxUserIP.cc \
1160 tests/testACLMaxUserIP.h \
1161 tests/stub_time.cc \
1164 tests/stub_libmem.cc \
1168 nodist_tests_testACLMaxUserIP_SOURCES= \
1170 tests_testACLMaxUserIP_LDADD= \
1172 helper/libhelper.la \
1173 http/libsquid-http.la \
1174 parser/libsquid-parser.la \
1186 $(top_builddir)/lib/libmisccontainers.la \
1187 $(top_builddir)/lib/libmiscencoding.la \
1188 $(top_builddir)/lib/libmiscutil.la \
1190 $(SQUID_CPPUNIT_LIBS) \
1194 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1195 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1196 ## $(SQUID_CPPUNIT_LA)
1198 ## a demonstration test that does nothing but shows the salient points
1199 ## involved in writing tests.
1200 tests_testBoilerplate_SOURCES = \
1201 tests/testBoilerplate.cc \
1202 tests/testBoilerplate.h \
1203 tests/stub_debug.cc \
1205 nodist_tests_testBoilerplate_SOURCES = \
1206 tests/stub_cbdata.cc \
1207 tests/stub_MemBuf.cc \
1209 tests_testBoilerplate_LDADD= \
1210 $(SQUID_CPPUNIT_LIBS) \
1215 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1216 tests_testBoilerplate_DEPENDENCIES = \
1219 ## Tests of the CacheManager module.
1220 tests_testCacheManager_SOURCES = \
1227 tests/testCacheManager.cc \
1228 tests/testCacheManager.h \
1229 tests/stub_main_cc.cc \
1230 tests/stub_ipc_Forwarder.cc \
1231 tests/stub_store_stats.cc \
1232 tests/stub_EventLoop.cc \
1245 tests/stub_CacheDigest.cc \
1247 tests/stub_carp.cc \
1253 client_side_reply.cc \
1254 client_side_request.cc \
1257 tests/stub_CollapsedForwarding.cc \
1264 $(DELAY_POOL_SOURCE) \
1271 tests/stub_ETag.cc \
1274 ExternalACLEntry.cc \
1276 tests/stub_fatal.cc \
1297 HttpHeaderFieldInfo.h \
1299 HttpHeaderTools.cc \
1300 HttpHeaderFieldStat.h \
1304 HttpHdrContRange.cc \
1307 HttpHdrScTarget.cc \
1319 tests/stub_libsecurity.cc \
1340 peer_proxy_negotiate_auth.h \
1341 peer_proxy_negotiate_auth.cc \
1344 peer_sourcehash.cc \
1350 tests/stub_redirect.cc \
1355 SBufDetailedStats.h \
1356 tests/stub_SBufDetailedStats.cc \
1368 tests/stub_libauth_acls.cc \
1369 tests/stub_libauth.cc \
1370 tests/stub_libdiskio.cc \
1371 tests/stub_StatHist.cc \
1377 tests/stub_store_digest.cc \
1390 StoreFileSystem.cc \
1392 tests/stub_StoreMeta.cc \
1393 StoreMetaUnpacker.cc \
1394 StoreSwapLogData.cc \
1398 tests/stub_tunnel.cc \
1399 tests/stub_SwapDir.cc \
1406 tests/stub_wccp2.cc \
1408 tests/stub_whois.cc \
1413 nodist_tests_testCacheManager_SOURCES = \
1415 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1416 tests_testCacheManager_LDADD = \
1418 clients/libclients.la \
1419 servers/libservers.la \
1421 helper/libhelper.la \
1422 http/libsquid-http.la \
1423 parser/libsquid-parser.la \
1434 icmp/libicmp.la icmp/libicmp-core.la \
1436 format/libformat.la \
1438 $(ADAPTATION_LIBS) \
1446 $(top_builddir)/lib/libmisccontainers.la \
1447 $(top_builddir)/lib/libmiscencoding.la \
1448 $(top_builddir)/lib/libmiscutil.la \
1450 $(SQUID_CPPUNIT_LIBS) \
1451 $(SQUID_CPPUNIT_LA) \
1456 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1457 tests_testCacheManager_DEPENDENCIES = \
1461 tests_testDiskIO_SOURCES = \
1463 tests/stub_CacheDigest.cc \
1467 tests/stub_CollapsedForwarding.cc \
1470 $(DELAY_POOL_SOURCE) \
1473 tests/stub_ETag.cc \
1477 tests/stub_fatal.cc \
1486 HttpHeaderFieldStat.h \
1490 HttpHdrContRange.cc \
1492 HttpHdrScTarget.cc \
1494 HttpHeaderFieldInfo.h \
1496 HttpHeaderTools.cc \
1518 tests/stub_libsecurity.cc \
1522 tests/stub_StatHist.cc \
1525 SBufDetailedStats.h \
1526 tests/stub_SBufDetailedStats.cc \
1527 StoreFileSystem.cc \
1529 tests/stub_StoreMeta.cc \
1530 StoreMetaUnpacker.cc \
1531 StoreSwapLogData.cc \
1543 tests/stub_SwapDir.cc \
1546 tests/stub_access_log.cc \
1550 tests/stub_cache_cf.cc \
1551 tests/stub_cache_manager.cc \
1552 tests/stub_client_db.cc \
1553 client_side_request.h \
1554 tests/stub_client_side_request.cc \
1555 tests/stub_debug.cc \
1556 tests/stub_errorpage.cc \
1557 tests/stub_helper.cc \
1558 tests/stub_HelperChildConfig.cc \
1559 tests/stub_HttpRequest.cc \
1560 tests/stub_http.cc \
1563 tests/stub_internal.cc \
1565 tests/stub_ipcache.cc \
1566 tests/stub_libauth_acls.cc \
1567 tests/stub_libauth.cc \
1568 tests/stub_libeui.cc \
1569 tests/stub_libformat.cc \
1570 tests/stub_libicmp.cc \
1571 tests/stub_MemStore.cc \
1573 tests/stub_mime.cc \
1574 tests/stub_neighbors.cc \
1575 tests/stub_pconn.cc \
1576 tests/stub_Port.cc \
1577 tests/stub_stat.cc \
1578 tests/stub_store_client.cc \
1579 tests/stub_store_stats.cc \
1581 tests/stub_store_rebuild.cc \
1582 tests/stub_UdsOp.cc \
1583 tests/testDiskIO.cc \
1584 tests/testDiskIO.h \
1585 tests/testStoreSupport.cc \
1586 tests/testStoreSupport.h \
1587 tests/stub_time.cc \
1595 nodist_tests_testDiskIO_SOURCES= \
1600 tests_testDiskIO_LDADD = \
1602 http/libsquid-http.la \
1603 parser/libsquid-parser.la \
1614 DiskIO/libdiskio.la \
1623 $(top_builddir)/lib/libmisccontainers.la \
1624 $(top_builddir)/lib/libmiscencoding.la \
1625 $(top_builddir)/lib/libmiscutil.la \
1627 $(SQUID_CPPUNIT_LIBS) \
1632 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1633 tests_testDiskIO_DEPENDENCIES = \
1634 DiskIO/libdiskio.la \
1638 tests_testDns_SOURCES= \
1639 tests/testRFC1035.cc \
1641 nodist_tests_testDns_SOURCES= \
1642 tests/stub_debug.cc \
1643 tests/stub_SBuf.cc \
1645 tests_testDns_LDADD= \
1648 $(top_builddir)/lib/libmiscutil.la \
1651 $(SQUID_CPPUNIT_LA) \
1652 $(SQUID_CPPUNIT_LIBS)
1653 tests_testDns_LDFLAGS= $(LIBADD_DL)
1655 tests_testEvent_SOURCES = \
1659 tests/stub_CacheDigest.cc \
1670 tests/stub_carp.cc \
1676 client_side_reply.cc \
1677 client_side_request.cc \
1680 tests/stub_CollapsedForwarding.cc \
1688 $(DELAY_POOL_SOURCE) \
1695 tests/stub_ETag.cc \
1700 ExternalACLEntry.cc \
1703 tests/stub_fatal.cc \
1723 HttpHeaderFieldInfo.h \
1725 HttpHeaderTools.cc \
1726 HttpHeaderFieldStat.h \
1730 HttpHdrContRange.cc \
1733 HttpHdrScTarget.cc \
1750 tests/stub_libsecurity.cc \
1755 tests/stub_libmem.cc \
1772 peer_proxy_negotiate_auth.h \
1773 peer_proxy_negotiate_auth.cc \
1776 peer_sourcehash.cc \
1780 tests/stub_redirect.cc \
1787 SBufDetailedStats.h \
1788 tests/stub_SBufDetailedStats.cc \
1804 tests/stub_store_digest.cc \
1817 StoreFileSystem.cc \
1819 tests/stub_StoreMeta.cc \
1820 StoreMetaUnpacker.cc \
1821 StoreSwapLogData.cc \
1823 tests/stub_SwapDir.cc \
1824 tests/CapturingStoreEntry.h \
1825 tests/testEvent.cc \
1827 tests/stub_main_cc.cc \
1828 tests/stub_ipc_Forwarder.cc \
1829 tests/stub_libauth_acls.cc \
1830 tests/stub_libauth.cc \
1831 tests/stub_libdiskio.cc \
1832 tests/stub_libeui.cc \
1833 tests/stub_store_stats.cc \
1838 tests/stub_tunnel.cc \
1845 tests/stub_wccp2.cc \
1847 tests/stub_whois.cc \
1851 nodist_tests_testEvent_SOURCES = \
1853 tests_testEvent_LDADD = \
1855 clients/libclients.la \
1856 servers/libservers.la \
1858 helper/libhelper.la \
1859 http/libsquid-http.la \
1860 parser/libsquid-parser.la \
1870 icmp/libicmp.la icmp/libicmp-core.la \
1873 format/libformat.la \
1875 $(ADAPTATION_LIBS) \
1878 $(top_builddir)/lib/libmisccontainers.la \
1879 $(top_builddir)/lib/libmiscencoding.la \
1880 $(top_builddir)/lib/libmiscutil.la \
1885 $(SQUID_CPPUNIT_LIBS) \
1886 $(SQUID_CPPUNIT_LA) \
1891 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1892 tests_testEvent_DEPENDENCIES = \
1896 ## Tests of the EventLoop module.
1897 tests_testEventLoop_SOURCES = \
1901 tests/stub_CacheDigest.cc \
1912 tests/stub_carp.cc \
1918 client_side_reply.cc \
1919 client_side_request.cc \
1922 tests/stub_CollapsedForwarding.cc \
1930 $(DELAY_POOL_SOURCE) \
1937 tests/stub_ETag.cc \
1942 ExternalACLEntry.cc \
1945 tests/stub_fatal.cc \
1965 HttpHeaderFieldInfo.h \
1967 HttpHeaderTools.cc \
1968 HttpHeaderFieldStat.h \
1972 HttpHdrContRange.cc \
1975 HttpHdrScTarget.cc \
1998 tests/stub_libmem.cc \
2013 peer_proxy_negotiate_auth.h \
2014 peer_proxy_negotiate_auth.cc \
2017 peer_sourcehash.cc \
2022 tests/stub_redirect.cc \
2026 SBufDetailedStats.h \
2027 tests/stub_SBufDetailedStats.cc \
2043 tests/stub_store_digest.cc \
2056 StoreFileSystem.cc \
2058 tests/stub_StoreMeta.cc \
2059 StoreMetaUnpacker.cc \
2060 StoreSwapLogData.cc \
2064 tests/stub_SwapDir.cc \
2065 tests/testEventLoop.cc \
2066 tests/testEventLoop.h \
2067 tests/stub_main_cc.cc \
2068 tests/stub_ipc_Forwarder.cc \
2069 tests/stub_libauth_acls.cc \
2070 tests/stub_libauth.cc \
2071 tests/stub_libdiskio.cc \
2072 tests/stub_libeui.cc \
2073 tests/stub_libsecurity.cc \
2074 tests/stub_store_stats.cc \
2079 tests/stub_tunnel.cc \
2086 tests/stub_wccp2.cc \
2088 tests/stub_whois.cc \
2092 nodist_tests_testEventLoop_SOURCES = \
2094 tests_testEventLoop_LDADD = \
2096 clients/libclients.la \
2097 servers/libservers.la \
2099 helper/libhelper.la \
2100 http/libsquid-http.la \
2101 parser/libsquid-parser.la \
2111 icmp/libicmp.la icmp/libicmp-core.la \
2114 format/libformat.la \
2116 $(ADAPTATION_LIBS) \
2119 $(top_builddir)/lib/libmisccontainers.la \
2120 $(top_builddir)/lib/libmiscencoding.la \
2121 $(top_builddir)/lib/libmiscutil.la \
2126 $(SQUID_CPPUNIT_LIBS) \
2127 $(SQUID_CPPUNIT_LA) \
2132 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2133 tests_testEventLoop_DEPENDENCIES = \
2137 tests_test_http_range_SOURCES = \
2150 tests/stub_CacheDigest.cc \
2152 tests/stub_carp.cc \
2158 client_side_reply.cc \
2159 client_side_request.cc \
2162 tests/stub_CollapsedForwarding.cc \
2170 $(DELAY_POOL_SOURCE) \
2177 tests/stub_ETag.cc \
2181 tests/stub_libauth.cc \
2182 tests/stub_fatal.cc \
2200 HttpHeaderFieldStat.h \
2204 HttpHdrContRange.cc \
2207 HttpHdrScTarget.cc \
2210 HttpHeaderFieldInfo.h \
2212 HttpHeaderTools.cc \
2235 tests/stub_libmem.cc \
2249 peer_proxy_negotiate_auth.h \
2250 peer_proxy_negotiate_auth.cc \
2253 peer_sourcehash.cc \
2258 tests/stub_redirect.cc \
2263 SBufDetailedStats.h \
2264 tests/stub_SBufDetailedStats.cc \
2280 tests/stub_store_digest.cc \
2293 StoreFileSystem.cc \
2295 tests/stub_StoreMeta.cc \
2296 StoreMetaUnpacker.cc \
2297 StoreSwapLogData.cc \
2301 tests/stub_SwapDir.cc \
2303 tests/test_http_range.cc \
2304 tests/stub_external_acl.cc \
2305 tests/stub_ipc_Forwarder.cc \
2306 tests/stub_libdiskio.cc \
2307 tests/stub_libeui.cc \
2308 tests/stub_libsecurity.cc \
2309 tests/stub_main_cc.cc \
2310 tests/stub_MemStore.cc \
2311 tests/stub_store_stats.cc \
2312 tests/stub_EventLoop.cc \
2316 tests/stub_tunnel.cc \
2322 tests/stub_wccp2.cc \
2324 tests/stub_whois.cc \
2328 nodist_tests_test_http_range_SOURCES = \
2330 tests_test_http_range_LDADD = \
2332 clients/libclients.la \
2333 servers/libservers.la \
2335 helper/libhelper.la \
2336 http/libsquid-http.la \
2337 parser/libsquid-parser.la \
2342 parser/libsquid-parser.la \
2346 icmp/libicmp.la icmp/libicmp-core.la \
2349 format/libformat.la \
2351 $(ADAPTATION_LIBS) \
2359 $(top_builddir)/lib/libmisccontainers.la \
2360 $(top_builddir)/lib/libmiscencoding.la \
2361 $(top_builddir)/lib/libmiscutil.la \
2363 $(SQUID_CPPUNIT_LIBS) \
2364 $(SQUID_CPPUNIT_LA) \
2369 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2370 tests_test_http_range_DEPENDENCIES = \
2373 tests_testHttp1Parser_SOURCES = \
2377 tests/stub_MemObject.cc \
2378 tests/stub_libmem.cc \
2385 tests/stub_SBufDetailedStats.cc \
2386 tests/stub_cache_cf.cc \
2387 tests/stub_cache_manager.cc \
2388 tests/stub_comm.cc \
2389 tests/stub_cbdata.cc \
2390 tests/stub_debug.cc \
2391 tests/stub_event.cc \
2392 tests/stub_HelperChildConfig.cc \
2393 tests/stub_libsecurity.cc \
2394 tests/stub_stmem.cc \
2395 tests/stub_store.cc \
2396 tests/stub_store_stats.cc \
2398 tests/stub_tools.cc \
2399 tests/testHttp1Parser.cc \
2400 tests/testHttp1Parser.h \
2401 tests/stub_time.cc \
2404 nodist_tests_testHttp1Parser_SOURCES = \
2406 tests_testHttp1Parser_LDADD= \
2407 http/libsquid-http.la \
2408 parser/libsquid-parser.la \
2413 $(top_builddir)/lib/libmiscutil.la \
2414 $(SQUID_CPPUNIT_LIBS) \
2417 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2418 tests_testHttp1Parser_DEPENDENCIES = \
2421 ## Tests of the HttpRequest module.
2422 tests_testHttpRequest_SOURCES = \
2427 tests/stub_libmem.cc \
2429 tests/testHttpRequest.h \
2430 tests/testHttpRequest.cc \
2431 tests/testHttpRequestMethod.h \
2432 tests/testHttpRequestMethod.cc \
2433 tests/stub_libauth.cc \
2434 tests/stub_main_cc.cc \
2435 tests/stub_ipc_Forwarder.cc \
2436 tests/stub_libdiskio.cc \
2437 tests/stub_libeui.cc \
2438 tests/stub_store_stats.cc \
2439 tests/stub_EventLoop.cc \
2451 tests/stub_CacheDigest.cc \
2455 tests/stub_carp.cc \
2461 client_side_reply.cc \
2462 client_side_request.cc \
2465 tests/stub_CollapsedForwarding.cc \
2472 $(DELAY_POOL_SOURCE) \
2479 tests/stub_ETag.cc \
2481 ExternalACLEntry.cc \
2483 tests/stub_fatal.cc \
2501 HttpHeaderFieldInfo.h \
2503 HttpHeaderTools.cc \
2504 HttpHeaderFieldStat.h \
2508 HttpHdrContRange.cc \
2511 HttpHdrScTarget.cc \
2523 tests/stub_libsecurity.cc \
2544 peer_proxy_negotiate_auth.h \
2545 peer_proxy_negotiate_auth.cc \
2548 peer_sourcehash.cc \
2554 tests/stub_libauth_acls.cc \
2555 tests/stub_redirect.cc \
2560 SBufDetailedStats.h \
2561 tests/stub_SBufDetailedStats.cc \
2577 tests/stub_store_digest.cc \
2590 StoreFileSystem.cc \
2592 tests/stub_StoreMeta.cc \
2593 StoreMetaUnpacker.cc \
2594 StoreSwapLogData.cc \
2601 tests/stub_tunnel.cc \
2602 tests/stub_SwapDir.cc \
2608 tests/stub_wccp2.cc \
2610 tests/stub_whois.cc \
2615 nodist_tests_testHttpRequest_SOURCES = \
2617 tests_testHttpRequest_LDADD = \
2619 clients/libclients.la \
2620 servers/libservers.la \
2621 helper/libhelper.la \
2623 http/libsquid-http.la \
2628 parser/libsquid-parser.la \
2633 parser/libsquid-parser.la \
2639 icmp/libicmp.la icmp/libicmp-core.la \
2642 format/libformat.la \
2644 $(ADAPTATION_LIBS) \
2646 $(top_builddir)/lib/libmisccontainers.la \
2647 $(top_builddir)/lib/libmiscencoding.la \
2648 $(top_builddir)/lib/libmiscutil.la \
2650 $(SQUID_CPPUNIT_LIBS) \
2651 $(SQUID_CPPUNIT_LA) \
2656 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2657 tests_testHttpRequest_DEPENDENCIES = \
2661 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2662 ## first line - what we are testing.
2663 tests_testStore_SOURCES= \
2665 tests/stub_CacheDigest.cc \
2668 tests/stub_CollapsedForwarding.cc \
2671 $(DELAY_POOL_SOURCE) \
2678 tests/stub_fatal.cc \
2681 HttpHeaderFieldStat.h \
2685 HttpHdrContRange.cc \
2688 HttpHdrScTarget.cc \
2689 HttpHeaderFieldInfo.h \
2691 HttpHeaderTools.cc \
2723 tests/stub_StoreMeta.cc \
2724 StoreMetaUnpacker.cc \
2725 StoreSwapLogData.cc \
2729 SBufDetailedStats.h \
2730 tests/stub_SBufDetailedStats.cc \
2735 tests/CapturingStoreEntry.h \
2737 tests/stub_access_log.cc \
2741 tests/stub_cache_cf.cc \
2742 tests/stub_cache_manager.cc \
2743 tests/stub_client_side_request.cc \
2744 tests/stub_comm.cc \
2745 tests/stub_debug.cc \
2746 tests/stub_errorpage.cc \
2750 tests/stub_helper.cc \
2751 tests/stub_HelperChildConfig.cc \
2752 tests/stub_http.cc \
2753 tests/stub_libauth.cc \
2754 tests/stub_libeui.cc \
2755 tests/stub_libdiskio.cc \
2756 tests/stub_libformat.cc \
2757 tests/stub_libsecurity.cc \
2758 tests/stub_libsslsquid.cc \
2761 tests/stub_HttpReply.cc \
2762 tests/stub_HttpRequest.cc \
2763 tests/stub_libcomm.cc \
2764 tests/stub_MemStore.cc \
2766 tests/stub_mime.cc \
2767 tests/stub_Port.cc \
2768 tests/stub_stat.cc \
2769 tests/stub_store_client.cc \
2770 tests/stub_store_stats.cc \
2772 tests/stub_store_rebuild.cc \
2773 tests/stub_store_swapout.cc \
2776 tests/stub_tools.cc \
2777 tests/stub_UdsOp.cc \
2778 tests/testStore.cc \
2780 tests/testStoreEntryStream.cc \
2781 tests/testStoreEntryStream.h \
2782 tests/testStoreController.cc \
2783 tests/testStoreController.h \
2784 tests/testStoreHashIndex.cc \
2785 tests/testStoreHashIndex.h \
2786 tests/testStoreSupport.cc \
2787 tests/testStoreSupport.h \
2788 tests/TestSwapDir.cc \
2789 tests/TestSwapDir.h \
2790 tests/stub_time.cc \
2795 nodist_tests_testStore_SOURCES= \
2801 tests_testStore_LDADD= \
2803 http/libsquid-http.la \
2804 parser/libsquid-parser.la \
2817 DiskIO/libdiskio.la \
2818 $(top_builddir)/lib/libmisccontainers.la \
2819 $(top_builddir)/lib/libmiscencoding.la \
2820 $(top_builddir)/lib/libmiscutil.la \
2822 $(SQUID_CPPUNIT_LIBS) \
2827 tests_testStore_LDFLAGS = $(LIBADD_DL)
2828 tests_testStore_DEPENDENCIES = \
2831 ## string needs mem.cc.
2832 ## mem.cc needs ClientInfo.h
2833 ## libsquid pulls in SquidConfig and children. stub them.
2834 tests_testString_SOURCES = \
2836 tests/stub_libmem.cc \
2840 SBufDetailedStats.h \
2841 tests/stub_SBufDetailedStats.cc \
2842 tests/testString.cc \
2843 tests/testString.h \
2846 tests/stub_cache_cf.cc \
2847 tests/stub_cache_manager.cc \
2848 tests/stub_cbdata.cc \
2849 tests/stub_debug.cc \
2850 tests/stub_HelperChildConfig.cc \
2852 tests/stub_tools.cc \
2853 tests/stub_time.cc \
2856 nodist_tests_testString_SOURCES = \
2858 tests_testString_LDADD = \
2862 $(top_builddir)/lib/libmiscutil.la \
2863 $(SQUID_CPPUNIT_LIBS) \
2867 tests_testString_LDFLAGS = $(LIBADD_DL)
2868 tests_testString_DEPENDENCIES = \
2881 DiskIO/libdiskio.la \
2887 tests_testUfs_SOURCES = \
2890 tests/stub_cache_manager.cc \
2891 tests/stub_client_db.cc \
2892 tests/stub_CollapsedForwarding.cc \
2893 tests/stub_HelperChildConfig.cc \
2896 tests/stub_ipcache.cc \
2897 tests/stub_libeui.cc \
2898 tests/stub_libicmp.cc \
2899 tests/stub_MemStore.cc \
2900 tests/stub_neighbors.cc \
2901 tests/stub_pconn.cc \
2902 tests/stub_Port.cc \
2903 tests/stub_UdsOp.cc \
2905 tests/stub_internal.cc \
2906 tests/stub_libformat.cc \
2907 tests/stub_libsecurity.cc \
2908 tests/stub_stat.cc \
2910 tests/stub_store_rebuild.cc \
2911 tests/stub_store_stats.cc \
2913 tests/stub_fatal.cc \
2938 StoreSwapLogData.cc \
2940 StoreMetaUnpacker.cc \
2941 $(STOREMETA_SOURCE) \
2942 StoreFileSystem.cc \
2949 $(DELAY_POOL_SOURCE) \
2951 tests/stub_CacheDigest.cc \
2967 tests/stub_cache_cf.cc \
2968 tests/stub_helper.cc \
2971 SBufDetailedStats.h \
2972 tests/stub_SBufDetailedStats.cc \
2974 tests/stub_debug.cc \
2975 tests/stub_client_side_request.cc \
2976 tests/stub_http.cc \
2977 tests/stub_libauth.cc \
2981 tests/stub_mime.cc \
2982 HttpHeaderFieldInfo.h \
2984 HttpHeaderTools.cc \
2989 HttpHdrContRange.cc \
2990 HttpHeaderFieldStat.h \
2995 HttpHdrScTarget.cc \
3005 tests/stub_errorpage.cc \
3006 tests/stub_HttpRequest.cc \
3008 tests/stub_access_log.cc \
3011 tests/stub_store_client.cc \
3013 tests/stub_tools.cc \
3014 tests/testStoreSupport.cc \
3015 tests/testStoreSupport.h \
3020 nodist_tests_testUfs_SOURCES = \
3025 tests_testUfs_LDADD = \
3026 http/libsquid-http.la \
3027 parser/libsquid-parser.la \
3039 DiskIO/libdiskio.la \
3049 $(top_builddir)/lib/libmisccontainers.la \
3050 $(top_builddir)/lib/libmiscencoding.la \
3051 $(top_builddir)/lib/libmiscutil.la \
3053 $(SQUID_CPPUNIT_LIBS) \
3057 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3058 tests_testUfs_DEPENDENCIES = \
3061 check_PROGRAMS += testRefCount
3062 testRefCount_SOURCES= \
3065 tests/stub_cbdata.cc \
3066 tests/stub_debug.cc \
3067 tests/stub_MemBuf.cc \
3068 tests/testRefCount.cc
3069 testRefCount_LDADD = \
3071 $(top_builddir)/lib/libmiscutil.la \
3075 tests_testRock_SOURCES = \
3078 CollapsedForwarding.h \
3079 CollapsedForwarding.cc \
3080 tests/stub_CacheDigest.cc \
3096 HttpHeaderFieldStat.h \
3100 HttpHdrContRange.cc \
3103 HttpHdrScTarget.cc \
3106 HttpHeaderFieldInfo.h \
3108 HttpHeaderTools.cc \
3129 tests/stub_StatHist.cc \
3132 tests/stub_stat.cc \
3134 StoreFileSystem.cc \
3136 StoreMetaUnpacker.cc \
3137 $(STOREMETA_SOURCE) \
3138 StoreSwapLogData.cc \
3146 SBufDetailedStats.h \
3147 tests/stub_SBufDetailedStats.cc \
3156 tests/testStoreSupport.cc \
3157 tests/testStoreSupport.h \
3159 tests/stub_access_log.cc \
3162 tests/stub_cache_cf.cc \
3164 tests/stub_cache_manager.cc \
3165 tests/stub_client_db.cc \
3166 tests/stub_client_side_request.cc \
3167 tests/stub_debug.cc \
3168 tests/stub_errorpage.cc \
3169 tests/stub_HelperChildConfig.cc \
3170 tests/stub_http.cc \
3171 tests/stub_HttpRequest.cc \
3172 tests/stub_libauth.cc \
3175 tests/stub_ipcache.cc \
3176 tests/stub_libeui.cc \
3177 tests/stub_libformat.cc \
3178 tests/stub_libicmp.cc \
3179 tests/stub_libmgr.cc \
3180 tests/stub_libsecurity.cc \
3181 tests/stub_MemStore.cc \
3183 tests/stub_mime.cc \
3184 tests/stub_neighbors.cc \
3185 tests/stub_Port.cc \
3186 tests/stub_pconn.cc \
3187 tests/stub_store_client.cc \
3189 tests/stub_store_rebuild.cc \
3190 tests/stub_store_stats.cc \
3192 tests/stub_tools.cc \
3197 $(DELAY_POOL_SOURCE) \
3199 nodist_tests_testRock_SOURCES = \
3204 tests_testRock_LDADD = \
3205 http/libsquid-http.la \
3206 parser/libsquid-parser.la \
3213 DiskIO/libdiskio.la \
3223 $(top_builddir)/lib/libmisccontainers.la \
3224 $(top_builddir)/lib/libmiscencoding.la \
3225 $(top_builddir)/lib/libmiscutil.la \
3227 $(SQUID_CPPUNIT_LIBS) \
3231 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3232 tests_testRock_DEPENDENCIES = \
3235 ## Tests of the URL module.
3236 ## TODO: Trim this down once the insanity is over.
3237 tests_testURL_SOURCES = \
3246 tests/stub_cache_manager.cc \
3248 tests/stub_CacheDigest.cc \
3252 tests/stub_carp.cc \
3258 client_side_reply.cc \
3259 client_side_request.cc \
3262 tests/stub_CollapsedForwarding.cc \
3269 $(DELAY_POOL_SOURCE) \
3279 ExternalACLEntry.cc \
3281 tests/stub_fatal.cc \
3299 HttpHeaderFieldStat.h \
3303 HttpHdrContRange.cc \
3306 HttpHdrScTarget.cc \
3309 HttpHeaderFieldInfo.h \
3311 HttpHeaderTools.cc \
3334 tests/stub_libmem.cc \
3349 peer_proxy_negotiate_auth.h \
3350 peer_proxy_negotiate_auth.cc \
3353 peer_sourcehash.cc \
3357 tests/stub_redirect.cc \
3362 SBufDetailedStats.h \
3363 tests/stub_SBufDetailedStats.cc \
3373 tests/stub_StatHist.cc \
3379 tests/stub_store_digest.cc \
3392 StoreFileSystem.cc \
3394 tests/stub_StoreMeta.cc \
3395 StoreMetaUnpacker.cc \
3396 StoreSwapLogData.cc \
3401 tests/stub_SwapDir.cc \
3403 tests/stub_debug.cc \
3404 tests/stub_libauth_acls.cc \
3405 tests/stub_libauth.cc \
3406 tests/stub_libdiskio.cc \
3407 tests/stub_libsecurity.cc \
3408 tests/stub_main_cc.cc \
3409 tests/stub_ipc_Forwarder.cc \
3410 tests/stub_store_stats.cc \
3413 tests/testUriScheme.cc \
3414 tests/testUriScheme.h \
3415 tests/stub_time.cc \
3416 tests/stub_EventLoop.cc \
3419 tests/stub_tunnel.cc \
3424 tests/stub_wccp2.cc \
3426 tests/stub_whois.cc \
3431 nodist_tests_testURL_SOURCES = \
3433 tests_testURL_LDADD = \
3435 clients/libclients.la \
3436 servers/libservers.la \
3437 helper/libhelper.la \
3438 http/libsquid-http.la \
3440 parser/libsquid-parser.la \
3455 icmp/libicmp.la icmp/libicmp-core.la \
3458 format/libformat.la \
3460 $(ADAPTATION_LIBS) \
3462 $(top_builddir)/lib/libmisccontainers.la \
3463 $(top_builddir)/lib/libmiscencoding.la \
3464 $(top_builddir)/lib/libmiscutil.la \
3467 $(SQUID_CPPUNIT_LIBS) \
3468 $(SQUID_CPPUNIT_LA) \
3473 tests_testURL_LDFLAGS = $(LIBADD_DL)
3474 tests_testURL_DEPENDENCIES = \
3478 tests_testSBuf_SOURCES= \
3481 tests/SBufFindTest.h \
3482 tests/SBufFindTest.cc \
3484 SBufDetailedStats.h \
3485 tests/stub_SBufDetailedStats.cc \
3487 tests/stub_time.cc \
3488 tests/stub_debug.cc \
3489 tests/stub_fatal.cc \
3490 tests/stub_HelperChildConfig.cc \
3491 tests/stub_libmem.cc \
3492 tests/stub_cache_cf.cc \
3493 tests/stub_cache_manager.cc \
3494 tests/stub_cbdata.cc \
3495 tests/stub_store.cc \
3496 tests/stub_store_stats.cc \
3497 tests/stub_tools.cc \
3500 tests/stub_wordlist.cc \
3501 tests/stub_MemBuf.cc
3502 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3503 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3504 tests_testSBuf_LDADD=\
3509 $(top_builddir)/lib/libmiscutil.la \
3510 $(SQUID_CPPUNIT_LIBS) \
3513 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3515 tests_testSBufList_SOURCES= \
3516 tests/testSBufList.h \
3517 tests/testSBufList.cc \
3522 SBufDetailedStats.h \
3523 tests/stub_SBufDetailedStats.cc \
3525 tests/stub_time.cc \
3526 tests/stub_MemObject.cc \
3527 tests/stub_cbdata.cc \
3528 tests/stub_comm.cc \
3529 tests/stub_debug.cc \
3530 tests/stub_event.cc \
3531 tests/stub_fatal.cc \
3533 tests/stub_HelperChildConfig.cc \
3534 tests/stub_libmem.cc \
3535 tests/stub_cache_cf.cc \
3536 tests/stub_cache_manager.cc \
3537 tests/stub_store.cc \
3538 tests/stub_stmem.cc \
3539 tests/stub_store_stats.cc \
3540 tests/stub_tools.cc \
3544 tests/stub_wordlist.cc \
3545 tests/stub_MemBuf.cc
3546 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3547 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3548 tests_testSBufList_LDADD=\
3553 $(top_builddir)/lib/libmiscutil.la \
3554 $(SQUID_CPPUNIT_LIBS) \
3557 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3559 tests_testConfigParser_SOURCES = \
3561 tests/stub_libmem.cc \
3562 tests/stub_MemBuf.cc \
3563 tests/stub_time.cc \
3565 SBufDetailedStats.h \
3566 tests/stub_SBufDetailedStats.cc \
3570 tests/stub_fatal.cc \
3571 tests/testConfigParser.cc \
3572 tests/testConfigParser.h \
3575 tests/stub_cache_cf.cc \
3576 tests/stub_cache_manager.cc \
3577 tests/stub_cbdata.cc \
3578 tests/stub_debug.cc \
3579 tests/stub_HelperChildConfig.cc \
3581 tests/stub_tools.cc \
3584 nodist_tests_testConfigParser_SOURCES = \
3586 tests_testConfigParser_LDADD = \
3590 $(top_builddir)/lib/libmiscutil.la \
3591 $(SQUID_CPPUNIT_LIBS) \
3595 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3596 tests_testConfigParser_DEPENDENCIES = \
3599 tests_testStatHist_SOURCES = \
3600 tests/stub_cbdata.cc \
3602 tests/stub_fatal.cc \
3603 tests/stub_MemBuf.cc \
3605 SBufDetailedStats.h \
3606 tests/stub_SBufDetailedStats.cc \
3610 tests/stub_cache_manager.cc \
3611 tests/stub_comm.cc \
3612 tests/stub_debug.cc \
3613 tests/stub_DelayId.cc \
3614 tests/stub_HelperChildConfig.cc \
3615 tests/stub_libmem.cc \
3616 tests/stub_MemObject.cc \
3618 tests/stub_mime.cc \
3619 tests/stub_pconn.cc \
3620 tests/stub_stmem.cc \
3622 tests/stub_store.cc \
3623 tests/stub_store_stats.cc \
3626 tests/stub_tools.cc \
3627 tests/testStatHist.cc \
3628 tests/testStatHist.h
3629 nodist_tests_testStatHist_SOURCES = \
3631 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3632 tests_testStatHist_LDADD = \
3634 $(top_builddir)/lib/libmiscutil.la \
3635 $(top_builddir)/lib/libmisccontainers.la \
3636 $(SQUID_CPPUNIT_LIBS) \
3637 $(SQUID_CPPUNIT_LA) \
3639 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3641 tests_testLookupTable_SOURCES = \
3642 tests/testLookupTable.h \
3643 tests/testLookupTable.cc \
3644 tests/stub_debug.cc \
3645 tests/stub_libmem.cc \
3646 tests/stub_SBufDetailedStats.cc \
3647 base/LookupTable.h \
3650 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3651 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3652 tests_testLookupTable_LDADD = \
3654 $(SQUID_CPPUNIT_LIBS) \
3657 tests_testLookupTable_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3659 TESTS += testHeaders
3661 ## Special Universal .h dependency test script
3662 ## aborts if error encountered
3663 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3664 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3665 ## src/repl/ has no .h files and its own makefile.
3667 CLEANFILES += testHeaders