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
65 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
67 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
76 DIST_SUBDIRS += adaptation
82 $(top_builddir)/lib/libTrie/src/libTrie.a
83 ESI_LIBS = $(ESI_LOCAL_LIBS) \
91 DELAY_POOL_ALL_SOURCE = \
115 ClientDelayConfig.cc \
118 if ENABLE_DELAY_POOLS
119 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
124 if ENABLE_XPROF_STATS
125 XPROF_STATS_SOURCE = ProfStats.cc
131 HTCPSOURCE = htcp.cc htcp.h
135 LEAKFINDERSOURCE = LeakFinder.cc
141 UNLINKDSOURCE = unlinkd.h unlinkd.cc
144 UNLINKDSOURCE = unlinkd.h
153 if ENABLE_WIN32SPECIFIC
154 WIN32_SOURCE = win32.cc
155 WINSVC_SOURCE = WinSvc.cc
162 IPC_SOURCE = SquidIpc.h ipc_win32.cc
164 IPC_SOURCE = SquidIpc.h ipc.cc
167 AIO_WIN32_ALL_SOURCES = \
168 DiskIO/AIO/aio_win32.cc \
169 DiskIO/AIO/aio_win32.h
171 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
177 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
178 DiskIO/DiskThreads/CommIO.cc \
179 DiskIO/DiskThreads/CommIO.h
181 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
182 DiskIO/DiskThreads/CommIO.cc \
183 DiskIO/DiskThreads/CommIO.h
186 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
187 libMmapped.a libIpcIo.a
188 noinst_LIBRARIES = $(DISK_LIBS)
189 noinst_LTLIBRARIES = libsquid.la
192 DiskIO/DiskDaemon/diskd \
202 ## cfgen is used when building squid
203 ## ufsdump is a debug utility, it is possibly useful for end users with cache
204 ## corruption, but at this point we do not install it.
219 cf_gen_SOURCES = cf_gen.cc
220 nodist_cf_gen_HEADER = cf_gen_defines.cci
221 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
223 cf_gen.$(OBJEXT): cf_gen_defines.cci
225 ## cf_gen.cc needs src/cf_gen_defines.cci
226 INCLUDES += -I$(top_builddir)/src
229 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
232 DiskIO/DiskIOModule.cc \
233 DiskIO/ReadRequest.cc \
234 DiskIO/ReadRequest.h \
235 DiskIO/WriteRequest.cc \
236 DiskIO/WriteRequest.h \
238 DiskIO/DiskIOStrategy.h \
239 DiskIO/IORequestor.h \
240 DiskIO/DiskIOModule.h \
243 DISKIO_GEN_SOURCE = \
244 DiskIO/DiskIOModules_gen.cc
246 DiskIO/DiskIOModules_gen.cc: Makefile
247 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
250 # common library for all the binaries and tests. This is kindof a catch all
251 # and smaller libraries split from this are encouraged. Using lt convenience
252 # libraries, dependencies should not be a problem either.
253 libsquid_la_SOURCES = \
265 $(ACL_REGISTRATION_SOURCES) \
279 NeighborTypeDomainList.h \
280 CachePeerDomainList.h \
287 ChunkedCodingParser.cc \
288 ChunkedCodingParser.h \
294 client_side_reply.cc \
295 client_side_reply.h \
296 client_side_request.cc \
297 client_side_request.h \
302 ClientRequestContext.h \
305 CompletionDispatcher.cc \
306 CompletionDispatcher.h \
320 $(DELAY_POOL_SOURCE) \
340 ExternalACLEntry.cc \
362 HelperChildConfig.h \
363 HelperChildConfig.cc \
365 HierarchyLogEntry.h \
372 HttpHeaderFieldStat.h \
381 HttpHdrContRange.cc \
388 HttpHeaderFieldInfo.h \
404 HttpRequestMethod.cc \
405 HttpRequestMethod.h \
418 $(LEAKFINDERSOURCE) \
443 $(XPROF_STATS_SOURCE) \
448 peer_proxy_negotiate_auth.h \
449 peer_proxy_negotiate_auth.cc \
517 StoreMetaUnpacker.cc \
518 StoreMetaUnpacker.h \
526 StoreSwapLogData.cc \
560 EXTRA_squid_SOURCES = \
561 $(AIO_WIN32_ALL_SOURCES) \
564 $(DELAY_POOL_ALL_SOURCE) \
568 DnsLookupDetails.cc \
579 $(WIN32_ALL_SOURCE) \
580 $(LOADABLE_MODULES_SOURCES)
583 client_side_request.cci \
604 CLEANFILES += $(BUILT_SOURCES)
606 nodist_squid_SOURCES = \
607 $(DISKIO_GEN_SOURCE) \
628 icmp/libicmp.la icmp/libicmp-core.la \
630 format/libformat.la \
641 $(top_builddir)/lib/libmisccontainers.la \
642 $(top_builddir)/lib/libmiscencoding.la \
643 $(top_builddir)/lib/libmiscutil.la \
650 squid_DEPENDENCIES = \
668 format/libformat.la \
672 if USE_LOADABLE_MODULES
673 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
674 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
675 squid_LDFLAGS = -export-dynamic -dlopen force
676 ## when static module linking is supported and enabled:
677 ## squid_LDFLAGS = -all-static -dlopen self
679 ## LTDL headers require their local include path...
680 INCLUDES += $(INCLTDL)
683 ## Kerberos libraries require their include path...
684 INCLUDES += $(KRB5INCS)
687 unlinkd_SOURCES = unlinkd_daemon.cc
692 ## dnsserver is a standalone helper. Do not link to any internal libraries
693 dnsserver_SOURCES = dnsserver.cc
698 recv_announce_SOURCES = recv-announce.cc
700 ## What requires what..
701 ## many things want ACLChecklist.cc
702 ## ACLChecklist.cc wants AuthUserRequest.cc
703 ## ACLChecklist.cc wants AuthScheme.cc
704 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
705 ## ACLProxyAuth.cc wants ACLUserData
706 ## ACLProxyAuth.cc wants ACLRegexData
707 ## cache_cf.cc wants $(AUTH_LIBS)
708 ## cache_cf.cc wants Swapdir
709 ## cache_cf.cc wants AnyP::PortCfg
710 ## client_side wants client_db
711 ## client_db wants SNMP_SOURCE
712 ## snmp_core wants ACLStringData
713 ## SwapDir wants ConfigOption
714 ## tools.cc wants ip/libip.la
715 ## client_side.cc wants ip/libip.la
716 ## mem.cc wants ClientInfo.h
717 ## libbase.la wants cbdata.*
718 ## libbase.la wants MemBuf.*
719 ## structs.h wants HelperChildConfig.* (stub it)
739 StoreMetaUnpacker.cc \
748 HelperChildConfig.h \
749 tests/stub_HelperChildConfig.cc \
750 HttpRequestMethod.cc \
778 ufsdump_DEPENDENCIES = \
796 nodist_ufsdump_SOURCES = \
801 squid.conf.documented \
826 include $(srcdir)/tests/Stub.list
835 mk-string-arrays.pl \
836 mk-string-arrays.awk \
843 $(AIO_WIN32_SOURCES) \
844 DiskIO/AIO/async_io.h \
845 DiskIO/AIO/AIODiskFile.cc \
846 DiskIO/AIO/AIODiskFile.h \
847 DiskIO/AIO/AIODiskIOStrategy.cc \
848 DiskIO/AIO/AIODiskIOStrategy.h \
849 DiskIO/AIO/AIODiskIOModule.cc \
850 DiskIO/AIO/AIODiskIOModule.h
852 libBlocking_a_SOURCES = \
853 DiskIO/Blocking/BlockingFile.cc \
854 DiskIO/Blocking/BlockingFile.h \
855 DiskIO/Blocking/BlockingIOStrategy.cc \
856 DiskIO/Blocking/BlockingIOStrategy.h \
857 DiskIO/Blocking/BlockingDiskIOModule.cc \
858 DiskIO/Blocking/BlockingDiskIOModule.h
860 libMmapped_a_SOURCES = \
861 DiskIO/Mmapped/MmappedFile.cc \
862 DiskIO/Mmapped/MmappedFile.h \
863 DiskIO/Mmapped/MmappedIOStrategy.cc \
864 DiskIO/Mmapped/MmappedIOStrategy.h \
865 DiskIO/Mmapped/MmappedDiskIOModule.cc \
866 DiskIO/Mmapped/MmappedDiskIOModule.h
868 libIpcIo_a_SOURCES = \
869 DiskIO/IpcIo/IpcIoFile.cc \
870 DiskIO/IpcIo/IpcIoFile.h \
871 DiskIO/IpcIo/IpcIoIOStrategy.cc \
872 DiskIO/IpcIo/IpcIoIOStrategy.h \
873 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
874 DiskIO/IpcIo/IpcIoDiskIOModule.h
876 libDiskDaemon_a_SOURCES = \
877 DiskIO/DiskDaemon/DiskdFile.cc \
878 DiskIO/DiskDaemon/DiskdFile.h \
879 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
880 DiskIO/DiskDaemon/DiskdIOStrategy.h \
881 DiskIO/DiskDaemon/diomsg.h \
882 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
883 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
884 DiskIO/DiskDaemon/DiskdAction.cc \
885 DiskIO/DiskDaemon/DiskdAction.h
887 libDiskThreads_a_SOURCES = \
889 DiskIO/DiskThreads/async_io.cc \
890 DiskIO/DiskThreads/DiskThreads.h \
891 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
892 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
893 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
894 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
895 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
896 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
898 EXTRA_libDiskThreads_a_SOURCES = \
899 DiskIO/DiskThreads/aiops.cc \
900 DiskIO/DiskThreads/aiops_win32.cc \
901 DiskIO/DiskThreads/CommIO.cc \
902 DiskIO/DiskThreads/CommIO.h
904 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
905 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
906 DiskIO_DiskDaemon_diskd_LDADD = \
907 $(top_builddir)/lib/libmisccontainers.la \
908 $(top_builddir)/lib/libmiscencoding.la \
909 $(top_builddir)/lib/libmiscutil.la \
914 DEFAULT_HTTP_PORT = 3128
915 DEFAULT_ICP_PORT = 3130
916 DEFAULT_PREFIX = $(prefix)
917 DEFAULT_CONFIG_DIR = $(sysconfdir)
918 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
919 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
920 DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
921 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
922 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
923 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
924 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
925 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
926 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
927 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
928 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
929 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
930 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
931 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
932 DEFAULT_ICON_DIR = $(datadir)/icons
933 DEFAULT_ERROR_DIR = $(datadir)/errors
935 # Make location configure settings available to the code
936 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
938 snmp_core.o snmp_agent.o: ../snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
940 globals.cc: globals.h mk-globals-c.awk
941 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
943 ## Generate files containing string arrays for various enums....
944 hier_code.cc: hier_code.h mk-string-arrays.awk
945 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
947 err_type.cc: err_type.h mk-string-arrays.awk
948 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
950 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
951 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
953 lookup_t.cc: lookup_t.h mk-string-arrays.awk
954 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
956 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
957 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
959 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
960 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
963 ## other generated files...
965 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
966 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
968 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
969 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
971 ## If autodependency works well this is not needed anymore
972 cache_cf.o: cf_parser.cci
974 # cf_gen builds the configuration files.
975 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES)
976 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
978 # squid.conf.default is built by cf_gen when making cf_parser.cci
979 squid.conf.default squid.conf.documented: cf_parser.cci
982 cf_parser.cci: cf.data cf_gen$(EXEEXT)
983 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
985 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
986 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
989 ## FIXME: generate a sed command file from configure. Then this doesn't
990 ## depend on the Makefile.
991 cf.data: cf.data.pre Makefile
993 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
994 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
995 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
996 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
997 -e "s%[@]DEFAULT_DNSSERVER[@]%$(DEFAULT_DNSSERVER)%g" \
998 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
999 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
1000 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
1001 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
1002 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
1003 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
1004 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
1005 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
1006 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1007 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1008 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1009 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1010 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1011 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1012 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1013 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1014 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1015 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1016 < $(srcdir)/cf.data.pre >$@
1018 repl_modules.cc: repl_modules.sh Makefile
1019 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1021 include $(top_srcdir)/doc/manuals/Substitute.am
1023 squid.8: $(srcdir)/squid.8.in Makefile
1024 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1027 EXTRA_DIST += squid.8.in
1028 CLEANFILES += squid.8
1030 install-data-local: install-sysconfDATA install-dataDATA
1031 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1032 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1034 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1035 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1037 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1038 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1040 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1041 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1043 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1044 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1045 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1046 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1047 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1048 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1049 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1051 uninstall-local: squid.conf.default
1052 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1053 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1055 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1056 DiskIO/DiskIOModules_gen.cc \
1059 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1060 cp $(top_srcdir)/test-suite/test_tools.cc .
1062 # stock tools for unit tests - library independent versions of dlink_list
1064 # globals.cc is needed by test_tools.cc.
1065 # Neither of these should be disted from here.
1072 tests/testBoilerplate \
1073 tests/testCacheManager \
1076 tests/testEventLoop \
1077 tests/test_http_range \
1078 tests/testHttpParser \
1079 tests/testHttpReply \
1080 tests/testHttpRequest \
1084 tests/testConfigParser \
1085 tests/testStatHist \
1088 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1089 TESTS += $(check_PROGRAMS)
1091 ### Template for new Unit Test Program
1092 ## - add tests/testX to check_PROGRAMS above.
1093 ## - copy template below and substitue X for class name
1094 ## - add other component .(h|cc) files needed to link and run tests
1096 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1098 #tests_testX_SOURCES=\
1101 # tests/testMain.cc \
1104 #nodist_tests_testX_SOURCES=\
1106 #tests_testX_LDFLAGS = $(LIBADD_DL)
1107 #tests_testX_LDADD=\
1108 # $(SQUID_CPPUNIT_LIBS) \
1109 # $(SQUID_CPPUNIT_LA) \
1111 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1114 # - add other component .(h|cc) files needed to link and run tests
1115 tests_testHttpReply_SOURCES=\
1121 HttpHeaderFieldStat.h \
1125 HttpHdrContRange.cc \
1126 HttpHdrContRange.h \
1130 HttpHdrScTarget.cc \
1135 HttpHeaderFieldInfo.h \
1137 HttpHeaderTools.cc \
1162 tests/stub_access_log.cc \
1165 tests/stub_cache_cf.cc \
1166 tests/stub_cache_manager.cc \
1167 tests/stub_debug.cc \
1168 tests/stub_errorpage.cc \
1169 tests/stub_HelperChildConfig.cc \
1170 tests/stub_libformat.cc \
1174 tests/stub_StatHist.cc \
1176 tests/stub_store.cc \
1177 tests/stub_store_stats.cc \
1179 tests/stub_tools.cc \
1180 tests/stub_HttpRequest.cc \
1181 tests/testHttpReply.cc \
1182 tests/testHttpReply.h \
1189 nodist_tests_testHttpReply_SOURCES=\
1191 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1192 tests_testHttpReply_LDADD=\
1201 $(top_builddir)/lib/libmisccontainers.la \
1202 $(top_builddir)/lib/libmiscencoding.la \
1203 $(top_builddir)/lib/libmiscutil.la \
1204 $(SQUID_CPPUNIT_LIBS) \
1205 $(SQUID_CPPUNIT_LA) \
1209 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1211 tests_testACLMaxUserIP_SOURCES= \
1216 DiskIO/ReadRequest.cc \
1217 DiskIO/WriteRequest.cc \
1222 HelperChildConfig.h \
1223 HelperChildConfig.cc \
1227 HttpHeaderFieldInfo.h \
1229 HttpHeaderTools.cc \
1230 HttpHdrContRange.cc \
1232 HttpHeaderFieldStat.h \
1237 HttpHdrScTarget.cc \
1239 HttpRequestMethod.cc \
1253 tests/stub_StatHist.cc \
1261 StoreMetaSTDLFS.cc \
1262 StoreMetaUnpacker.cc \
1265 StoreSwapLogData.cc \
1273 tests/stub_access_log.cc \
1276 tests/stub_cache_cf.cc \
1277 tests/stub_debug.cc \
1278 tests/stub_DelayId.cc \
1279 tests/stub_DiskIOModule.cc \
1280 tests/stub_errorpage.cc \
1283 tests/stub_HttpRequest.cc \
1284 tests/stub_HttpReply.cc \
1285 tests/stub_ipc_TypedMsgHdr.cc \
1286 tests/stub_libcomm.cc \
1287 tests/stub_libformat.cc \
1288 tests/stub_libsslsquid.cc \
1289 tests/stub_MemObject.cc \
1290 tests/stub_MemStore.cc \
1292 tests/stub_mime.cc \
1293 tests/stub_pconn.cc \
1294 tests/stub_Port.cc \
1296 tests/stub_store.cc \
1298 tests/stub_store_rebuild.cc \
1299 tests/stub_store_stats.cc \
1300 tests/stub_store_swapout.cc \
1302 tests/stub_tools.cc \
1303 tests/stub_cache_manager.cc \
1304 tests/stub_UdsOp.cc \
1305 tests/testACLMaxUserIP.cc \
1306 tests/testACLMaxUserIP.h \
1318 nodist_tests_testACLMaxUserIP_SOURCES= \
1320 tests_testACLMaxUserIP_LDADD= \
1334 $(top_builddir)/lib/libmisccontainers.la \
1335 $(top_builddir)/lib/libmiscencoding.la \
1336 $(top_builddir)/lib/libmiscutil.la \
1339 $(SQUID_CPPUNIT_LIBS) \
1343 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1344 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1345 ## $(SQUID_CPPUNIT_LA)
1347 ## a demonstration test that does nothing but shows the salient points
1348 ## involved in writing tests.
1349 tests_testBoilerplate_SOURCES = \
1350 tests/testBoilerplate.cc \
1352 tests/testBoilerplate.h \
1354 nodist_tests_testBoilerplate_SOURCES = \
1356 tests_testBoilerplate_LDADD= \
1357 $(SQUID_CPPUNIT_LIBS) \
1361 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1362 tests_testBoilerplate_DEPENDENCIES = \
1365 ## Tests of the CacheManager module.
1366 tests_testCacheManager_SOURCES = \
1368 $(ACL_REGISTRATION_SOURCES) \
1375 HttpRequestMethod.cc \
1379 tests/testCacheManager.cc \
1380 tests/testCacheManager.h \
1382 tests/stub_main_cc.cc \
1383 tests/stub_ipc_Forwarder.cc \
1384 tests/stub_store_stats.cc \
1399 ChunkedCodingParser.cc \
1404 client_side_reply.cc \
1405 client_side_request.cc \
1414 $(DELAY_POOL_SOURCE) \
1425 ExternalACLEntry.cc \
1440 HelperChildConfig.h \
1441 HelperChildConfig.cc \
1448 HttpHeaderFieldInfo.h \
1450 HttpHeaderTools.cc \
1451 HttpHeaderFieldStat.h \
1455 HttpHdrContRange.cc \
1458 HttpHdrScTarget.cc \
1487 peer_proxy_negotiate_auth.h \
1488 peer_proxy_negotiate_auth.cc \
1491 peer_sourcehash.cc \
1511 tests/stub_StatHist.cc \
1530 StoreFileSystem.cc \
1535 StoreMetaSTDLFS.cc \
1536 StoreMetaUnpacker.cc \
1539 StoreSwapLogData.cc \
1558 nodist_tests_testCacheManager_SOURCES = \
1560 $(DISKIO_GEN_SOURCE)
1561 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1562 tests_testCacheManager_LDADD = \
1575 icmp/libicmp.la icmp/libicmp-core.la \
1577 format/libformat.la \
1581 $(ADAPTATION_LIBS) \
1588 $(top_builddir)/lib/libmisccontainers.la \
1589 $(top_builddir)/lib/libmiscencoding.la \
1590 $(top_builddir)/lib/libmiscutil.la \
1592 $(SQUID_CPPUNIT_LIBS) \
1593 $(SQUID_CPPUNIT_LA) \
1598 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1599 tests_testCacheManager_DEPENDENCIES = \
1603 tests_testDiskIO_SOURCES = \
1611 $(DELAY_POOL_SOURCE) \
1624 HttpHeaderFieldStat.h \
1628 HttpHdrContRange.cc \
1630 HttpHdrScTarget.cc \
1632 HttpHeaderFieldInfo.h \
1634 HttpHeaderTools.cc \
1639 HttpRequestMethod.cc \
1660 tests/stub_StatHist.cc \
1662 StoreFileSystem.cc \
1667 StoreMetaSTDLFS.cc \
1668 StoreMetaUnpacker.cc \
1671 StoreSwapLogData.cc \
1685 tests/stub_access_log.cc \
1689 tests/stub_cache_cf.cc \
1690 tests/stub_cache_manager.cc \
1691 tests/stub_client_db.cc \
1692 tests/stub_client_side_request.cc \
1693 tests/stub_debug.cc \
1694 tests/stub_errorpage.cc \
1695 tests/stub_helper.cc \
1696 tests/stub_HelperChildConfig.cc \
1697 tests/stub_HttpRequest.cc \
1698 tests/stub_http.cc \
1701 tests/stub_internal.cc \
1703 tests/stub_ipcache.cc \
1704 tests/stub_libformat.cc \
1705 tests/stub_libicmp.cc \
1706 tests/stub_MemStore.cc \
1708 tests/stub_mime.cc \
1709 tests/stub_pconn.cc \
1710 tests/stub_Port.cc \
1711 tests/stub_store_client.cc \
1712 tests/stub_store_stats.cc \
1714 tests/stub_store_rebuild.cc \
1715 tests/stub_UdsOp.cc \
1716 tests/testDiskIO.cc \
1717 tests/testDiskIO.h \
1719 tests/testStoreSupport.cc \
1720 tests/testStoreSupport.h \
1730 nodist_tests_testDiskIO_SOURCES= \
1732 $(DISKIO_GEN_SOURCE) \
1736 tests_testDiskIO_LDADD = \
1739 DnsLookupDetails.o \
1760 $(top_builddir)/lib/libmisccontainers.la \
1761 $(top_builddir)/lib/libmiscencoding.la \
1762 $(top_builddir)/lib/libmiscutil.la \
1764 $(SQUID_CPPUNIT_LIBS) \
1769 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1770 tests_testDiskIO_DEPENDENCIES = \
1775 ## Tests of the Even module.
1776 tests_testEvent_SOURCES = \
1778 $(ACL_REGISTRATION_SOURCES) \
1792 ChunkedCodingParser.cc \
1797 client_side_reply.cc \
1798 client_side_request.cc \
1808 $(DELAY_POOL_SOURCE) \
1821 ExternalACLEntry.cc \
1836 HelperChildConfig.h \
1837 HelperChildConfig.cc \
1845 HttpHeaderFieldInfo.h \
1847 HttpHeaderTools.cc \
1848 HttpHeaderFieldStat.h \
1852 HttpHdrContRange.cc \
1855 HttpHdrScTarget.cc \
1863 HttpRequestMethod.cc \
1892 peer_proxy_negotiate_auth.h \
1893 peer_proxy_negotiate_auth.cc \
1896 peer_sourcehash.cc \
1935 StoreFileSystem.cc \
1940 StoreMetaSTDLFS.cc \
1941 StoreMetaUnpacker.cc \
1944 StoreSwapLogData.cc \
1947 tests/CapturingStoreEntry.h \
1948 tests/testEvent.cc \
1951 tests/stub_main_cc.cc \
1952 tests/stub_ipc_Forwarder.cc \
1953 tests/stub_store_stats.cc \
1971 nodist_tests_testEvent_SOURCES = \
1973 $(DISKIO_GEN_SOURCE)
1974 tests_testEvent_LDADD = \
1987 icmp/libicmp.la icmp/libicmp-core.la \
1990 format/libformat.la \
1992 $(ADAPTATION_LIBS) \
1995 $(top_builddir)/lib/libmisccontainers.la \
1996 $(top_builddir)/lib/libmiscencoding.la \
1997 $(top_builddir)/lib/libmiscutil.la \
2004 $(SQUID_CPPUNIT_LIBS) \
2005 $(SQUID_CPPUNIT_LA) \
2010 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2011 tests_testEvent_DEPENDENCIES = \
2015 ## Tests of the EventLoop module.
2016 tests_testEventLoop_SOURCES = \
2018 $(ACL_REGISTRATION_SOURCES) \
2032 ChunkedCodingParser.cc \
2037 client_side_reply.cc \
2038 client_side_request.cc \
2048 $(DELAY_POOL_SOURCE) \
2061 ExternalACLEntry.cc \
2076 HelperChildConfig.h \
2077 HelperChildConfig.cc \
2085 HttpHeaderFieldInfo.h \
2087 HttpHeaderTools.cc \
2088 HttpHeaderFieldStat.h \
2092 HttpHdrContRange.cc \
2095 HttpHdrScTarget.cc \
2103 HttpRequestMethod.cc \
2132 peer_proxy_negotiate_auth.h \
2133 peer_proxy_negotiate_auth.cc \
2136 peer_sourcehash.cc \
2174 StoreFileSystem.cc \
2179 StoreMetaSTDLFS.cc \
2180 StoreMetaUnpacker.cc \
2183 StoreSwapLogData.cc \
2188 tests/testEventLoop.cc \
2189 tests/testEventLoop.h \
2191 tests/stub_main_cc.cc \
2192 tests/stub_ipc_Forwarder.cc \
2193 tests/stub_store_stats.cc \
2211 nodist_tests_testEventLoop_SOURCES = \
2213 $(DISKIO_GEN_SOURCE)
2214 tests_testEventLoop_LDADD = \
2227 icmp/libicmp.la icmp/libicmp-core.la \
2230 format/libformat.la \
2232 $(ADAPTATION_LIBS) \
2235 $(top_builddir)/lib/libmisccontainers.la \
2236 $(top_builddir)/lib/libmiscencoding.la \
2237 $(top_builddir)/lib/libmiscutil.la \
2244 $(SQUID_CPPUNIT_LIBS) \
2245 $(SQUID_CPPUNIT_LA) \
2250 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2251 tests_testEventLoop_DEPENDENCIES = \
2255 tests_test_http_range_SOURCES = \
2257 $(ACL_REGISTRATION_SOURCES) \
2271 ChunkedCodingParser.cc \
2276 client_side_reply.cc \
2277 client_side_request.cc \
2287 $(DELAY_POOL_SOURCE) \
2298 ExternalACLEntry.cc \
2313 HelperChildConfig.h \
2314 HelperChildConfig.cc \
2320 HttpHeaderFieldStat.h \
2324 HttpHdrContRange.cc \
2327 HttpHdrScTarget.cc \
2330 HttpHeaderFieldInfo.h \
2332 HttpHeaderTools.cc \
2340 HttpRequestMethod.cc \
2368 peer_proxy_negotiate_auth.h \
2369 peer_proxy_negotiate_auth.cc \
2372 peer_sourcehash.cc \
2410 StoreFileSystem.cc \
2415 StoreMetaSTDLFS.cc \
2416 StoreMetaUnpacker.cc \
2419 StoreSwapLogData.cc \
2424 tests/test_http_range.cc \
2425 tests/stub_ipc_Forwarder.cc \
2426 tests/stub_main_cc.cc \
2427 tests/stub_MemStore.cc \
2428 tests/stub_store_stats.cc \
2445 nodist_tests_test_http_range_SOURCES = \
2447 $(DISKIO_GEN_SOURCE)
2448 tests_test_http_range_LDADD = \
2460 icmp/libicmp.la icmp/libicmp-core.la \
2463 format/libformat.la \
2467 $(ADAPTATION_LIBS) \
2474 $(top_builddir)/lib/libmisccontainers.la \
2475 $(top_builddir)/lib/libmiscencoding.la \
2476 $(top_builddir)/lib/libmiscutil.la \
2478 $(SQUID_CPPUNIT_LIBS) \
2479 $(SQUID_CPPUNIT_LA) \
2484 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2485 tests_test_http_range_DEPENDENCIES = \
2489 tests_testHttpParser_SOURCES = \
2501 tests/stub_cache_cf.cc \
2502 tests/stub_cache_manager.cc \
2503 tests/stub_debug.cc \
2504 tests/stub_event.cc \
2505 tests/stub_HelperChildConfig.cc \
2507 tests/stub_tools.cc \
2508 tests/testHttpParser.cc \
2509 tests/testHttpParser.h \
2514 nodist_tests_testHttpParser_SOURCES = \
2516 tests_testHttpParser_LDADD= \
2520 $(top_builddir)/lib/libmiscutil.la \
2521 $(SQUID_CPPUNIT_LIBS) \
2524 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2525 tests_testHttpParser_DEPENDENCIES = \
2528 ## Tests of the HttpRequest module.
2529 tests_testHttpRequest_SOURCES = \
2531 $(ACL_REGISTRATION_SOURCES) \
2537 HttpRequestMethod.cc \
2541 tests/testHttpRequest.h \
2542 tests/testHttpRequest.cc \
2543 tests/testHttpRequestMethod.h \
2544 tests/testHttpRequestMethod.cc \
2546 tests/stub_DiskIOModule.cc \
2547 tests/stub_main_cc.cc \
2548 tests/stub_ipc_Forwarder.cc \
2549 tests/stub_store_stats.cc \
2565 ChunkedCodingParser.cc \
2570 client_side_reply.cc \
2571 client_side_request.cc \
2580 $(DELAY_POOL_SOURCE) \
2589 ExternalACLEntry.cc \
2601 HelperChildConfig.h \
2602 HelperChildConfig.cc \
2610 HttpHeaderFieldInfo.h \
2612 HttpHeaderTools.cc \
2613 HttpHeaderFieldStat.h \
2617 HttpHdrContRange.cc \
2620 HttpHdrScTarget.cc \
2649 peer_proxy_negotiate_auth.h \
2650 peer_proxy_negotiate_auth.cc \
2653 peer_sourcehash.cc \
2690 StoreFileSystem.cc \
2695 StoreMetaSTDLFS.cc \
2696 StoreMetaUnpacker.cc \
2699 StoreSwapLogData.cc \
2720 nodist_tests_testHttpRequest_SOURCES = \
2722 tests_testHttpRequest_LDADD = \
2738 icmp/libicmp.la icmp/libicmp-core.la \
2741 format/libformat.la \
2743 $(ADAPTATION_LIBS) \
2746 $(top_builddir)/lib/libmisccontainers.la \
2747 $(top_builddir)/lib/libmiscencoding.la \
2748 $(top_builddir)/lib/libmiscutil.la \
2751 $(SQUID_CPPUNIT_LIBS) \
2752 $(SQUID_CPPUNIT_LA) \
2757 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2758 tests_testHttpRequest_DEPENDENCIES = \
2762 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2763 ## first line - what we are testing.
2764 tests_testStore_SOURCES= \
2771 $(DELAY_POOL_SOURCE) \
2774 DiskIO/ReadRequest.cc \
2775 DiskIO/WriteRequest.cc \
2781 HttpHeaderFieldStat.h \
2785 HttpHdrContRange.cc \
2788 HttpHdrScTarget.cc \
2789 HttpHeaderFieldInfo.h \
2791 HttpHeaderTools.cc \
2795 HttpRequestMethod.cc \
2826 StoreMetaSTDLFS.cc \
2827 StoreMetaUnpacker.cc \
2830 StoreSwapLogData.cc \
2837 tests/CapturingStoreEntry.h \
2839 tests/stub_access_log.cc \
2843 tests/stub_cache_cf.cc \
2844 tests/stub_cache_manager.cc \
2845 tests/stub_client_side_request.cc \
2846 tests/stub_comm.cc \
2847 tests/stub_debug.cc \
2848 tests/stub_DiskIOModule.cc \
2849 tests/stub_errorpage.cc \
2852 tests/stub_helper.cc \
2853 tests/stub_HelperChildConfig.cc \
2854 tests/stub_http.cc \
2855 tests/stub_libformat.cc \
2858 tests/stub_HttpReply.cc \
2859 tests/stub_HttpRequest.cc \
2860 tests/stub_libcomm.cc \
2861 tests/stub_MemStore.cc \
2863 tests/stub_mime.cc \
2864 tests/stub_Port.cc \
2865 tests/stub_store_client.cc \
2866 tests/stub_store_stats.cc \
2868 tests/stub_store_rebuild.cc \
2869 tests/stub_store_swapout.cc \
2871 tests/stub_tools.cc \
2872 tests/stub_UdsOp.cc \
2874 tests/testStore.cc \
2876 tests/testStoreEntryStream.cc \
2877 tests/testStoreEntryStream.h \
2878 tests/testStoreController.cc \
2879 tests/testStoreController.h \
2880 tests/testStoreHashIndex.cc \
2881 tests/testStoreHashIndex.h \
2882 tests/testStoreSupport.cc \
2883 tests/testStoreSupport.h \
2884 tests/TestSwapDir.cc \
2885 tests/TestSwapDir.h \
2892 nodist_tests_testStore_SOURCES= \
2898 tests_testStore_LDADD= \
2914 $(top_builddir)/lib/libmisccontainers.la \
2915 $(top_builddir)/lib/libmiscencoding.la \
2916 $(top_builddir)/lib/libmiscutil.la \
2918 $(SQUID_CPPUNIT_LIBS) \
2921 DnsLookupDetails.o \
2924 tests_testStore_LDFLAGS = $(LIBADD_DL)
2925 tests_testStore_DEPENDENCIES = \
2928 ## string needs mem.cc.
2929 ## mem.cc needs ClientInfo.h
2930 ## libsquid pulls in SquidConfig and children. stub them.
2931 tests_testString_SOURCES = \
2938 tests/testString.cc \
2939 tests/testString.h \
2942 tests/stub_cache_cf.cc \
2943 tests/stub_cache_manager.cc \
2944 tests/stub_debug.cc \
2945 tests/stub_HelperChildConfig.cc \
2947 tests/stub_tools.cc \
2951 nodist_tests_testString_SOURCES = \
2953 tests_testString_LDADD = \
2957 $(top_builddir)/lib/libmiscutil.la \
2959 $(SQUID_CPPUNIT_LIBS) \
2963 tests_testString_LDFLAGS = $(LIBADD_DL)
2964 tests_testString_DEPENDENCIES = \
2986 tests_testUfs_SOURCES = \
2990 tests/stub_cache_manager.cc \
2991 tests/stub_client_db.cc \
2992 tests/stub_HelperChildConfig.cc \
2995 tests/stub_MemStore.cc \
2996 tests/stub_pconn.cc \
2997 tests/stub_Port.cc \
2998 tests/stub_UdsOp.cc \
3000 tests/stub_internal.cc \
3001 tests/stub_libformat.cc \
3003 tests/stub_store_rebuild.cc \
3004 tests/stub_store_stats.cc \
3023 StoreSwapLogData.cc \
3028 StoreMetaSTDLFS.cc \
3029 StoreMetaUnpacker.cc \
3032 StoreFileSystem.cc \
3039 $(DELAY_POOL_SOURCE) \
3049 HttpRequestMethod.cc \
3058 tests/stub_cache_cf.cc \
3059 tests/stub_helper.cc \
3062 tests/stub_debug.cc \
3063 tests/stub_client_side_request.cc \
3064 tests/stub_http.cc \
3068 tests/stub_mime.cc \
3069 HttpHeaderFieldInfo.h \
3071 HttpHeaderTools.cc \
3078 HttpHdrContRange.cc \
3080 HttpHeaderFieldStat.h \
3085 HttpHdrScTarget.cc \
3095 tests/stub_errorpage.cc \
3096 tests/stub_HttpRequest.cc \
3098 tests/stub_access_log.cc \
3101 tests/stub_store_client.cc \
3103 tests/stub_tools.cc \
3104 tests/testStoreSupport.cc \
3105 tests/testStoreSupport.h \
3112 nodist_tests_testUfs_SOURCES = \
3114 $(DISKIO_GEN_SOURCE) \
3118 tests_testUfs_LDADD = \
3120 DnsLookupDetails.o \
3143 $(top_builddir)/lib/libmisccontainers.la \
3144 $(top_builddir)/lib/libmiscencoding.la \
3145 $(top_builddir)/lib/libmiscutil.la \
3147 $(SQUID_CPPUNIT_LIBS) \
3151 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3152 tests_testUfs_DEPENDENCIES = \
3155 tests_testRock_SOURCES = \
3170 HttpHeaderFieldStat.h \
3174 HttpHdrContRange.cc \
3177 HttpHdrScTarget.cc \
3180 HttpHeaderFieldInfo.h \
3182 HttpHeaderTools.cc \
3185 HttpRequestMethod.cc \
3204 tests/stub_StatHist.cc \
3208 StoreFileSystem.cc \
3213 StoreMetaSTDLFS.cc \
3215 StoreMetaUnpacker.cc \
3217 StoreSwapLogData.cc \
3231 tests/testStoreSupport.cc \
3232 tests/testStoreSupport.h \
3234 tests/stub_access_log.cc \
3237 tests/stub_cache_cf.cc \
3238 tests/stub_cache_manager.cc \
3240 tests/stub_client_db.cc \
3241 tests/stub_client_side_request.cc \
3242 tests/stub_debug.cc \
3243 tests/stub_errorpage.cc \
3244 tests/stub_HelperChildConfig.cc \
3245 tests/stub_http.cc \
3246 tests/stub_HttpRequest.cc \
3249 tests/stub_ipcache.cc \
3250 tests/stub_libformat.cc \
3251 tests/stub_libicmp.cc \
3252 tests/stub_MemStore.cc \
3254 tests/stub_mime.cc \
3255 tests/stub_Port.cc \
3256 tests/stub_pconn.cc \
3257 tests/stub_store_client.cc \
3259 tests/stub_store_rebuild.cc \
3260 tests/stub_store_stats.cc \
3262 tests/stub_tools.cc \
3268 $(DELAY_POOL_SOURCE) \
3271 nodist_tests_testRock_SOURCES = \
3272 $(DISKIO_GEN_SOURCE) \
3277 tests_testRock_LDADD = \
3296 $(top_builddir)/lib/libmisccontainers.la \
3297 $(top_builddir)/lib/libmiscencoding.la \
3298 $(top_builddir)/lib/libmiscutil.la \
3300 $(SQUID_CPPUNIT_LIBS) \
3304 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3305 tests_testRock_DEPENDENCIES = \
3308 tests_testCoss_SOURCES = \
3312 tests/stub_cache_manager.cc \
3314 tests/stub_client_db.cc \
3315 tests/stub_debug.cc \
3316 tests/stub_HelperChildConfig.cc \
3318 tests/stub_internal.cc \
3320 tests/stub_pconn.cc \
3322 tests/stub_store_rebuild.cc \
3323 tests/stub_store_stats.cc \
3339 StoreSwapLogData.cc \
3344 StoreMetaSTDLFS.cc \
3345 StoreMetaUnpacker.cc \
3348 StoreFileSystem.cc \
3355 $(DELAY_POOL_SOURCE) \
3365 HttpRequestMethod.cc \
3374 tests/stub_cache_cf.cc \
3375 tests/stub_helper.cc \
3378 tests/stub_client_side_request.cc \
3379 tests/stub_http.cc \
3383 tests/stub_mime.cc \
3384 HttpHeaderFieldInfo.h \
3386 HttpHeaderTools.cc \
3393 HttpHdrContRange.cc \
3395 HttpHeaderFieldStat.h \
3400 HttpHdrScTarget.cc \
3405 tests/stub_StatHist.cc \
3406 tests/stub_errorpage.cc \
3407 tests/stub_HttpRequest.cc \
3409 tests/stub_access_log.cc \
3412 tests/stub_MemStore.cc \
3413 tests/stub_Port.cc \
3414 tests/stub_store_client.cc \
3415 tests/stub_store_stats.cc \
3417 tests/stub_tools.cc \
3418 tests/stub_UdsOp.cc \
3419 tests/testStoreSupport.cc \
3420 tests/testStoreSupport.h \
3427 nodist_tests_testCoss_SOURCES = \
3432 $(DISKIO_GEN_SOURCE)
3433 tests_testCoss_LDADD = \
3457 $(top_builddir)/lib/libmisccontainers.la \
3458 $(top_builddir)/lib/libmiscencoding.la \
3459 $(top_builddir)/lib/libmiscutil.la \
3460 $(SQUID_CPPUNIT_LIBS) \
3465 tests_testCoss_LDFLAGS = $(LIBADD_DL)
3466 tests_testCoss_DEPENDENCIES = \
3469 tests_testNull_SOURCES = \
3474 tests/stub_internal.cc \
3476 tests/stub_store_rebuild.cc \
3477 tests/stub_store_stats.cc \
3493 StoreSwapLogData.cc \
3498 StoreMetaSTDLFS.cc \
3499 StoreMetaUnpacker.cc \
3502 StoreFileSystem.cc \
3509 $(DELAY_POOL_SOURCE) \
3519 HttpRequestMethod.cc \
3528 tests/stub_cache_cf.cc \
3529 tests/stub_helper.cc \
3532 tests/stub_comm.cc \
3533 tests/stub_debug.cc \
3534 tests/stub_client_side_request.cc \
3535 tests/stub_http.cc \
3539 tests/stub_mime.cc \
3540 HttpHeaderFieldInfo.h \
3542 HttpHeaderTools.cc \
3549 HttpHdrContRange.cc \
3551 HttpHeaderFieldStat.h \
3556 HttpHdrScTarget.cc \
3561 tests/stub_StatHist.cc \
3562 tests/stub_errorpage.cc \
3563 tests/stub_HttpRequest.cc \
3565 tests/stub_access_log.cc \
3568 tests/stub_store_client.cc \
3569 tests/stub_store_stats.cc \
3571 tests/stub_tools.cc \
3572 tests/testStoreSupport.cc \
3573 tests/testStoreSupport.h \
3580 nodist_tests_testNull_SOURCES = \
3582 $(DISKIO_GEN_SOURCE)
3583 tests_testNull_LDADD = \
3602 $(top_builddir)/lib/libmisccontainers.la \
3603 $(top_builddir)/lib/libmiscencoding.la \
3604 $(top_builddir)/lib/libmiscutil.la \
3605 $(SQUID_CPPUNIT_LIBS) \
3609 tests_testNull_LDFLAGS = $(LIBADD_DL)
3610 tests_testNull_DEPENDENCIES = \
3613 ## Tests of the URL module.
3614 ## TODO: Trim this down once the insanity is over.
3615 tests_testURL_SOURCES = \
3617 $(ACL_REGISTRATION_SOURCES) \
3631 ChunkedCodingParser.cc \
3636 client_side_reply.cc \
3637 client_side_request.cc \
3646 $(DELAY_POOL_SOURCE) \
3649 DiskIO/ReadRequest.cc \
3650 DiskIO/WriteRequest.cc \
3658 ExternalACLEntry.cc \
3672 HelperChildConfig.h \
3673 HelperChildConfig.cc \
3679 HttpHeaderFieldStat.h \
3683 HttpHdrContRange.cc \
3686 HttpHdrScTarget.cc \
3689 HttpHeaderFieldInfo.h \
3691 HttpHeaderTools.cc \
3699 HttpRequestMethod.cc \
3728 peer_proxy_negotiate_auth.h \
3729 peer_proxy_negotiate_auth.cc \
3732 peer_sourcehash.cc \
3750 tests/stub_StatHist.cc \
3769 StoreFileSystem.cc \
3774 StoreMetaSTDLFS.cc \
3775 StoreMetaUnpacker.cc \
3778 StoreSwapLogData.cc \
3784 tests/stub_debug.cc \
3785 tests/stub_DiskIOModule.cc \
3786 tests/stub_main_cc.cc \
3787 tests/stub_ipc_Forwarder.cc \
3788 tests/stub_store_stats.cc \
3791 tests/testURLScheme.cc \
3792 tests/testURLScheme.h \
3810 nodist_tests_testURL_SOURCES = \
3812 tests_testURL_LDADD = \
3828 icmp/libicmp.la icmp/libicmp-core.la \
3832 format/libformat.la \
3835 $(ADAPTATION_LIBS) \
3838 $(top_builddir)/lib/libmisccontainers.la \
3839 $(top_builddir)/lib/libmiscencoding.la \
3840 $(top_builddir)/lib/libmiscutil.la \
3842 $(SQUID_CPPUNIT_LIBS) \
3843 $(SQUID_CPPUNIT_LA) \
3848 tests_testURL_LDFLAGS = $(LIBADD_DL)
3849 tests_testURL_DEPENDENCIES = \
3853 tests_testConfigParser_SOURCES = \
3861 tests/testConfigParser.cc \
3862 tests/testConfigParser.h \
3865 tests/stub_cache_cf.cc \
3866 tests/stub_cache_manager.cc \
3867 tests/stub_debug.cc \
3868 tests/stub_HelperChildConfig.cc \
3870 tests/stub_tools.cc \
3874 nodist_tests_testConfigParser_SOURCES = \
3876 tests_testConfigParser_LDADD = \
3880 $(top_builddir)/lib/libmiscutil.la \
3882 $(SQUID_CPPUNIT_LIBS) \
3886 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3887 tests_testConfigParser_DEPENDENCIES = \
3890 tests_testStatHist_SOURCES = \
3896 tests/stub_cache_manager.cc \
3897 tests/stub_comm.cc \
3898 tests/stub_debug.cc \
3899 tests/stub_DelayId.cc \
3900 tests/stub_HelperChildConfig.cc \
3903 tests/stub_MemObject.cc \
3905 tests/stub_mime.cc \
3906 tests/stub_pconn.cc \
3907 tests/stub_stmem.cc \
3909 tests/stub_store.cc \
3910 tests/stub_store_stats.cc \
3912 tests/stub_tools.cc \
3914 tests/testStatHist.cc \
3915 tests/testStatHist.h \
3917 nodist_tests_testStatHist_SOURCES = \
3919 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3920 tests_testStatHist_LDADD = \
3922 $(top_builddir)/lib/libmiscutil.la \
3923 $(SQUID_CPPUNIT_LIBS) \
3924 $(SQUID_CPPUNIT_LA) \
3926 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3929 TESTS += testHeaders
3931 ## Special Universal .h dependency test script
3932 ## aborts if error encountered
3933 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3934 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3935 ## src/repl/ has no .h files and its own makefile.
3937 CLEANFILES += testHeaders