2 # Makefile for the Squid Object Cache server
4 # Uncomment and customize the following to suit your needs:
7 include $(top_srcdir)/src/Common.am
9 AUTOMAKE_OPTIONS = subdir-objects
15 DNSSOURCE = dns_internal.cc
29 LOADABLE_MODULES_SOURCES = \
35 SUBDIRS = base anyp comm eui acl format fs repl
36 DIST_SUBDIRS = base anyp comm eui acl format fs repl
40 AUTH_LIBS= auth/libauth.la
41 AUTH_ACL_LIBS= auth/libacls.la
42 check_PROGRAMS+= tests/testACLMaxUserIP
46 SUBDIRS += ip icmp ident log ipc mgr
47 DIST_SUBDIRS += ip icmp ident log ipc mgr
64 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
66 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
75 DIST_SUBDIRS += adaptation
81 $(top_builddir)/lib/libTrie/src/libTrie.a
82 ESI_LIBS = $(ESI_LOCAL_LIBS) \
90 DELAY_POOL_ALL_SOURCE = \
114 ClientDelayConfig.cc \
117 if ENABLE_DELAY_POOLS
118 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
123 if ENABLE_XPROF_STATS
124 XPROF_STATS_SOURCE = ProfStats.cc
130 HTCPSOURCE = htcp.cc htcp.h
134 LEAKFINDERSOURCE = LeakFinder.cc
140 UNLINKDSOURCE = unlinkd.cc
150 if ENABLE_WIN32SPECIFIC
151 WIN32_SOURCE = win32.cc
152 WINSVC_SOURCE = WinSvc.cc
159 IPC_SOURCE = ipc_win32.cc
164 AIO_WIN32_ALL_SOURCES = \
165 DiskIO/AIO/aio_win32.cc \
166 DiskIO/AIO/aio_win32.h
168 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
174 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
175 DiskIO/DiskThreads/CommIO.cc \
176 DiskIO/DiskThreads/CommIO.h
178 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
179 DiskIO/DiskThreads/CommIO.cc \
180 DiskIO/DiskThreads/CommIO.h
183 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
184 libMmapped.a libIpcIo.a
185 noinst_LIBRARIES = $(DISK_LIBS)
186 noinst_LTLIBRARIES = libsquid.la
189 DiskIO/DiskDaemon/diskd \
199 ## cfgen is used when building squid
200 ## ufsdump is a debug utility, it is possibly useful for end users with cache
201 ## corruption, but at this point we do not install it.
216 cf_gen_SOURCES = cf_gen.cc
217 nodist_cf_gen_HEADER = cf_gen_defines.cci
218 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
220 cf_gen.$(OBJEXT): cf_gen_defines.cci
222 ## cf_gen.cc needs src/cf_gen_defines.cci
223 INCLUDES += -I$(top_builddir)/src
226 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
229 DiskIO/DiskIOModule.cc \
230 DiskIO/ReadRequest.cc \
231 DiskIO/ReadRequest.h \
232 DiskIO/WriteRequest.cc \
233 DiskIO/WriteRequest.h \
235 DiskIO/DiskIOStrategy.h \
236 DiskIO/IORequestor.h \
237 DiskIO/DiskIOModule.h \
240 DISKIO_GEN_SOURCE = \
241 DiskIO/DiskIOModules_gen.cc
243 DiskIO/DiskIOModules_gen.cc: Makefile
244 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
247 # common library for all the binaries and tests. This is kindof a catch all
248 # and smaller libraries split from this are encouraged. Using lt convenience
249 # libraries, dependencies should not be a problem either.
250 libsquid_la_SOURCES = \
261 $(ACL_REGISTRATION_SOURCES) \
276 ChunkedCodingParser.cc \
277 ChunkedCodingParser.h \
283 client_side_reply.cc \
284 client_side_reply.h \
285 client_side_request.cc \
286 client_side_request.h \
291 ClientRequestContext.h \
294 CompletionDispatcher.cc \
295 CompletionDispatcher.h \
309 $(DELAY_POOL_SOURCE) \
329 ExternalACLEntry.cc \
351 HelperChildConfig.h \
352 HelperChildConfig.cc \
354 HierarchyLogEntry.h \
369 HttpHdrContRange.cc \
389 HttpRequestMethod.cc \
390 HttpRequestMethod.h \
402 $(LEAKFINDERSOURCE) \
426 $(XPROF_STATS_SOURCE) \
431 peer_proxy_negotiate_auth.cc \
498 StoreMetaUnpacker.cc \
499 StoreMetaUnpacker.h \
507 StoreSwapLogData.cc \
541 EXTRA_squid_SOURCES = \
542 $(AIO_WIN32_ALL_SOURCES) \
545 $(DELAY_POOL_ALL_SOURCE) \
549 DnsLookupDetails.cc \
560 $(WIN32_ALL_SOURCE) \
561 $(LOADABLE_MODULES_SOURCES)
564 client_side_request.cci \
585 CLEANFILES += $(BUILT_SOURCES)
587 nodist_squid_SOURCES = \
588 $(DISKIO_GEN_SOURCE) \
609 icmp/libicmp.la icmp/libicmp-core.la \
611 format/libformat.la \
622 $(top_builddir)/lib/libmisccontainers.la \
623 $(top_builddir)/lib/libmiscencoding.la \
624 $(top_builddir)/lib/libmiscutil.la \
631 squid_DEPENDENCIES = \
649 format/libformat.la \
653 if USE_LOADABLE_MODULES
654 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
655 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
656 squid_LDFLAGS = -export-dynamic -dlopen force
657 ## when static module linking is supported and enabled:
658 ## squid_LDFLAGS = -all-static -dlopen self
660 ## LTDL headers require their local include path...
661 INCLUDES += $(INCLTDL)
664 ## Kerberos libraries require their include path...
665 INCLUDES += $(KRB5INCS)
668 unlinkd_SOURCES = unlinkd_daemon.cc
673 ## dnsserver is a standalone helper. Do not link to any internal libraries
674 dnsserver_SOURCES = dnsserver.cc
679 recv_announce_SOURCES = recv-announce.cc
681 ## What requires what..
682 ## many things want ACLChecklist.cc
683 ## ACLChecklist.cc wants AuthUserRequest.cc
684 ## ACLChecklist.cc wants AuthScheme.cc
685 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
686 ## ACLProxyAuth.cc wants ACLUserData
687 ## ACLProxyAuth.cc wants ACLRegexData
688 ## cache_cf.cc wants $(AUTH_LIBS)
689 ## cache_cf.cc wants Swapdir
690 ## cache_cf.cc wants AnyP::PortCfg
691 ## client_side wants client_db
692 ## client_db wants SNMP_SOURCE
693 ## snmp_core wants ACLStringData
694 ## SwapDir wants ConfigOption
695 ## tools.cc wants ip/libip.la
696 ## client_side.cc wants ip/libip.la
697 ## mem.cc wants ClientInfo.h
698 ## libbase.la wants cbdata.*
699 ## libbase.la wants MemBuf.*
700 ## structs.h wants HelperChildConfig.* (stub it)
719 StoreMetaUnpacker.cc \
728 HelperChildConfig.h \
729 tests/stub_HelperChildConfig.cc \
730 HttpRequestMethod.cc \
758 ufsdump_DEPENDENCIES = \
776 nodist_ufsdump_SOURCES = \
781 squid.conf.documented \
806 include $(srcdir)/tests/Stub.list
815 mk-string-arrays.pl \
816 mk-string-arrays.awk \
823 $(AIO_WIN32_SOURCES) \
824 DiskIO/AIO/async_io.h \
825 DiskIO/AIO/AIODiskFile.cc \
826 DiskIO/AIO/AIODiskFile.h \
827 DiskIO/AIO/AIODiskIOStrategy.cc \
828 DiskIO/AIO/AIODiskIOStrategy.h \
829 DiskIO/AIO/AIODiskIOModule.cc \
830 DiskIO/AIO/AIODiskIOModule.h
832 libBlocking_a_SOURCES = \
833 DiskIO/Blocking/BlockingFile.cc \
834 DiskIO/Blocking/BlockingFile.h \
835 DiskIO/Blocking/BlockingIOStrategy.cc \
836 DiskIO/Blocking/BlockingIOStrategy.h \
837 DiskIO/Blocking/BlockingDiskIOModule.cc \
838 DiskIO/Blocking/BlockingDiskIOModule.h
840 libMmapped_a_SOURCES = \
841 DiskIO/Mmapped/MmappedFile.cc \
842 DiskIO/Mmapped/MmappedFile.h \
843 DiskIO/Mmapped/MmappedIOStrategy.cc \
844 DiskIO/Mmapped/MmappedIOStrategy.h \
845 DiskIO/Mmapped/MmappedDiskIOModule.cc \
846 DiskIO/Mmapped/MmappedDiskIOModule.h
848 libIpcIo_a_SOURCES = \
849 DiskIO/IpcIo/IpcIoFile.cc \
850 DiskIO/IpcIo/IpcIoFile.h \
851 DiskIO/IpcIo/IpcIoIOStrategy.cc \
852 DiskIO/IpcIo/IpcIoIOStrategy.h \
853 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
854 DiskIO/IpcIo/IpcIoDiskIOModule.h
856 libDiskDaemon_a_SOURCES = \
857 DiskIO/DiskDaemon/DiskdFile.cc \
858 DiskIO/DiskDaemon/DiskdFile.h \
859 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
860 DiskIO/DiskDaemon/DiskdIOStrategy.h \
861 DiskIO/DiskDaemon/diomsg.h \
862 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
863 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
864 DiskIO/DiskDaemon/DiskdAction.cc \
865 DiskIO/DiskDaemon/DiskdAction.h
867 libDiskThreads_a_SOURCES = \
869 DiskIO/DiskThreads/async_io.cc \
870 DiskIO/DiskThreads/DiskThreads.h \
871 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
872 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
873 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
874 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
875 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
876 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
878 EXTRA_libDiskThreads_a_SOURCES = \
879 DiskIO/DiskThreads/aiops.cc \
880 DiskIO/DiskThreads/aiops_win32.cc \
881 DiskIO/DiskThreads/CommIO.cc \
882 DiskIO/DiskThreads/CommIO.h
884 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
885 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
886 DiskIO_DiskDaemon_diskd_LDADD = \
887 $(top_builddir)/lib/libmisccontainers.la \
888 $(top_builddir)/lib/libmiscencoding.la \
889 $(top_builddir)/lib/libmiscutil.la \
894 DEFAULT_HTTP_PORT = 3128
895 DEFAULT_ICP_PORT = 3130
896 DEFAULT_PREFIX = $(prefix)
897 DEFAULT_CONFIG_DIR = $(sysconfdir)
898 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
899 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
900 DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
901 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
902 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
903 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
904 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
905 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
906 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
907 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
908 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
909 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
910 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
911 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
912 DEFAULT_ICON_DIR = $(datadir)/icons
913 DEFAULT_ERROR_DIR = $(datadir)/errors
915 # Make location configure settings available to the code
916 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
918 snmp_core.o snmp_agent.o: ../snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
920 globals.cc: globals.h mk-globals-c.awk
921 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
923 ## Generate files containing string arrays for various enums....
924 hier_code.cc: hier_code.h mk-string-arrays.awk
925 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
927 err_type.cc: err_type.h mk-string-arrays.awk
928 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
930 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
931 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
933 lookup_t.cc: lookup_t.h mk-string-arrays.awk
934 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
936 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
937 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
939 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
940 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
943 ## other generated files...
945 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
946 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
948 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
949 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
951 ## If autodependency works well this is not needed anymore
952 cache_cf.o: cf_parser.cci
954 # cf_gen builds the configuration files.
955 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES)
956 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
958 # squid.conf.default is built by cf_gen when making cf_parser.cci
959 squid.conf.default squid.conf.documented: cf_parser.cci
962 cf_parser.cci: cf.data cf_gen$(EXEEXT)
963 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
965 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
966 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
969 ## FIXME: generate a sed command file from configure. Then this doesn't
970 ## depend on the Makefile.
971 cf.data: cf.data.pre Makefile
973 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
974 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
975 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
976 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
977 -e "s%[@]DEFAULT_DNSSERVER[@]%$(DEFAULT_DNSSERVER)%g" \
978 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
979 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
980 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
981 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
982 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
983 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
984 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
985 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
986 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
987 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
988 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
989 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
990 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
991 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
992 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
993 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
994 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
995 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
996 < $(srcdir)/cf.data.pre >$@
998 repl_modules.cc: repl_modules.sh Makefile
999 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1001 include $(top_srcdir)/doc/manuals/Substitute.am
1003 squid.8: $(srcdir)/squid.8.in Makefile
1004 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1007 EXTRA_DIST += squid.8.in
1008 CLEANFILES += squid.8
1010 install-data-local: install-sysconfDATA install-dataDATA
1011 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1012 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1014 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1015 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1017 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1018 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1020 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1021 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1023 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1024 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1025 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1026 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1027 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1028 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1029 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1031 uninstall-local: squid.conf.default
1032 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1033 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1035 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1036 DiskIO/DiskIOModules_gen.cc \
1039 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1040 cp $(top_srcdir)/test-suite/test_tools.cc .
1042 # stock tools for unit tests - library independent versions of dlink_list
1044 # globals.cc is needed by test_tools.cc.
1045 # Neither of these should be disted from here.
1052 tests/testBoilerplate \
1053 tests/testCacheManager \
1056 tests/testEventLoop \
1057 tests/test_http_range \
1058 tests/testHttpParser \
1059 tests/testHttpReply \
1060 tests/testHttpRequest \
1064 tests/testConfigParser \
1065 tests/testStatHist \
1068 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1069 TESTS += $(check_PROGRAMS)
1071 ### Template for new Unit Test Program
1072 ## - add tests/testX to check_PROGRAMS above.
1073 ## - copy template below and substitue X for class name
1074 ## - add other component .(h|cc) files needed to link and run tests
1076 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1078 #tests_testX_SOURCES=\
1081 # tests/testMain.cc \
1084 #nodist_tests_testX_SOURCES=\
1086 #tests_testX_LDFLAGS = $(LIBADD_DL)
1087 #tests_testX_LDADD=\
1088 # $(SQUID_CPPUNIT_LIBS) \
1089 # $(SQUID_CPPUNIT_LA) \
1091 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1094 # - add other component .(h|cc) files needed to link and run tests
1095 tests_testHttpReply_SOURCES=\
1104 HttpHdrContRange.cc \
1105 HttpHdrContRange.h \
1109 HttpHdrScTarget.cc \
1115 HttpHeaderTools.cc \
1138 tests/stub_access_log.cc \
1140 tests/stub_cache_cf.cc \
1141 tests/stub_cache_manager.cc \
1142 tests/stub_debug.cc \
1143 tests/stub_errorpage.cc \
1144 tests/stub_HelperChildConfig.cc \
1145 tests/stub_libformat.cc \
1149 tests/stub_StatHist.cc \
1151 tests/stub_store.cc \
1152 tests/stub_store_stats.cc \
1154 tests/stub_tools.cc \
1155 tests/stub_HttpRequest.cc \
1156 tests/testHttpReply.cc \
1157 tests/testHttpReply.h \
1164 nodist_tests_testHttpReply_SOURCES=\
1166 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1167 tests_testHttpReply_LDADD=\
1176 $(top_builddir)/lib/libmisccontainers.la \
1177 $(top_builddir)/lib/libmiscencoding.la \
1178 $(top_builddir)/lib/libmiscutil.la \
1179 $(SQUID_CPPUNIT_LIBS) \
1180 $(SQUID_CPPUNIT_LA) \
1184 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1186 tests_testACLMaxUserIP_SOURCES= \
1191 DiskIO/ReadRequest.cc \
1192 DiskIO/WriteRequest.cc \
1197 HelperChildConfig.h \
1198 HelperChildConfig.cc \
1203 HttpHeaderTools.cc \
1204 HttpHdrContRange.cc \
1210 HttpHdrScTarget.cc \
1212 HttpRequestMethod.cc \
1224 tests/stub_StatHist.cc \
1232 StoreMetaSTDLFS.cc \
1233 StoreMetaUnpacker.cc \
1236 StoreSwapLogData.cc \
1244 tests/stub_access_log.cc \
1246 tests/stub_cache_cf.cc \
1247 tests/stub_debug.cc \
1248 tests/stub_DelayId.cc \
1249 tests/stub_DiskIOModule.cc \
1250 tests/stub_errorpage.cc \
1253 tests/stub_HttpRequest.cc \
1254 tests/stub_HttpReply.cc \
1255 tests/stub_ipc_TypedMsgHdr.cc \
1256 tests/stub_libcomm.cc \
1257 tests/stub_libformat.cc \
1258 tests/stub_libsslsquid.cc \
1259 tests/stub_MemObject.cc \
1260 tests/stub_MemStore.cc \
1262 tests/stub_mime.cc \
1263 tests/stub_pconn.cc \
1264 tests/stub_Port.cc \
1266 tests/stub_store.cc \
1268 tests/stub_store_rebuild.cc \
1269 tests/stub_store_stats.cc \
1270 tests/stub_store_swapout.cc \
1272 tests/stub_tools.cc \
1273 tests/stub_cache_manager.cc \
1274 tests/stub_UdsOp.cc \
1275 tests/testACLMaxUserIP.cc \
1276 tests/testACLMaxUserIP.h \
1288 nodist_tests_testACLMaxUserIP_SOURCES= \
1290 tests_testACLMaxUserIP_LDADD= \
1304 $(top_builddir)/lib/libmisccontainers.la \
1305 $(top_builddir)/lib/libmiscencoding.la \
1306 $(top_builddir)/lib/libmiscutil.la \
1309 $(SQUID_CPPUNIT_LIBS) \
1313 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1314 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1315 ## $(SQUID_CPPUNIT_LA)
1317 ## a demonstration test that does nothing but shows the salient points
1318 ## involved in writing tests.
1319 tests_testBoilerplate_SOURCES = \
1320 tests/testBoilerplate.cc \
1322 tests/testBoilerplate.h \
1324 nodist_tests_testBoilerplate_SOURCES = \
1326 tests_testBoilerplate_LDADD= \
1327 $(SQUID_CPPUNIT_LIBS) \
1331 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1332 tests_testBoilerplate_DEPENDENCIES = \
1335 ## Tests of the CacheManager module.
1336 tests_testCacheManager_SOURCES = \
1338 $(ACL_REGISTRATION_SOURCES) \
1343 HttpRequestMethod.cc \
1347 tests/testCacheManager.cc \
1348 tests/testCacheManager.h \
1350 tests/stub_main_cc.cc \
1351 tests/stub_ipc_Forwarder.cc \
1352 tests/stub_store_stats.cc \
1363 ChunkedCodingParser.cc \
1368 client_side_reply.cc \
1369 client_side_request.cc \
1378 $(DELAY_POOL_SOURCE) \
1389 ExternalACLEntry.cc \
1404 HelperChildConfig.h \
1405 HelperChildConfig.cc \
1413 HttpHeaderTools.cc \
1417 HttpHdrContRange.cc \
1420 HttpHdrScTarget.cc \
1447 peer_proxy_negotiate_auth.cc \
1450 peer_sourcehash.cc \
1469 tests/stub_StatHist.cc \
1488 StoreFileSystem.cc \
1493 StoreMetaSTDLFS.cc \
1494 StoreMetaUnpacker.cc \
1497 StoreSwapLogData.cc \
1516 nodist_tests_testCacheManager_SOURCES = \
1518 $(DISKIO_GEN_SOURCE)
1519 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1520 tests_testCacheManager_LDADD = \
1533 icmp/libicmp.la icmp/libicmp-core.la \
1535 format/libformat.la \
1539 $(ADAPTATION_LIBS) \
1546 $(top_builddir)/lib/libmisccontainers.la \
1547 $(top_builddir)/lib/libmiscencoding.la \
1548 $(top_builddir)/lib/libmiscutil.la \
1550 $(SQUID_CPPUNIT_LIBS) \
1551 $(SQUID_CPPUNIT_LA) \
1556 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1557 tests_testCacheManager_DEPENDENCIES = \
1561 tests_testDiskIO_SOURCES = \
1569 $(DELAY_POOL_SOURCE) \
1585 HttpHdrContRange.cc \
1587 HttpHdrScTarget.cc \
1590 HttpHeaderTools.cc \
1595 HttpRequestMethod.cc \
1612 tests/stub_StatHist.cc \
1614 StoreFileSystem.cc \
1619 StoreMetaSTDLFS.cc \
1620 StoreMetaUnpacker.cc \
1623 StoreSwapLogData.cc \
1637 tests/stub_access_log.cc \
1640 tests/stub_cache_cf.cc \
1641 tests/stub_cache_manager.cc \
1642 tests/stub_client_db.cc \
1643 tests/stub_client_side_request.cc \
1644 tests/stub_debug.cc \
1645 tests/stub_errorpage.cc \
1646 tests/stub_helper.cc \
1647 tests/stub_HelperChildConfig.cc \
1648 tests/stub_HttpRequest.cc \
1649 tests/stub_http.cc \
1652 tests/stub_internal.cc \
1654 tests/stub_ipcache.cc \
1655 tests/stub_libformat.cc \
1656 tests/stub_libicmp.cc \
1657 tests/stub_MemStore.cc \
1659 tests/stub_mime.cc \
1660 tests/stub_pconn.cc \
1661 tests/stub_Port.cc \
1662 tests/stub_store_client.cc \
1663 tests/stub_store_stats.cc \
1665 tests/stub_store_rebuild.cc \
1666 tests/stub_UdsOp.cc \
1667 tests/testDiskIO.cc \
1668 tests/testDiskIO.h \
1670 tests/testStoreSupport.cc \
1671 tests/testStoreSupport.h \
1681 nodist_tests_testDiskIO_SOURCES= \
1683 $(DISKIO_GEN_SOURCE) \
1687 tests_testDiskIO_LDADD = \
1690 DnsLookupDetails.o \
1711 $(top_builddir)/lib/libmisccontainers.la \
1712 $(top_builddir)/lib/libmiscencoding.la \
1713 $(top_builddir)/lib/libmiscutil.la \
1715 $(SQUID_CPPUNIT_LIBS) \
1720 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1721 tests_testDiskIO_DEPENDENCIES = \
1726 ## Tests of the Even module.
1727 tests_testEvent_SOURCES = \
1729 $(ACL_REGISTRATION_SOURCES) \
1739 ChunkedCodingParser.cc \
1744 client_side_reply.cc \
1745 client_side_request.cc \
1755 $(DELAY_POOL_SOURCE) \
1768 ExternalACLEntry.cc \
1783 HelperChildConfig.h \
1784 HelperChildConfig.cc \
1793 HttpHeaderTools.cc \
1797 HttpHdrContRange.cc \
1800 HttpHdrScTarget.cc \
1806 HttpRequestMethod.cc \
1833 peer_proxy_negotiate_auth.cc \
1836 peer_sourcehash.cc \
1874 StoreFileSystem.cc \
1879 StoreMetaSTDLFS.cc \
1880 StoreMetaUnpacker.cc \
1883 StoreSwapLogData.cc \
1886 tests/CapturingStoreEntry.h \
1887 tests/testEvent.cc \
1890 tests/stub_main_cc.cc \
1891 tests/stub_ipc_Forwarder.cc \
1892 tests/stub_store_stats.cc \
1910 nodist_tests_testEvent_SOURCES = \
1912 $(DISKIO_GEN_SOURCE)
1913 tests_testEvent_LDADD = \
1926 icmp/libicmp.la icmp/libicmp-core.la \
1929 format/libformat.la \
1931 $(ADAPTATION_LIBS) \
1934 $(top_builddir)/lib/libmisccontainers.la \
1935 $(top_builddir)/lib/libmiscencoding.la \
1936 $(top_builddir)/lib/libmiscutil.la \
1943 $(SQUID_CPPUNIT_LIBS) \
1944 $(SQUID_CPPUNIT_LA) \
1949 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1950 tests_testEvent_DEPENDENCIES = \
1954 ## Tests of the EventLoop module.
1955 tests_testEventLoop_SOURCES = \
1957 $(ACL_REGISTRATION_SOURCES) \
1967 ChunkedCodingParser.cc \
1972 client_side_reply.cc \
1973 client_side_request.cc \
1983 $(DELAY_POOL_SOURCE) \
1996 ExternalACLEntry.cc \
2011 HelperChildConfig.h \
2012 HelperChildConfig.cc \
2021 HttpHeaderTools.cc \
2025 HttpHdrContRange.cc \
2028 HttpHdrScTarget.cc \
2034 HttpRequestMethod.cc \
2061 peer_proxy_negotiate_auth.cc \
2064 peer_sourcehash.cc \
2101 StoreFileSystem.cc \
2106 StoreMetaSTDLFS.cc \
2107 StoreMetaUnpacker.cc \
2110 StoreSwapLogData.cc \
2115 tests/testEventLoop.cc \
2116 tests/testEventLoop.h \
2118 tests/stub_main_cc.cc \
2119 tests/stub_ipc_Forwarder.cc \
2120 tests/stub_store_stats.cc \
2138 nodist_tests_testEventLoop_SOURCES = \
2140 $(DISKIO_GEN_SOURCE)
2141 tests_testEventLoop_LDADD = \
2154 icmp/libicmp.la icmp/libicmp-core.la \
2157 format/libformat.la \
2159 $(ADAPTATION_LIBS) \
2162 $(top_builddir)/lib/libmisccontainers.la \
2163 $(top_builddir)/lib/libmiscencoding.la \
2164 $(top_builddir)/lib/libmiscutil.la \
2171 $(SQUID_CPPUNIT_LIBS) \
2172 $(SQUID_CPPUNIT_LA) \
2177 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2178 tests_testEventLoop_DEPENDENCIES = \
2182 tests_test_http_range_SOURCES = \
2184 $(ACL_REGISTRATION_SOURCES) \
2194 ChunkedCodingParser.cc \
2199 client_side_reply.cc \
2200 client_side_request.cc \
2210 $(DELAY_POOL_SOURCE) \
2221 ExternalACLEntry.cc \
2236 HelperChildConfig.h \
2237 HelperChildConfig.cc \
2246 HttpHdrContRange.cc \
2249 HttpHdrScTarget.cc \
2253 HttpHeaderTools.cc \
2259 HttpRequestMethod.cc \
2285 peer_proxy_negotiate_auth.cc \
2288 peer_sourcehash.cc \
2325 StoreFileSystem.cc \
2330 StoreMetaSTDLFS.cc \
2331 StoreMetaUnpacker.cc \
2334 StoreSwapLogData.cc \
2339 tests/test_http_range.cc \
2340 tests/stub_ipc_Forwarder.cc \
2341 tests/stub_main_cc.cc \
2342 tests/stub_MemStore.cc \
2343 tests/stub_store_stats.cc \
2360 nodist_tests_test_http_range_SOURCES = \
2362 $(DISKIO_GEN_SOURCE)
2363 tests_test_http_range_LDADD = \
2375 icmp/libicmp.la icmp/libicmp-core.la \
2378 format/libformat.la \
2382 $(ADAPTATION_LIBS) \
2389 $(top_builddir)/lib/libmisccontainers.la \
2390 $(top_builddir)/lib/libmiscencoding.la \
2391 $(top_builddir)/lib/libmiscutil.la \
2393 $(SQUID_CPPUNIT_LIBS) \
2394 $(SQUID_CPPUNIT_LA) \
2399 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2400 tests_test_http_range_DEPENDENCIES = \
2404 tests_testHttpParser_SOURCES = \
2415 tests/stub_cache_cf.cc \
2416 tests/stub_cache_manager.cc \
2417 tests/stub_debug.cc \
2418 tests/stub_event.cc \
2419 tests/stub_HelperChildConfig.cc \
2421 tests/stub_tools.cc \
2422 tests/testHttpParser.cc \
2423 tests/testHttpParser.h \
2428 nodist_tests_testHttpParser_SOURCES = \
2430 tests_testHttpParser_LDADD= \
2434 $(top_builddir)/lib/libmiscutil.la \
2435 $(SQUID_CPPUNIT_LIBS) \
2438 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2439 tests_testHttpParser_DEPENDENCIES = \
2442 ## Tests of the HttpRequest module.
2443 tests_testHttpRequest_SOURCES = \
2445 $(ACL_REGISTRATION_SOURCES) \
2449 HttpRequestMethod.cc \
2453 tests/testHttpRequest.h \
2454 tests/testHttpRequest.cc \
2455 tests/testHttpRequestMethod.h \
2456 tests/testHttpRequestMethod.cc \
2458 tests/stub_DiskIOModule.cc \
2459 tests/stub_main_cc.cc \
2460 tests/stub_ipc_Forwarder.cc \
2461 tests/stub_store_stats.cc \
2473 ChunkedCodingParser.cc \
2478 client_side_reply.cc \
2479 client_side_request.cc \
2488 $(DELAY_POOL_SOURCE) \
2497 ExternalACLEntry.cc \
2509 HelperChildConfig.h \
2510 HelperChildConfig.cc \
2519 HttpHeaderTools.cc \
2523 HttpHdrContRange.cc \
2526 HttpHdrScTarget.cc \
2553 peer_proxy_negotiate_auth.cc \
2556 peer_sourcehash.cc \
2592 StoreFileSystem.cc \
2597 StoreMetaSTDLFS.cc \
2598 StoreMetaUnpacker.cc \
2601 StoreSwapLogData.cc \
2622 nodist_tests_testHttpRequest_SOURCES = \
2624 tests_testHttpRequest_LDADD = \
2640 icmp/libicmp.la icmp/libicmp-core.la \
2643 format/libformat.la \
2645 $(ADAPTATION_LIBS) \
2648 $(top_builddir)/lib/libmisccontainers.la \
2649 $(top_builddir)/lib/libmiscencoding.la \
2650 $(top_builddir)/lib/libmiscutil.la \
2653 $(SQUID_CPPUNIT_LIBS) \
2654 $(SQUID_CPPUNIT_LA) \
2659 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2660 tests_testHttpRequest_DEPENDENCIES = \
2664 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2665 ## first line - what we are testing.
2666 tests_testStore_SOURCES= \
2673 $(DELAY_POOL_SOURCE) \
2676 DiskIO/ReadRequest.cc \
2677 DiskIO/WriteRequest.cc \
2686 HttpHdrContRange.cc \
2689 HttpHdrScTarget.cc \
2691 HttpHeaderTools.cc \
2695 HttpRequestMethod.cc \
2722 StoreMetaSTDLFS.cc \
2723 StoreMetaUnpacker.cc \
2726 StoreSwapLogData.cc \
2733 tests/CapturingStoreEntry.h \
2735 tests/stub_access_log.cc \
2738 tests/stub_cache_cf.cc \
2739 tests/stub_cache_manager.cc \
2740 tests/stub_client_side_request.cc \
2741 tests/stub_comm.cc \
2742 tests/stub_debug.cc \
2743 tests/stub_DiskIOModule.cc \
2744 tests/stub_errorpage.cc \
2747 tests/stub_helper.cc \
2748 tests/stub_HelperChildConfig.cc \
2749 tests/stub_http.cc \
2750 tests/stub_libformat.cc \
2753 tests/stub_HttpReply.cc \
2754 tests/stub_HttpRequest.cc \
2755 tests/stub_libcomm.cc \
2756 tests/stub_MemStore.cc \
2758 tests/stub_mime.cc \
2759 tests/stub_Port.cc \
2760 tests/stub_store_client.cc \
2761 tests/stub_store_stats.cc \
2763 tests/stub_store_rebuild.cc \
2764 tests/stub_store_swapout.cc \
2766 tests/stub_tools.cc \
2767 tests/stub_UdsOp.cc \
2769 tests/testStore.cc \
2771 tests/testStoreEntryStream.cc \
2772 tests/testStoreEntryStream.h \
2773 tests/testStoreController.cc \
2774 tests/testStoreController.h \
2775 tests/testStoreHashIndex.cc \
2776 tests/testStoreHashIndex.h \
2777 tests/testStoreSupport.cc \
2778 tests/testStoreSupport.h \
2779 tests/TestSwapDir.cc \
2780 tests/TestSwapDir.h \
2787 nodist_tests_testStore_SOURCES= \
2793 tests_testStore_LDADD= \
2809 $(top_builddir)/lib/libmisccontainers.la \
2810 $(top_builddir)/lib/libmiscencoding.la \
2811 $(top_builddir)/lib/libmiscutil.la \
2813 $(SQUID_CPPUNIT_LIBS) \
2816 DnsLookupDetails.o \
2819 tests_testStore_LDFLAGS = $(LIBADD_DL)
2820 tests_testStore_DEPENDENCIES = \
2823 ## string needs mem.cc.
2824 ## mem.cc needs ClientInfo.h
2825 ## libsquid pulls in SquidConfig and children. stub them.
2826 tests_testString_SOURCES = \
2833 tests/testString.cc \
2834 tests/testString.h \
2836 tests/stub_cache_cf.cc \
2837 tests/stub_cache_manager.cc \
2838 tests/stub_debug.cc \
2839 tests/stub_HelperChildConfig.cc \
2841 tests/stub_tools.cc \
2845 nodist_tests_testString_SOURCES = \
2847 tests_testString_LDADD = \
2851 $(top_builddir)/lib/libmiscutil.la \
2853 $(SQUID_CPPUNIT_LIBS) \
2857 tests_testString_LDFLAGS = $(LIBADD_DL)
2858 tests_testString_DEPENDENCIES = \
2880 tests_testUfs_SOURCES = \
2884 tests/stub_cache_manager.cc \
2885 tests/stub_client_db.cc \
2886 tests/stub_HelperChildConfig.cc \
2889 tests/stub_MemStore.cc \
2890 tests/stub_pconn.cc \
2891 tests/stub_Port.cc \
2892 tests/stub_UdsOp.cc \
2894 tests/stub_internal.cc \
2895 tests/stub_libformat.cc \
2897 tests/stub_store_rebuild.cc \
2898 tests/stub_store_stats.cc \
2913 StoreSwapLogData.cc \
2918 StoreMetaSTDLFS.cc \
2919 StoreMetaUnpacker.cc \
2922 StoreFileSystem.cc \
2929 $(DELAY_POOL_SOURCE) \
2939 HttpRequestMethod.cc \
2947 tests/stub_cache_cf.cc \
2948 tests/stub_helper.cc \
2951 tests/stub_debug.cc \
2952 tests/stub_client_side_request.cc \
2953 tests/stub_http.cc \
2957 tests/stub_mime.cc \
2959 HttpHeaderTools.cc \
2966 HttpHdrContRange.cc \
2972 HttpHdrScTarget.cc \
2982 tests/stub_errorpage.cc \
2983 tests/stub_HttpRequest.cc \
2985 tests/stub_access_log.cc \
2988 tests/stub_store_client.cc \
2990 tests/stub_tools.cc \
2991 tests/testStoreSupport.cc \
2992 tests/testStoreSupport.h \
2999 nodist_tests_testUfs_SOURCES = \
3001 $(DISKIO_GEN_SOURCE) \
3005 tests_testUfs_LDADD = \
3007 DnsLookupDetails.o \
3030 $(top_builddir)/lib/libmisccontainers.la \
3031 $(top_builddir)/lib/libmiscencoding.la \
3032 $(top_builddir)/lib/libmiscutil.la \
3034 $(SQUID_CPPUNIT_LIBS) \
3038 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3039 tests_testUfs_DEPENDENCIES = \
3042 tests_testRock_SOURCES = \
3060 HttpHdrContRange.cc \
3063 HttpHdrScTarget.cc \
3067 HttpHeaderTools.cc \
3070 HttpRequestMethod.cc \
3085 tests/stub_StatHist.cc \
3089 StoreFileSystem.cc \
3094 StoreMetaSTDLFS.cc \
3096 StoreMetaUnpacker.cc \
3098 StoreSwapLogData.cc \
3112 tests/testStoreSupport.cc \
3113 tests/testStoreSupport.h \
3115 tests/stub_access_log.cc \
3117 tests/stub_cache_cf.cc \
3118 tests/stub_cache_manager.cc \
3120 tests/stub_client_db.cc \
3121 tests/stub_client_side_request.cc \
3122 tests/stub_debug.cc \
3123 tests/stub_errorpage.cc \
3124 tests/stub_HelperChildConfig.cc \
3125 tests/stub_http.cc \
3126 tests/stub_HttpRequest.cc \
3129 tests/stub_ipcache.cc \
3130 tests/stub_libformat.cc \
3131 tests/stub_libicmp.cc \
3132 tests/stub_MemStore.cc \
3134 tests/stub_mime.cc \
3135 tests/stub_Port.cc \
3136 tests/stub_pconn.cc \
3137 tests/stub_store_client.cc \
3139 tests/stub_store_rebuild.cc \
3140 tests/stub_store_stats.cc \
3142 tests/stub_tools.cc \
3148 $(DELAY_POOL_SOURCE) \
3151 nodist_tests_testRock_SOURCES = \
3152 $(DISKIO_GEN_SOURCE) \
3157 tests_testRock_LDADD = \
3176 $(top_builddir)/lib/libmisccontainers.la \
3177 $(top_builddir)/lib/libmiscencoding.la \
3178 $(top_builddir)/lib/libmiscutil.la \
3180 $(SQUID_CPPUNIT_LIBS) \
3184 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3185 tests_testRock_DEPENDENCIES = \
3188 tests_testCoss_SOURCES = \
3192 tests/stub_cache_manager.cc \
3194 tests/stub_client_db.cc \
3195 tests/stub_debug.cc \
3196 tests/stub_HelperChildConfig.cc \
3198 tests/stub_internal.cc \
3200 tests/stub_pconn.cc \
3202 tests/stub_store_rebuild.cc \
3203 tests/stub_store_stats.cc \
3217 StoreSwapLogData.cc \
3222 StoreMetaSTDLFS.cc \
3223 StoreMetaUnpacker.cc \
3226 StoreFileSystem.cc \
3233 $(DELAY_POOL_SOURCE) \
3243 HttpRequestMethod.cc \
3251 tests/stub_cache_cf.cc \
3252 tests/stub_helper.cc \
3255 tests/stub_client_side_request.cc \
3256 tests/stub_http.cc \
3260 tests/stub_mime.cc \
3262 HttpHeaderTools.cc \
3269 HttpHdrContRange.cc \
3275 HttpHdrScTarget.cc \
3280 tests/stub_StatHist.cc \
3281 tests/stub_errorpage.cc \
3282 tests/stub_HttpRequest.cc \
3284 tests/stub_access_log.cc \
3287 tests/stub_MemStore.cc \
3288 tests/stub_Port.cc \
3289 tests/stub_store_client.cc \
3290 tests/stub_store_stats.cc \
3292 tests/stub_tools.cc \
3293 tests/stub_UdsOp.cc \
3294 tests/testStoreSupport.cc \
3295 tests/testStoreSupport.h \
3302 nodist_tests_testCoss_SOURCES = \
3307 $(DISKIO_GEN_SOURCE)
3308 tests_testCoss_LDADD = \
3332 $(top_builddir)/lib/libmisccontainers.la \
3333 $(top_builddir)/lib/libmiscencoding.la \
3334 $(top_builddir)/lib/libmiscutil.la \
3335 $(SQUID_CPPUNIT_LIBS) \
3340 tests_testCoss_LDFLAGS = $(LIBADD_DL)
3341 tests_testCoss_DEPENDENCIES = \
3344 tests_testNull_SOURCES = \
3349 tests/stub_internal.cc \
3351 tests/stub_store_rebuild.cc \
3352 tests/stub_store_stats.cc \
3366 StoreSwapLogData.cc \
3371 StoreMetaSTDLFS.cc \
3372 StoreMetaUnpacker.cc \
3375 StoreFileSystem.cc \
3382 $(DELAY_POOL_SOURCE) \
3392 HttpRequestMethod.cc \
3400 tests/stub_cache_cf.cc \
3401 tests/stub_helper.cc \
3404 tests/stub_comm.cc \
3405 tests/stub_debug.cc \
3406 tests/stub_client_side_request.cc \
3407 tests/stub_http.cc \
3411 tests/stub_mime.cc \
3413 HttpHeaderTools.cc \
3420 HttpHdrContRange.cc \
3426 HttpHdrScTarget.cc \
3431 tests/stub_StatHist.cc \
3432 tests/stub_errorpage.cc \
3433 tests/stub_HttpRequest.cc \
3435 tests/stub_access_log.cc \
3438 tests/stub_store_client.cc \
3439 tests/stub_store_stats.cc \
3441 tests/stub_tools.cc \
3442 tests/testStoreSupport.cc \
3443 tests/testStoreSupport.h \
3450 nodist_tests_testNull_SOURCES = \
3452 $(DISKIO_GEN_SOURCE)
3453 tests_testNull_LDADD = \
3472 $(top_builddir)/lib/libmisccontainers.la \
3473 $(top_builddir)/lib/libmiscencoding.la \
3474 $(top_builddir)/lib/libmiscutil.la \
3475 $(SQUID_CPPUNIT_LIBS) \
3479 tests_testNull_LDFLAGS = $(LIBADD_DL)
3480 tests_testNull_DEPENDENCIES = \
3483 ## Tests of the URL module.
3484 ## TODO: Trim this down once the insanity is over.
3485 tests_testURL_SOURCES = \
3487 $(ACL_REGISTRATION_SOURCES) \
3497 ChunkedCodingParser.cc \
3502 client_side_reply.cc \
3503 client_side_request.cc \
3512 $(DELAY_POOL_SOURCE) \
3515 DiskIO/ReadRequest.cc \
3516 DiskIO/WriteRequest.cc \
3524 ExternalACLEntry.cc \
3538 HelperChildConfig.h \
3539 HelperChildConfig.cc \
3548 HttpHdrContRange.cc \
3551 HttpHdrScTarget.cc \
3555 HttpHeaderTools.cc \
3561 HttpRequestMethod.cc \
3588 peer_proxy_negotiate_auth.cc \
3591 peer_sourcehash.cc \
3608 tests/stub_StatHist.cc \
3627 StoreFileSystem.cc \
3632 StoreMetaSTDLFS.cc \
3633 StoreMetaUnpacker.cc \
3636 StoreSwapLogData.cc \
3642 tests/stub_debug.cc \
3643 tests/stub_DiskIOModule.cc \
3644 tests/stub_main_cc.cc \
3645 tests/stub_ipc_Forwarder.cc \
3646 tests/stub_store_stats.cc \
3649 tests/testURLScheme.cc \
3650 tests/testURLScheme.h \
3668 nodist_tests_testURL_SOURCES = \
3670 tests_testURL_LDADD = \
3686 icmp/libicmp.la icmp/libicmp-core.la \
3690 format/libformat.la \
3693 $(ADAPTATION_LIBS) \
3696 $(top_builddir)/lib/libmisccontainers.la \
3697 $(top_builddir)/lib/libmiscencoding.la \
3698 $(top_builddir)/lib/libmiscutil.la \
3700 $(SQUID_CPPUNIT_LIBS) \
3701 $(SQUID_CPPUNIT_LA) \
3706 tests_testURL_LDFLAGS = $(LIBADD_DL)
3707 tests_testURL_DEPENDENCIES = \
3711 tests_testConfigParser_SOURCES = \
3719 tests/testConfigParser.cc \
3720 tests/testConfigParser.h \
3722 tests/stub_cache_cf.cc \
3723 tests/stub_cache_manager.cc \
3724 tests/stub_debug.cc \
3725 tests/stub_HelperChildConfig.cc \
3727 tests/stub_tools.cc \
3731 nodist_tests_testConfigParser_SOURCES = \
3733 tests_testConfigParser_LDADD = \
3737 $(top_builddir)/lib/libmiscutil.la \
3739 $(SQUID_CPPUNIT_LIBS) \
3743 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3744 tests_testConfigParser_DEPENDENCIES = \
3747 tests_testStatHist_SOURCES = \
3753 tests/stub_cache_manager.cc \
3754 tests/stub_comm.cc \
3755 tests/stub_debug.cc \
3756 tests/stub_DelayId.cc \
3757 tests/stub_HelperChildConfig.cc \
3760 tests/stub_MemObject.cc \
3762 tests/stub_mime.cc \
3763 tests/stub_pconn.cc \
3764 tests/stub_stmem.cc \
3766 tests/stub_store.cc \
3767 tests/stub_store_stats.cc \
3769 tests/stub_tools.cc \
3771 tests/testStatHist.cc \
3772 tests/testStatHist.h \
3774 nodist_tests_testStatHist_SOURCES = \
3776 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3777 tests_testStatHist_LDADD = \
3779 $(top_builddir)/lib/libmiscutil.la \
3780 $(SQUID_CPPUNIT_LIBS) \
3781 $(SQUID_CPPUNIT_LA) \
3783 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3786 TESTS += testHeaders
3788 ## Special Universal .h dependency test script
3789 ## aborts if error encountered
3790 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3791 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3792 ## src/repl/ has no .h files and its own makefile.
3794 CLEANFILES += testHeaders