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 \
497 StoreMetaUnpacker.cc \
498 StoreMetaUnpacker.h \
506 StoreSwapLogData.cc \
540 EXTRA_squid_SOURCES = \
541 $(AIO_WIN32_ALL_SOURCES) \
544 $(DELAY_POOL_ALL_SOURCE) \
548 DnsLookupDetails.cc \
559 $(WIN32_ALL_SOURCE) \
560 $(LOADABLE_MODULES_SOURCES)
563 client_side_request.cci \
584 CLEANFILES += $(BUILT_SOURCES)
586 nodist_squid_SOURCES = \
587 $(DISKIO_GEN_SOURCE) \
608 icmp/libicmp.la icmp/libicmp-core.la \
610 format/libformat.la \
621 $(top_builddir)/lib/libmisccontainers.la \
622 $(top_builddir)/lib/libmiscencoding.la \
623 $(top_builddir)/lib/libmiscutil.la \
630 squid_DEPENDENCIES = \
648 format/libformat.la \
652 if USE_LOADABLE_MODULES
653 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
654 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
655 squid_LDFLAGS = -export-dynamic -dlopen force
656 ## when static module linking is supported and enabled:
657 ## squid_LDFLAGS = -all-static -dlopen self
659 ## LTDL headers require their local include path...
660 INCLUDES += $(INCLTDL)
663 ## Kerberos libraries require their include path...
664 INCLUDES += $(KRB5INCS)
667 unlinkd_SOURCES = unlinkd_daemon.cc
672 ## dnsserver is a standalone helper. Do not link to any internal libraries
673 dnsserver_SOURCES = dnsserver.cc
678 recv_announce_SOURCES = recv-announce.cc
680 ## What requires what..
681 ## many things want ACLChecklist.cc
682 ## ACLChecklist.cc wants AuthUserRequest.cc
683 ## ACLChecklist.cc wants AuthScheme.cc
684 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
685 ## ACLProxyAuth.cc wants ACLUserData
686 ## ACLProxyAuth.cc wants ACLRegexData
687 ## cache_cf.cc wants $(AUTH_LIBS)
688 ## cache_cf.cc wants Swapdir
689 ## cache_cf.cc wants AnyP::PortCfg
690 ## client_side wants client_db
691 ## client_db wants SNMP_SOURCE
692 ## snmp_core wants ACLStringData
693 ## SwapDir wants ConfigOption
694 ## tools.cc wants ip/libip.la
695 ## client_side.cc wants ip/libip.la
696 ## mem.cc wants ClientInfo.h
697 ## libbase.la wants cbdata.*
698 ## libbase.la wants MemBuf.*
699 ## structs.h wants HelperChildConfig.* (stub it)
718 StoreMetaUnpacker.cc \
727 HelperChildConfig.h \
728 tests/stub_HelperChildConfig.cc \
729 HttpRequestMethod.cc \
757 ufsdump_DEPENDENCIES = \
775 nodist_ufsdump_SOURCES = \
780 squid.conf.documented \
805 include $(srcdir)/tests/Stub.list
814 mk-string-arrays.pl \
815 mk-string-arrays.awk \
822 $(AIO_WIN32_SOURCES) \
823 DiskIO/AIO/async_io.h \
824 DiskIO/AIO/AIODiskFile.cc \
825 DiskIO/AIO/AIODiskFile.h \
826 DiskIO/AIO/AIODiskIOStrategy.cc \
827 DiskIO/AIO/AIODiskIOStrategy.h \
828 DiskIO/AIO/AIODiskIOModule.cc \
829 DiskIO/AIO/AIODiskIOModule.h
831 libBlocking_a_SOURCES = \
832 DiskIO/Blocking/BlockingFile.cc \
833 DiskIO/Blocking/BlockingFile.h \
834 DiskIO/Blocking/BlockingIOStrategy.cc \
835 DiskIO/Blocking/BlockingIOStrategy.h \
836 DiskIO/Blocking/BlockingDiskIOModule.cc \
837 DiskIO/Blocking/BlockingDiskIOModule.h
839 libMmapped_a_SOURCES = \
840 DiskIO/Mmapped/MmappedFile.cc \
841 DiskIO/Mmapped/MmappedFile.h \
842 DiskIO/Mmapped/MmappedIOStrategy.cc \
843 DiskIO/Mmapped/MmappedIOStrategy.h \
844 DiskIO/Mmapped/MmappedDiskIOModule.cc \
845 DiskIO/Mmapped/MmappedDiskIOModule.h
847 libIpcIo_a_SOURCES = \
848 DiskIO/IpcIo/IpcIoFile.cc \
849 DiskIO/IpcIo/IpcIoFile.h \
850 DiskIO/IpcIo/IpcIoIOStrategy.cc \
851 DiskIO/IpcIo/IpcIoIOStrategy.h \
852 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
853 DiskIO/IpcIo/IpcIoDiskIOModule.h
855 libDiskDaemon_a_SOURCES = \
856 DiskIO/DiskDaemon/DiskdFile.cc \
857 DiskIO/DiskDaemon/DiskdFile.h \
858 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
859 DiskIO/DiskDaemon/DiskdIOStrategy.h \
860 DiskIO/DiskDaemon/diomsg.h \
861 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
862 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
863 DiskIO/DiskDaemon/DiskdAction.cc \
864 DiskIO/DiskDaemon/DiskdAction.h
866 libDiskThreads_a_SOURCES = \
868 DiskIO/DiskThreads/async_io.cc \
869 DiskIO/DiskThreads/DiskThreads.h \
870 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
871 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
872 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
873 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
874 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
875 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
877 EXTRA_libDiskThreads_a_SOURCES = \
878 DiskIO/DiskThreads/aiops.cc \
879 DiskIO/DiskThreads/aiops_win32.cc \
880 DiskIO/DiskThreads/CommIO.cc \
881 DiskIO/DiskThreads/CommIO.h
883 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
884 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
885 DiskIO_DiskDaemon_diskd_LDADD = \
886 $(top_builddir)/lib/libmisccontainers.la \
887 $(top_builddir)/lib/libmiscencoding.la \
888 $(top_builddir)/lib/libmiscutil.la \
893 DEFAULT_HTTP_PORT = 3128
894 DEFAULT_ICP_PORT = 3130
895 DEFAULT_PREFIX = $(prefix)
896 DEFAULT_CONFIG_DIR = $(sysconfdir)
897 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
898 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
899 DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
900 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
901 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
902 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
903 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
904 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
905 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
906 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
907 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
908 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
909 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
910 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
911 DEFAULT_ICON_DIR = $(datadir)/icons
912 DEFAULT_ERROR_DIR = $(datadir)/errors
914 # Make location configure settings available to the code
915 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
917 snmp_core.o snmp_agent.o: ../snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
919 globals.cc: globals.h mk-globals-c.awk
920 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
922 ## Generate files containing string arrays for various enums....
923 hier_code.cc: hier_code.h mk-string-arrays.awk
924 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
926 err_type.cc: err_type.h mk-string-arrays.awk
927 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
929 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
930 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
932 lookup_t.cc: lookup_t.h mk-string-arrays.awk
933 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
935 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
936 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
938 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
939 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
942 ## other generated files...
944 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
945 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
947 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
948 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
950 ## If autodependency works well this is not needed anymore
951 cache_cf.o: cf_parser.cci
953 # cf_gen builds the configuration files.
954 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES)
955 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
957 # squid.conf.default is built by cf_gen when making cf_parser.cci
958 squid.conf.default squid.conf.documented: cf_parser.cci
961 cf_parser.cci: cf.data cf_gen$(EXEEXT)
962 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
964 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
965 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
968 ## FIXME: generate a sed command file from configure. Then this doesn't
969 ## depend on the Makefile.
970 cf.data: cf.data.pre Makefile
972 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
973 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
974 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
975 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
976 -e "s%[@]DEFAULT_DNSSERVER[@]%$(DEFAULT_DNSSERVER)%g" \
977 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
978 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
979 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
980 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
981 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
982 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
983 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
984 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
985 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
986 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
987 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
988 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
989 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
990 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
991 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
992 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
993 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
994 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
995 < $(srcdir)/cf.data.pre >$@
997 repl_modules.cc: repl_modules.sh Makefile
998 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1000 include $(top_srcdir)/doc/manuals/Substitute.am
1002 squid.8: $(srcdir)/squid.8.in Makefile
1003 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1006 EXTRA_DIST += squid.8.in
1007 CLEANFILES += squid.8
1009 install-data-local: install-sysconfDATA install-dataDATA
1010 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1011 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1013 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1014 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1016 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1017 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1019 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1020 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1022 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1023 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1024 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1025 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1026 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1027 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1028 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1030 uninstall-local: squid.conf.default
1031 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1032 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1034 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1035 DiskIO/DiskIOModules_gen.cc \
1038 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1039 cp $(top_srcdir)/test-suite/test_tools.cc .
1041 # stock tools for unit tests - library independent versions of dlink_list
1043 # globals.cc is needed by test_tools.cc.
1044 # Neither of these should be disted from here.
1051 tests/testBoilerplate \
1052 tests/testCacheManager \
1055 tests/testEventLoop \
1056 tests/test_http_range \
1057 tests/testHttpParser \
1058 tests/testHttpReply \
1059 tests/testHttpRequest \
1063 tests/testConfigParser \
1064 tests/testStatHist \
1067 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1068 TESTS += $(check_PROGRAMS)
1070 ### Template for new Unit Test Program
1071 ## - add tests/testX to check_PROGRAMS above.
1072 ## - copy template below and substitue X for class name
1073 ## - add other component .(h|cc) files needed to link and run tests
1075 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1077 #tests_testX_SOURCES=\
1080 # tests/testMain.cc \
1083 #nodist_tests_testX_SOURCES=\
1085 #tests_testX_LDFLAGS = $(LIBADD_DL)
1086 #tests_testX_LDADD=\
1087 # $(SQUID_CPPUNIT_LIBS) \
1088 # $(SQUID_CPPUNIT_LA) \
1090 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1093 # - add other component .(h|cc) files needed to link and run tests
1094 tests_testHttpReply_SOURCES=\
1103 HttpHdrContRange.cc \
1104 HttpHdrContRange.h \
1108 HttpHdrScTarget.cc \
1114 HttpHeaderTools.cc \
1137 tests/stub_access_log.cc \
1139 tests/stub_cache_cf.cc \
1140 tests/stub_cache_manager.cc \
1141 tests/stub_debug.cc \
1142 tests/stub_errorpage.cc \
1143 tests/stub_HelperChildConfig.cc \
1144 tests/stub_libformat.cc \
1148 tests/stub_StatHist.cc \
1150 tests/stub_store.cc \
1151 tests/stub_store_stats.cc \
1153 tests/stub_tools.cc \
1154 tests/stub_HttpRequest.cc \
1155 tests/testHttpReply.cc \
1156 tests/testHttpReply.h \
1163 nodist_tests_testHttpReply_SOURCES=\
1165 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1166 tests_testHttpReply_LDADD=\
1175 $(top_builddir)/lib/libmisccontainers.la \
1176 $(top_builddir)/lib/libmiscencoding.la \
1177 $(top_builddir)/lib/libmiscutil.la \
1178 $(SQUID_CPPUNIT_LIBS) \
1179 $(SQUID_CPPUNIT_LA) \
1183 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 \
1487 StoreFileSystem.cc \
1492 StoreMetaSTDLFS.cc \
1493 StoreMetaUnpacker.cc \
1496 StoreSwapLogData.cc \
1515 nodist_tests_testCacheManager_SOURCES = \
1517 $(DISKIO_GEN_SOURCE)
1518 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1519 tests_testCacheManager_LDADD = \
1532 icmp/libicmp.la icmp/libicmp-core.la \
1534 format/libformat.la \
1538 $(ADAPTATION_LIBS) \
1545 $(top_builddir)/lib/libmisccontainers.la \
1546 $(top_builddir)/lib/libmiscencoding.la \
1547 $(top_builddir)/lib/libmiscutil.la \
1549 $(SQUID_CPPUNIT_LIBS) \
1550 $(SQUID_CPPUNIT_LA) \
1555 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1556 tests_testCacheManager_DEPENDENCIES = \
1560 tests_testDiskIO_SOURCES = \
1568 $(DELAY_POOL_SOURCE) \
1584 HttpHdrContRange.cc \
1586 HttpHdrScTarget.cc \
1589 HttpHeaderTools.cc \
1594 HttpRequestMethod.cc \
1611 tests/stub_StatHist.cc \
1613 StoreFileSystem.cc \
1618 StoreMetaSTDLFS.cc \
1619 StoreMetaUnpacker.cc \
1622 StoreSwapLogData.cc \
1636 tests/stub_access_log.cc \
1639 tests/stub_cache_cf.cc \
1640 tests/stub_cache_manager.cc \
1641 tests/stub_client_db.cc \
1642 tests/stub_client_side_request.cc \
1643 tests/stub_debug.cc \
1644 tests/stub_errorpage.cc \
1645 tests/stub_helper.cc \
1646 tests/stub_HelperChildConfig.cc \
1647 tests/stub_HttpRequest.cc \
1648 tests/stub_http.cc \
1651 tests/stub_internal.cc \
1653 tests/stub_ipcache.cc \
1654 tests/stub_libformat.cc \
1655 tests/stub_libicmp.cc \
1656 tests/stub_MemStore.cc \
1658 tests/stub_mime.cc \
1659 tests/stub_pconn.cc \
1660 tests/stub_Port.cc \
1661 tests/stub_store_client.cc \
1662 tests/stub_store_stats.cc \
1664 tests/stub_store_rebuild.cc \
1666 tests/stub_tools.cc \
1667 tests/stub_UdsOp.cc \
1668 tests/testDiskIO.cc \
1669 tests/testDiskIO.h \
1671 tests/testStoreSupport.cc \
1672 tests/testStoreSupport.h \
1680 nodist_tests_testDiskIO_SOURCES= \
1682 $(DISKIO_GEN_SOURCE) \
1686 tests_testDiskIO_LDADD = \
1689 DnsLookupDetails.o \
1710 $(top_builddir)/lib/libmisccontainers.la \
1711 $(top_builddir)/lib/libmiscencoding.la \
1712 $(top_builddir)/lib/libmiscutil.la \
1714 $(SQUID_CPPUNIT_LIBS) \
1719 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1720 tests_testDiskIO_DEPENDENCIES = \
1725 ## Tests of the Even module.
1726 tests_testEvent_SOURCES = \
1728 $(ACL_REGISTRATION_SOURCES) \
1738 ChunkedCodingParser.cc \
1743 client_side_reply.cc \
1744 client_side_request.cc \
1754 $(DELAY_POOL_SOURCE) \
1767 ExternalACLEntry.cc \
1782 HelperChildConfig.h \
1783 HelperChildConfig.cc \
1792 HttpHeaderTools.cc \
1796 HttpHdrContRange.cc \
1799 HttpHdrScTarget.cc \
1805 HttpRequestMethod.cc \
1832 peer_proxy_negotiate_auth.cc \
1835 peer_sourcehash.cc \
1872 StoreFileSystem.cc \
1877 StoreMetaSTDLFS.cc \
1878 StoreMetaUnpacker.cc \
1881 StoreSwapLogData.cc \
1884 tests/CapturingStoreEntry.h \
1885 tests/testEvent.cc \
1888 tests/stub_main_cc.cc \
1889 tests/stub_ipc_Forwarder.cc \
1890 tests/stub_store_stats.cc \
1908 nodist_tests_testEvent_SOURCES = \
1910 $(DISKIO_GEN_SOURCE)
1911 tests_testEvent_LDADD = \
1924 icmp/libicmp.la icmp/libicmp-core.la \
1927 format/libformat.la \
1929 $(ADAPTATION_LIBS) \
1932 $(top_builddir)/lib/libmisccontainers.la \
1933 $(top_builddir)/lib/libmiscencoding.la \
1934 $(top_builddir)/lib/libmiscutil.la \
1941 $(SQUID_CPPUNIT_LIBS) \
1942 $(SQUID_CPPUNIT_LA) \
1947 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1948 tests_testEvent_DEPENDENCIES = \
1952 ## Tests of the EventLoop module.
1953 tests_testEventLoop_SOURCES = \
1955 $(ACL_REGISTRATION_SOURCES) \
1965 ChunkedCodingParser.cc \
1970 client_side_reply.cc \
1971 client_side_request.cc \
1981 $(DELAY_POOL_SOURCE) \
1994 ExternalACLEntry.cc \
2009 HelperChildConfig.h \
2010 HelperChildConfig.cc \
2019 HttpHeaderTools.cc \
2023 HttpHdrContRange.cc \
2026 HttpHdrScTarget.cc \
2032 HttpRequestMethod.cc \
2059 peer_proxy_negotiate_auth.cc \
2062 peer_sourcehash.cc \
2098 StoreFileSystem.cc \
2103 StoreMetaSTDLFS.cc \
2104 StoreMetaUnpacker.cc \
2107 StoreSwapLogData.cc \
2112 tests/testEventLoop.cc \
2113 tests/testEventLoop.h \
2115 tests/stub_main_cc.cc \
2116 tests/stub_ipc_Forwarder.cc \
2117 tests/stub_store_stats.cc \
2135 nodist_tests_testEventLoop_SOURCES = \
2137 $(DISKIO_GEN_SOURCE)
2138 tests_testEventLoop_LDADD = \
2151 icmp/libicmp.la icmp/libicmp-core.la \
2154 format/libformat.la \
2156 $(ADAPTATION_LIBS) \
2159 $(top_builddir)/lib/libmisccontainers.la \
2160 $(top_builddir)/lib/libmiscencoding.la \
2161 $(top_builddir)/lib/libmiscutil.la \
2168 $(SQUID_CPPUNIT_LIBS) \
2169 $(SQUID_CPPUNIT_LA) \
2174 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2175 tests_testEventLoop_DEPENDENCIES = \
2179 tests_test_http_range_SOURCES = \
2181 $(ACL_REGISTRATION_SOURCES) \
2191 ChunkedCodingParser.cc \
2196 client_side_reply.cc \
2197 client_side_request.cc \
2207 $(DELAY_POOL_SOURCE) \
2218 ExternalACLEntry.cc \
2233 HelperChildConfig.h \
2234 HelperChildConfig.cc \
2243 HttpHdrContRange.cc \
2246 HttpHdrScTarget.cc \
2250 HttpHeaderTools.cc \
2256 HttpRequestMethod.cc \
2282 peer_proxy_negotiate_auth.cc \
2285 peer_sourcehash.cc \
2321 StoreFileSystem.cc \
2326 StoreMetaSTDLFS.cc \
2327 StoreMetaUnpacker.cc \
2330 StoreSwapLogData.cc \
2335 tests/test_http_range.cc \
2336 tests/stub_ipc_Forwarder.cc \
2337 tests/stub_main_cc.cc \
2338 tests/stub_MemStore.cc \
2339 tests/stub_store_stats.cc \
2356 nodist_tests_test_http_range_SOURCES = \
2358 $(DISKIO_GEN_SOURCE)
2359 tests_test_http_range_LDADD = \
2371 icmp/libicmp.la icmp/libicmp-core.la \
2374 format/libformat.la \
2378 $(ADAPTATION_LIBS) \
2385 $(top_builddir)/lib/libmisccontainers.la \
2386 $(top_builddir)/lib/libmiscencoding.la \
2387 $(top_builddir)/lib/libmiscutil.la \
2389 $(SQUID_CPPUNIT_LIBS) \
2390 $(SQUID_CPPUNIT_LA) \
2395 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2396 tests_test_http_range_DEPENDENCIES = \
2400 tests_testHttpParser_SOURCES = \
2411 tests/stub_cache_cf.cc \
2412 tests/stub_cache_manager.cc \
2413 tests/stub_debug.cc \
2414 tests/stub_event.cc \
2415 tests/stub_HelperChildConfig.cc \
2417 tests/stub_tools.cc \
2418 tests/testHttpParser.cc \
2419 tests/testHttpParser.h \
2424 nodist_tests_testHttpParser_SOURCES = \
2426 tests_testHttpParser_LDADD= \
2430 $(top_builddir)/lib/libmiscutil.la \
2431 $(SQUID_CPPUNIT_LIBS) \
2434 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2435 tests_testHttpParser_DEPENDENCIES = \
2438 ## Tests of the HttpRequest module.
2439 tests_testHttpRequest_SOURCES = \
2441 $(ACL_REGISTRATION_SOURCES) \
2445 HttpRequestMethod.cc \
2449 tests/testHttpRequest.h \
2450 tests/testHttpRequest.cc \
2451 tests/testHttpRequestMethod.h \
2452 tests/testHttpRequestMethod.cc \
2454 tests/stub_DiskIOModule.cc \
2455 tests/stub_main_cc.cc \
2456 tests/stub_ipc_Forwarder.cc \
2457 tests/stub_store_stats.cc \
2469 ChunkedCodingParser.cc \
2474 client_side_reply.cc \
2475 client_side_request.cc \
2484 $(DELAY_POOL_SOURCE) \
2493 ExternalACLEntry.cc \
2505 HelperChildConfig.h \
2506 HelperChildConfig.cc \
2515 HttpHeaderTools.cc \
2519 HttpHdrContRange.cc \
2522 HttpHdrScTarget.cc \
2549 peer_proxy_negotiate_auth.cc \
2552 peer_sourcehash.cc \
2587 StoreFileSystem.cc \
2592 StoreMetaSTDLFS.cc \
2593 StoreMetaUnpacker.cc \
2596 StoreSwapLogData.cc \
2617 nodist_tests_testHttpRequest_SOURCES = \
2619 tests_testHttpRequest_LDADD = \
2635 icmp/libicmp.la icmp/libicmp-core.la \
2638 format/libformat.la \
2640 $(ADAPTATION_LIBS) \
2643 $(top_builddir)/lib/libmisccontainers.la \
2644 $(top_builddir)/lib/libmiscencoding.la \
2645 $(top_builddir)/lib/libmiscutil.la \
2648 $(SQUID_CPPUNIT_LIBS) \
2649 $(SQUID_CPPUNIT_LA) \
2654 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2655 tests_testHttpRequest_DEPENDENCIES = \
2659 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2660 ## first line - what we are testing.
2661 tests_testStore_SOURCES= \
2668 $(DELAY_POOL_SOURCE) \
2671 DiskIO/ReadRequest.cc \
2672 DiskIO/WriteRequest.cc \
2681 HttpHdrContRange.cc \
2684 HttpHdrScTarget.cc \
2686 HttpHeaderTools.cc \
2690 HttpRequestMethod.cc \
2717 StoreMetaSTDLFS.cc \
2718 StoreMetaUnpacker.cc \
2721 StoreSwapLogData.cc \
2728 tests/CapturingStoreEntry.h \
2730 tests/stub_access_log.cc \
2733 tests/stub_cache_cf.cc \
2734 tests/stub_cache_manager.cc \
2735 tests/stub_client_side_request.cc \
2736 tests/stub_comm.cc \
2737 tests/stub_debug.cc \
2738 tests/stub_DiskIOModule.cc \
2739 tests/stub_errorpage.cc \
2742 tests/stub_helper.cc \
2743 tests/stub_HelperChildConfig.cc \
2744 tests/stub_http.cc \
2745 tests/stub_libformat.cc \
2748 tests/stub_HttpReply.cc \
2749 tests/stub_HttpRequest.cc \
2750 tests/stub_libcomm.cc \
2751 tests/stub_MemStore.cc \
2753 tests/stub_mime.cc \
2754 tests/stub_Port.cc \
2755 tests/stub_store_client.cc \
2756 tests/stub_store_stats.cc \
2758 tests/stub_store_rebuild.cc \
2759 tests/stub_store_swapout.cc \
2761 tests/stub_tools.cc \
2762 tests/stub_UdsOp.cc \
2764 tests/testStore.cc \
2766 tests/testStoreEntryStream.cc \
2767 tests/testStoreEntryStream.h \
2768 tests/testStoreController.cc \
2769 tests/testStoreController.h \
2770 tests/testStoreHashIndex.cc \
2771 tests/testStoreHashIndex.h \
2772 tests/testStoreSupport.cc \
2773 tests/testStoreSupport.h \
2774 tests/TestSwapDir.cc \
2775 tests/TestSwapDir.h \
2782 nodist_tests_testStore_SOURCES= \
2788 tests_testStore_LDADD= \
2804 $(top_builddir)/lib/libmisccontainers.la \
2805 $(top_builddir)/lib/libmiscencoding.la \
2806 $(top_builddir)/lib/libmiscutil.la \
2808 $(SQUID_CPPUNIT_LIBS) \
2811 DnsLookupDetails.o \
2814 tests_testStore_LDFLAGS = $(LIBADD_DL)
2815 tests_testStore_DEPENDENCIES = \
2818 ## string needs mem.cc.
2819 ## mem.cc needs ClientInfo.h
2820 ## libsquid pulls in SquidConfig and children. stub them.
2821 tests_testString_SOURCES = \
2828 tests/testString.cc \
2829 tests/testString.h \
2831 tests/stub_cache_cf.cc \
2832 tests/stub_cache_manager.cc \
2833 tests/stub_debug.cc \
2834 tests/stub_HelperChildConfig.cc \
2836 tests/stub_tools.cc \
2840 nodist_tests_testString_SOURCES = \
2842 tests_testString_LDADD = \
2846 $(top_builddir)/lib/libmiscutil.la \
2848 $(SQUID_CPPUNIT_LIBS) \
2852 tests_testString_LDFLAGS = $(LIBADD_DL)
2853 tests_testString_DEPENDENCIES = \
2875 tests_testUfs_SOURCES = \
2879 tests/stub_cache_manager.cc \
2880 tests/stub_client_db.cc \
2881 tests/stub_HelperChildConfig.cc \
2884 tests/stub_MemStore.cc \
2885 tests/stub_pconn.cc \
2886 tests/stub_Port.cc \
2887 tests/stub_UdsOp.cc \
2889 tests/stub_internal.cc \
2890 tests/stub_libformat.cc \
2892 tests/stub_store_rebuild.cc \
2893 tests/stub_store_stats.cc \
2908 StoreSwapLogData.cc \
2913 StoreMetaSTDLFS.cc \
2914 StoreMetaUnpacker.cc \
2917 StoreFileSystem.cc \
2924 $(DELAY_POOL_SOURCE) \
2934 HttpRequestMethod.cc \
2942 tests/stub_cache_cf.cc \
2943 tests/stub_helper.cc \
2946 tests/stub_debug.cc \
2947 tests/stub_client_side_request.cc \
2948 tests/stub_http.cc \
2952 tests/stub_mime.cc \
2954 HttpHeaderTools.cc \
2961 HttpHdrContRange.cc \
2967 HttpHdrScTarget.cc \
2977 tests/stub_errorpage.cc \
2978 tests/stub_HttpRequest.cc \
2980 tests/stub_access_log.cc \
2983 tests/stub_store_client.cc \
2985 tests/stub_tools.cc \
2986 tests/testStoreSupport.cc \
2987 tests/testStoreSupport.h \
2994 nodist_tests_testUfs_SOURCES = \
2996 $(DISKIO_GEN_SOURCE) \
3000 tests_testUfs_LDADD = \
3002 DnsLookupDetails.o \
3025 $(top_builddir)/lib/libmisccontainers.la \
3026 $(top_builddir)/lib/libmiscencoding.la \
3027 $(top_builddir)/lib/libmiscutil.la \
3029 $(SQUID_CPPUNIT_LIBS) \
3033 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3034 tests_testUfs_DEPENDENCIES = \
3037 tests_testRock_SOURCES = \
3055 HttpHdrContRange.cc \
3058 HttpHdrScTarget.cc \
3062 HttpHeaderTools.cc \
3065 HttpRequestMethod.cc \
3080 tests/stub_StatHist.cc \
3084 StoreFileSystem.cc \
3089 StoreMetaSTDLFS.cc \
3091 StoreMetaUnpacker.cc \
3093 StoreSwapLogData.cc \
3107 tests/testStoreSupport.cc \
3108 tests/testStoreSupport.h \
3110 tests/stub_access_log.cc \
3112 tests/stub_cache_cf.cc \
3113 tests/stub_cache_manager.cc \
3115 tests/stub_client_db.cc \
3116 tests/stub_client_side_request.cc \
3117 tests/stub_debug.cc \
3118 tests/stub_errorpage.cc \
3119 tests/stub_HelperChildConfig.cc \
3120 tests/stub_http.cc \
3121 tests/stub_HttpRequest.cc \
3124 tests/stub_ipcache.cc \
3125 tests/stub_libformat.cc \
3126 tests/stub_libicmp.cc \
3127 tests/stub_MemStore.cc \
3129 tests/stub_mime.cc \
3130 tests/stub_Port.cc \
3131 tests/stub_pconn.cc \
3132 tests/stub_store_client.cc \
3134 tests/stub_store_rebuild.cc \
3135 tests/stub_store_stats.cc \
3137 tests/stub_tools.cc \
3143 $(DELAY_POOL_SOURCE) \
3146 nodist_tests_testRock_SOURCES = \
3147 $(DISKIO_GEN_SOURCE) \
3152 tests_testRock_LDADD = \
3171 $(top_builddir)/lib/libmisccontainers.la \
3172 $(top_builddir)/lib/libmiscencoding.la \
3173 $(top_builddir)/lib/libmiscutil.la \
3175 $(SQUID_CPPUNIT_LIBS) \
3179 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3180 tests_testRock_DEPENDENCIES = \
3183 tests_testCoss_SOURCES = \
3187 tests/stub_cache_manager.cc \
3189 tests/stub_client_db.cc \
3190 tests/stub_debug.cc \
3191 tests/stub_HelperChildConfig.cc \
3193 tests/stub_internal.cc \
3195 tests/stub_pconn.cc \
3197 tests/stub_store_rebuild.cc \
3198 tests/stub_store_stats.cc \
3212 StoreSwapLogData.cc \
3217 StoreMetaSTDLFS.cc \
3218 StoreMetaUnpacker.cc \
3221 StoreFileSystem.cc \
3228 $(DELAY_POOL_SOURCE) \
3238 HttpRequestMethod.cc \
3246 tests/stub_cache_cf.cc \
3247 tests/stub_helper.cc \
3250 tests/stub_client_side_request.cc \
3251 tests/stub_http.cc \
3255 tests/stub_mime.cc \
3257 HttpHeaderTools.cc \
3264 HttpHdrContRange.cc \
3270 HttpHdrScTarget.cc \
3275 tests/stub_StatHist.cc \
3276 tests/stub_errorpage.cc \
3277 tests/stub_HttpRequest.cc \
3279 tests/stub_access_log.cc \
3282 tests/stub_MemStore.cc \
3283 tests/stub_Port.cc \
3284 tests/stub_store_client.cc \
3285 tests/stub_store_stats.cc \
3287 tests/stub_tools.cc \
3288 tests/stub_UdsOp.cc \
3289 tests/testStoreSupport.cc \
3290 tests/testStoreSupport.h \
3297 nodist_tests_testCoss_SOURCES = \
3302 $(DISKIO_GEN_SOURCE)
3303 tests_testCoss_LDADD = \
3327 $(top_builddir)/lib/libmisccontainers.la \
3328 $(top_builddir)/lib/libmiscencoding.la \
3329 $(top_builddir)/lib/libmiscutil.la \
3330 $(SQUID_CPPUNIT_LIBS) \
3335 tests_testCoss_LDFLAGS = $(LIBADD_DL)
3336 tests_testCoss_DEPENDENCIES = \
3339 tests_testNull_SOURCES = \
3344 tests/stub_internal.cc \
3346 tests/stub_store_rebuild.cc \
3347 tests/stub_store_stats.cc \
3361 StoreSwapLogData.cc \
3366 StoreMetaSTDLFS.cc \
3367 StoreMetaUnpacker.cc \
3370 StoreFileSystem.cc \
3377 $(DELAY_POOL_SOURCE) \
3387 HttpRequestMethod.cc \
3395 tests/stub_cache_cf.cc \
3396 tests/stub_helper.cc \
3399 tests/stub_comm.cc \
3400 tests/stub_debug.cc \
3401 tests/stub_client_side_request.cc \
3402 tests/stub_http.cc \
3406 tests/stub_mime.cc \
3408 HttpHeaderTools.cc \
3415 HttpHdrContRange.cc \
3421 HttpHdrScTarget.cc \
3426 tests/stub_StatHist.cc \
3427 tests/stub_errorpage.cc \
3428 tests/stub_HttpRequest.cc \
3430 tests/stub_access_log.cc \
3433 tests/stub_store_client.cc \
3434 tests/stub_store_stats.cc \
3436 tests/stub_tools.cc \
3437 tests/testStoreSupport.cc \
3438 tests/testStoreSupport.h \
3445 nodist_tests_testNull_SOURCES = \
3447 $(DISKIO_GEN_SOURCE)
3448 tests_testNull_LDADD = \
3467 $(top_builddir)/lib/libmisccontainers.la \
3468 $(top_builddir)/lib/libmiscencoding.la \
3469 $(top_builddir)/lib/libmiscutil.la \
3470 $(SQUID_CPPUNIT_LIBS) \
3474 tests_testNull_LDFLAGS = $(LIBADD_DL)
3475 tests_testNull_DEPENDENCIES = \
3478 ## Tests of the URL module.
3479 ## TODO: Trim this down once the insanity is over.
3480 tests_testURL_SOURCES = \
3482 $(ACL_REGISTRATION_SOURCES) \
3492 ChunkedCodingParser.cc \
3497 client_side_reply.cc \
3498 client_side_request.cc \
3507 $(DELAY_POOL_SOURCE) \
3510 DiskIO/ReadRequest.cc \
3511 DiskIO/WriteRequest.cc \
3519 ExternalACLEntry.cc \
3533 HelperChildConfig.h \
3534 HelperChildConfig.cc \
3543 HttpHdrContRange.cc \
3546 HttpHdrScTarget.cc \
3550 HttpHeaderTools.cc \
3556 HttpRequestMethod.cc \
3583 peer_proxy_negotiate_auth.cc \
3586 peer_sourcehash.cc \
3603 tests/stub_StatHist.cc \
3621 StoreFileSystem.cc \
3626 StoreMetaSTDLFS.cc \
3627 StoreMetaUnpacker.cc \
3630 StoreSwapLogData.cc \
3636 tests/stub_debug.cc \
3637 tests/stub_DiskIOModule.cc \
3638 tests/stub_main_cc.cc \
3639 tests/stub_ipc_Forwarder.cc \
3640 tests/stub_store_stats.cc \
3643 tests/testURLScheme.cc \
3644 tests/testURLScheme.h \
3662 nodist_tests_testURL_SOURCES = \
3664 tests_testURL_LDADD = \
3680 icmp/libicmp.la icmp/libicmp-core.la \
3684 format/libformat.la \
3687 $(ADAPTATION_LIBS) \
3690 $(top_builddir)/lib/libmisccontainers.la \
3691 $(top_builddir)/lib/libmiscencoding.la \
3692 $(top_builddir)/lib/libmiscutil.la \
3694 $(SQUID_CPPUNIT_LIBS) \
3695 $(SQUID_CPPUNIT_LA) \
3700 tests_testURL_LDFLAGS = $(LIBADD_DL)
3701 tests_testURL_DEPENDENCIES = \
3705 tests_testConfigParser_SOURCES = \
3713 tests/testConfigParser.cc \
3714 tests/testConfigParser.h \
3716 tests/stub_cache_cf.cc \
3717 tests/stub_cache_manager.cc \
3718 tests/stub_debug.cc \
3719 tests/stub_HelperChildConfig.cc \
3721 tests/stub_tools.cc \
3725 nodist_tests_testConfigParser_SOURCES = \
3727 tests_testConfigParser_LDADD = \
3731 $(top_builddir)/lib/libmiscutil.la \
3733 $(SQUID_CPPUNIT_LIBS) \
3737 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3738 tests_testConfigParser_DEPENDENCIES = \
3741 tests_testStatHist_SOURCES = \
3747 tests/stub_cache_manager.cc \
3748 tests/stub_comm.cc \
3749 tests/stub_debug.cc \
3750 tests/stub_DelayId.cc \
3751 tests/stub_HelperChildConfig.cc \
3754 tests/stub_MemObject.cc \
3756 tests/stub_mime.cc \
3757 tests/stub_pconn.cc \
3758 tests/stub_stmem.cc \
3760 tests/stub_store.cc \
3761 tests/stub_store_stats.cc \
3763 tests/stub_tools.cc \
3765 tests/testStatHist.cc \
3766 tests/testStatHist.h \
3768 nodist_tests_testStatHist_SOURCES = \
3770 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3771 tests_testStatHist_LDADD = \
3773 $(top_builddir)/lib/libmiscutil.la \
3774 $(SQUID_CPPUNIT_LIBS) \
3775 $(SQUID_CPPUNIT_LA) \
3777 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3780 TESTS += testHeaders
3782 ## Special Universal .h dependency test script
3783 ## aborts if error encountered
3784 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3785 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3786 ## src/repl/ has no .h files and its own makefile.
3788 CLEANFILES += testHeaders