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) \
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 \
516 StoreMetaUnpacker.cc \
517 StoreMetaUnpacker.h \
525 StoreSwapLogData.cc \
559 EXTRA_squid_SOURCES = \
560 $(AIO_WIN32_ALL_SOURCES) \
563 $(DELAY_POOL_ALL_SOURCE) \
567 DnsLookupDetails.cc \
578 $(WIN32_ALL_SOURCE) \
579 $(LOADABLE_MODULES_SOURCES)
582 client_side_request.cci \
603 CLEANFILES += $(BUILT_SOURCES)
605 nodist_squid_SOURCES = \
606 $(DISKIO_GEN_SOURCE) \
627 icmp/libicmp.la icmp/libicmp-core.la \
629 format/libformat.la \
640 $(top_builddir)/lib/libmisccontainers.la \
641 $(top_builddir)/lib/libmiscencoding.la \
642 $(top_builddir)/lib/libmiscutil.la \
649 squid_DEPENDENCIES = \
667 format/libformat.la \
671 if USE_LOADABLE_MODULES
672 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
673 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
674 squid_LDFLAGS = -export-dynamic -dlopen force
675 ## when static module linking is supported and enabled:
676 ## squid_LDFLAGS = -all-static -dlopen self
678 ## LTDL headers require their local include path...
679 INCLUDES += $(INCLTDL)
682 ## Kerberos libraries require their include path...
683 INCLUDES += $(KRB5INCS)
686 unlinkd_SOURCES = unlinkd_daemon.cc
691 ## dnsserver is a standalone helper. Do not link to any internal libraries
692 dnsserver_SOURCES = dnsserver.cc
697 recv_announce_SOURCES = recv-announce.cc
699 ## What requires what..
700 ## many things want ACLChecklist.cc
701 ## ACLChecklist.cc wants AuthUserRequest.cc
702 ## ACLChecklist.cc wants AuthScheme.cc
703 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
704 ## ACLProxyAuth.cc wants ACLUserData
705 ## ACLProxyAuth.cc wants ACLRegexData
706 ## cache_cf.cc wants $(AUTH_LIBS)
707 ## cache_cf.cc wants Swapdir
708 ## cache_cf.cc wants AnyP::PortCfg
709 ## client_side wants client_db
710 ## client_db wants SNMP_SOURCE
711 ## snmp_core wants ACLStringData
712 ## SwapDir wants ConfigOption
713 ## tools.cc wants ip/libip.la
714 ## client_side.cc wants ip/libip.la
715 ## mem.cc wants ClientInfo.h
716 ## libbase.la wants cbdata.*
717 ## libbase.la wants MemBuf.*
718 ## structs.h wants HelperChildConfig.* (stub it)
738 StoreMetaUnpacker.cc \
747 HelperChildConfig.h \
748 tests/stub_HelperChildConfig.cc \
749 HttpRequestMethod.cc \
777 ufsdump_DEPENDENCIES = \
795 nodist_ufsdump_SOURCES = \
800 squid.conf.documented \
825 include $(srcdir)/tests/Stub.list
834 mk-string-arrays.pl \
835 mk-string-arrays.awk \
842 $(AIO_WIN32_SOURCES) \
843 DiskIO/AIO/async_io.h \
844 DiskIO/AIO/AIODiskFile.cc \
845 DiskIO/AIO/AIODiskFile.h \
846 DiskIO/AIO/AIODiskIOStrategy.cc \
847 DiskIO/AIO/AIODiskIOStrategy.h \
848 DiskIO/AIO/AIODiskIOModule.cc \
849 DiskIO/AIO/AIODiskIOModule.h
851 libBlocking_a_SOURCES = \
852 DiskIO/Blocking/BlockingFile.cc \
853 DiskIO/Blocking/BlockingFile.h \
854 DiskIO/Blocking/BlockingIOStrategy.cc \
855 DiskIO/Blocking/BlockingIOStrategy.h \
856 DiskIO/Blocking/BlockingDiskIOModule.cc \
857 DiskIO/Blocking/BlockingDiskIOModule.h
859 libMmapped_a_SOURCES = \
860 DiskIO/Mmapped/MmappedFile.cc \
861 DiskIO/Mmapped/MmappedFile.h \
862 DiskIO/Mmapped/MmappedIOStrategy.cc \
863 DiskIO/Mmapped/MmappedIOStrategy.h \
864 DiskIO/Mmapped/MmappedDiskIOModule.cc \
865 DiskIO/Mmapped/MmappedDiskIOModule.h
867 libIpcIo_a_SOURCES = \
868 DiskIO/IpcIo/IpcIoFile.cc \
869 DiskIO/IpcIo/IpcIoFile.h \
870 DiskIO/IpcIo/IpcIoIOStrategy.cc \
871 DiskIO/IpcIo/IpcIoIOStrategy.h \
872 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
873 DiskIO/IpcIo/IpcIoDiskIOModule.h
875 libDiskDaemon_a_SOURCES = \
876 DiskIO/DiskDaemon/DiskdFile.cc \
877 DiskIO/DiskDaemon/DiskdFile.h \
878 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
879 DiskIO/DiskDaemon/DiskdIOStrategy.h \
880 DiskIO/DiskDaemon/diomsg.h \
881 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
882 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
883 DiskIO/DiskDaemon/DiskdAction.cc \
884 DiskIO/DiskDaemon/DiskdAction.h
886 libDiskThreads_a_SOURCES = \
888 DiskIO/DiskThreads/async_io.cc \
889 DiskIO/DiskThreads/DiskThreads.h \
890 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
891 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
892 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
893 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
894 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
895 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
897 EXTRA_libDiskThreads_a_SOURCES = \
898 DiskIO/DiskThreads/aiops.cc \
899 DiskIO/DiskThreads/aiops_win32.cc \
900 DiskIO/DiskThreads/CommIO.cc \
901 DiskIO/DiskThreads/CommIO.h
903 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
904 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
905 DiskIO_DiskDaemon_diskd_LDADD = \
906 $(top_builddir)/lib/libmisccontainers.la \
907 $(top_builddir)/lib/libmiscencoding.la \
908 $(top_builddir)/lib/libmiscutil.la \
913 DEFAULT_HTTP_PORT = 3128
914 DEFAULT_ICP_PORT = 3130
915 DEFAULT_PREFIX = $(prefix)
916 DEFAULT_CONFIG_DIR = $(sysconfdir)
917 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
918 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
919 DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
920 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
921 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
922 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
923 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
924 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
925 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
926 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
927 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
928 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
929 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
930 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
931 DEFAULT_ICON_DIR = $(datadir)/icons
932 DEFAULT_ERROR_DIR = $(datadir)/errors
934 # Make location configure settings available to the code
935 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
937 snmp_core.o snmp_agent.o: ../snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
939 globals.cc: globals.h mk-globals-c.awk
940 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
942 ## Generate files containing string arrays for various enums....
943 hier_code.cc: hier_code.h mk-string-arrays.awk
944 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
946 err_type.cc: err_type.h mk-string-arrays.awk
947 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
949 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
950 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
952 lookup_t.cc: lookup_t.h mk-string-arrays.awk
953 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
955 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
956 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
958 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
959 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
962 ## other generated files...
964 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
965 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
967 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
968 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
970 ## If autodependency works well this is not needed anymore
971 cache_cf.o: cf_parser.cci
973 # cf_gen builds the configuration files.
974 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES)
975 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
977 # squid.conf.default is built by cf_gen when making cf_parser.cci
978 squid.conf.default squid.conf.documented: cf_parser.cci
981 cf_parser.cci: cf.data cf_gen$(EXEEXT)
982 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
984 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
985 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
988 ## FIXME: generate a sed command file from configure. Then this doesn't
989 ## depend on the Makefile.
990 cf.data: cf.data.pre Makefile
992 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
993 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
994 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
995 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
996 -e "s%[@]DEFAULT_DNSSERVER[@]%$(DEFAULT_DNSSERVER)%g" \
997 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
998 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
999 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
1000 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
1001 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
1002 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
1003 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
1004 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
1005 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1006 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1007 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1008 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1009 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1010 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1011 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1012 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1013 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1014 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1015 < $(srcdir)/cf.data.pre >$@
1017 repl_modules.cc: repl_modules.sh Makefile
1018 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1020 include $(top_srcdir)/doc/manuals/Substitute.am
1022 squid.8: $(srcdir)/squid.8.in Makefile
1023 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1026 EXTRA_DIST += squid.8.in
1027 CLEANFILES += squid.8
1029 install-data-local: install-sysconfDATA install-dataDATA
1030 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1031 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1033 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1034 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1036 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1037 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1039 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1040 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1042 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1043 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1044 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1045 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1046 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1047 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1048 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1050 uninstall-local: squid.conf.default
1051 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1052 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1054 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1055 DiskIO/DiskIOModules_gen.cc \
1058 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1059 cp $(top_srcdir)/test-suite/test_tools.cc .
1061 # stock tools for unit tests - library independent versions of dlink_list
1063 # globals.cc is needed by test_tools.cc.
1064 # Neither of these should be disted from here.
1071 tests/testBoilerplate \
1072 tests/testCacheManager \
1075 tests/testEventLoop \
1076 tests/test_http_range \
1077 tests/testHttpParser \
1078 tests/testHttpReply \
1079 tests/testHttpRequest \
1083 tests/testConfigParser \
1084 tests/testStatHist \
1087 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1088 TESTS += $(check_PROGRAMS)
1090 ### Template for new Unit Test Program
1091 ## - add tests/testX to check_PROGRAMS above.
1092 ## - copy template below and substitue X for class name
1093 ## - add other component .(h|cc) files needed to link and run tests
1095 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1097 #tests_testX_SOURCES=\
1100 # tests/testMain.cc \
1103 #nodist_tests_testX_SOURCES=\
1105 #tests_testX_LDFLAGS = $(LIBADD_DL)
1106 #tests_testX_LDADD=\
1107 # $(SQUID_CPPUNIT_LIBS) \
1108 # $(SQUID_CPPUNIT_LA) \
1110 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1113 # - add other component .(h|cc) files needed to link and run tests
1114 tests_testHttpReply_SOURCES=\
1120 HttpHeaderFieldStat.h \
1124 HttpHdrContRange.cc \
1125 HttpHdrContRange.h \
1129 HttpHdrScTarget.cc \
1134 HttpHeaderFieldInfo.h \
1136 HttpHeaderTools.cc \
1161 tests/stub_access_log.cc \
1164 tests/stub_cache_cf.cc \
1165 tests/stub_cache_manager.cc \
1166 tests/stub_debug.cc \
1167 tests/stub_errorpage.cc \
1168 tests/stub_HelperChildConfig.cc \
1169 tests/stub_libformat.cc \
1173 tests/stub_StatHist.cc \
1175 tests/stub_store.cc \
1176 tests/stub_store_stats.cc \
1178 tests/stub_tools.cc \
1179 tests/stub_HttpRequest.cc \
1180 tests/testHttpReply.cc \
1181 tests/testHttpReply.h \
1188 nodist_tests_testHttpReply_SOURCES=\
1190 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1191 tests_testHttpReply_LDADD=\
1200 $(top_builddir)/lib/libmisccontainers.la \
1201 $(top_builddir)/lib/libmiscencoding.la \
1202 $(top_builddir)/lib/libmiscutil.la \
1203 $(SQUID_CPPUNIT_LIBS) \
1204 $(SQUID_CPPUNIT_LA) \
1208 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1210 tests_testACLMaxUserIP_SOURCES= \
1215 DiskIO/ReadRequest.cc \
1216 DiskIO/WriteRequest.cc \
1221 HelperChildConfig.h \
1222 HelperChildConfig.cc \
1226 HttpHeaderFieldInfo.h \
1228 HttpHeaderTools.cc \
1229 HttpHdrContRange.cc \
1231 HttpHeaderFieldStat.h \
1236 HttpHdrScTarget.cc \
1238 HttpRequestMethod.cc \
1252 tests/stub_StatHist.cc \
1260 StoreMetaSTDLFS.cc \
1261 StoreMetaUnpacker.cc \
1264 StoreSwapLogData.cc \
1272 tests/stub_access_log.cc \
1275 tests/stub_cache_cf.cc \
1276 tests/stub_debug.cc \
1277 tests/stub_DelayId.cc \
1278 tests/stub_DiskIOModule.cc \
1279 tests/stub_errorpage.cc \
1282 tests/stub_HttpRequest.cc \
1283 tests/stub_HttpReply.cc \
1284 tests/stub_ipc_TypedMsgHdr.cc \
1285 tests/stub_libcomm.cc \
1286 tests/stub_libformat.cc \
1287 tests/stub_libsslsquid.cc \
1288 tests/stub_MemObject.cc \
1289 tests/stub_MemStore.cc \
1291 tests/stub_mime.cc \
1292 tests/stub_pconn.cc \
1293 tests/stub_Port.cc \
1295 tests/stub_store.cc \
1297 tests/stub_store_rebuild.cc \
1298 tests/stub_store_stats.cc \
1299 tests/stub_store_swapout.cc \
1301 tests/stub_tools.cc \
1302 tests/stub_cache_manager.cc \
1303 tests/stub_UdsOp.cc \
1304 tests/testACLMaxUserIP.cc \
1305 tests/testACLMaxUserIP.h \
1317 nodist_tests_testACLMaxUserIP_SOURCES= \
1319 tests_testACLMaxUserIP_LDADD= \
1333 $(top_builddir)/lib/libmisccontainers.la \
1334 $(top_builddir)/lib/libmiscencoding.la \
1335 $(top_builddir)/lib/libmiscutil.la \
1338 $(SQUID_CPPUNIT_LIBS) \
1342 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1343 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1344 ## $(SQUID_CPPUNIT_LA)
1346 ## a demonstration test that does nothing but shows the salient points
1347 ## involved in writing tests.
1348 tests_testBoilerplate_SOURCES = \
1349 tests/testBoilerplate.cc \
1351 tests/testBoilerplate.h \
1353 nodist_tests_testBoilerplate_SOURCES = \
1355 tests_testBoilerplate_LDADD= \
1356 $(SQUID_CPPUNIT_LIBS) \
1360 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1361 tests_testBoilerplate_DEPENDENCIES = \
1364 ## Tests of the CacheManager module.
1365 tests_testCacheManager_SOURCES = \
1367 $(ACL_REGISTRATION_SOURCES) \
1374 HttpRequestMethod.cc \
1378 tests/testCacheManager.cc \
1379 tests/testCacheManager.h \
1381 tests/stub_main_cc.cc \
1382 tests/stub_ipc_Forwarder.cc \
1383 tests/stub_store_stats.cc \
1400 ChunkedCodingParser.cc \
1405 client_side_reply.cc \
1406 client_side_request.cc \
1415 $(DELAY_POOL_SOURCE) \
1426 ExternalACLEntry.cc \
1441 HelperChildConfig.h \
1442 HelperChildConfig.cc \
1449 HttpHeaderFieldInfo.h \
1451 HttpHeaderTools.cc \
1452 HttpHeaderFieldStat.h \
1456 HttpHdrContRange.cc \
1459 HttpHdrScTarget.cc \
1488 peer_proxy_negotiate_auth.h \
1489 peer_proxy_negotiate_auth.cc \
1492 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) \
1794 ChunkedCodingParser.cc \
1799 client_side_reply.cc \
1800 client_side_request.cc \
1810 $(DELAY_POOL_SOURCE) \
1823 ExternalACLEntry.cc \
1838 HelperChildConfig.h \
1839 HelperChildConfig.cc \
1847 HttpHeaderFieldInfo.h \
1849 HttpHeaderTools.cc \
1850 HttpHeaderFieldStat.h \
1854 HttpHdrContRange.cc \
1857 HttpHdrScTarget.cc \
1865 HttpRequestMethod.cc \
1894 peer_proxy_negotiate_auth.h \
1895 peer_proxy_negotiate_auth.cc \
1898 peer_sourcehash.cc \
1936 StoreFileSystem.cc \
1941 StoreMetaSTDLFS.cc \
1942 StoreMetaUnpacker.cc \
1945 StoreSwapLogData.cc \
1948 tests/CapturingStoreEntry.h \
1949 tests/testEvent.cc \
1952 tests/stub_main_cc.cc \
1953 tests/stub_ipc_Forwarder.cc \
1954 tests/stub_store_stats.cc \
1972 nodist_tests_testEvent_SOURCES = \
1974 $(DISKIO_GEN_SOURCE)
1975 tests_testEvent_LDADD = \
1988 icmp/libicmp.la icmp/libicmp-core.la \
1991 format/libformat.la \
1993 $(ADAPTATION_LIBS) \
1996 $(top_builddir)/lib/libmisccontainers.la \
1997 $(top_builddir)/lib/libmiscencoding.la \
1998 $(top_builddir)/lib/libmiscutil.la \
2005 $(SQUID_CPPUNIT_LIBS) \
2006 $(SQUID_CPPUNIT_LA) \
2011 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2012 tests_testEvent_DEPENDENCIES = \
2016 ## Tests of the EventLoop module.
2017 tests_testEventLoop_SOURCES = \
2019 $(ACL_REGISTRATION_SOURCES) \
2035 ChunkedCodingParser.cc \
2040 client_side_reply.cc \
2041 client_side_request.cc \
2051 $(DELAY_POOL_SOURCE) \
2064 ExternalACLEntry.cc \
2079 HelperChildConfig.h \
2080 HelperChildConfig.cc \
2088 HttpHeaderFieldInfo.h \
2090 HttpHeaderTools.cc \
2091 HttpHeaderFieldStat.h \
2095 HttpHdrContRange.cc \
2098 HttpHdrScTarget.cc \
2106 HttpRequestMethod.cc \
2135 peer_proxy_negotiate_auth.h \
2136 peer_proxy_negotiate_auth.cc \
2139 peer_sourcehash.cc \
2176 StoreFileSystem.cc \
2181 StoreMetaSTDLFS.cc \
2182 StoreMetaUnpacker.cc \
2185 StoreSwapLogData.cc \
2190 tests/testEventLoop.cc \
2191 tests/testEventLoop.h \
2193 tests/stub_main_cc.cc \
2194 tests/stub_ipc_Forwarder.cc \
2195 tests/stub_store_stats.cc \
2213 nodist_tests_testEventLoop_SOURCES = \
2215 $(DISKIO_GEN_SOURCE)
2216 tests_testEventLoop_LDADD = \
2229 icmp/libicmp.la icmp/libicmp-core.la \
2232 format/libformat.la \
2234 $(ADAPTATION_LIBS) \
2237 $(top_builddir)/lib/libmisccontainers.la \
2238 $(top_builddir)/lib/libmiscencoding.la \
2239 $(top_builddir)/lib/libmiscutil.la \
2246 $(SQUID_CPPUNIT_LIBS) \
2247 $(SQUID_CPPUNIT_LA) \
2252 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2253 tests_testEventLoop_DEPENDENCIES = \
2257 tests_test_http_range_SOURCES = \
2259 $(ACL_REGISTRATION_SOURCES) \
2275 ChunkedCodingParser.cc \
2280 client_side_reply.cc \
2281 client_side_request.cc \
2291 $(DELAY_POOL_SOURCE) \
2302 ExternalACLEntry.cc \
2317 HelperChildConfig.h \
2318 HelperChildConfig.cc \
2324 HttpHeaderFieldStat.h \
2328 HttpHdrContRange.cc \
2331 HttpHdrScTarget.cc \
2334 HttpHeaderFieldInfo.h \
2336 HttpHeaderTools.cc \
2344 HttpRequestMethod.cc \
2372 peer_proxy_negotiate_auth.h \
2373 peer_proxy_negotiate_auth.cc \
2376 peer_sourcehash.cc \
2413 StoreFileSystem.cc \
2418 StoreMetaSTDLFS.cc \
2419 StoreMetaUnpacker.cc \
2422 StoreSwapLogData.cc \
2427 tests/test_http_range.cc \
2428 tests/stub_ipc_Forwarder.cc \
2429 tests/stub_main_cc.cc \
2430 tests/stub_MemStore.cc \
2431 tests/stub_store_stats.cc \
2448 nodist_tests_test_http_range_SOURCES = \
2450 $(DISKIO_GEN_SOURCE)
2451 tests_test_http_range_LDADD = \
2463 icmp/libicmp.la icmp/libicmp-core.la \
2466 format/libformat.la \
2470 $(ADAPTATION_LIBS) \
2477 $(top_builddir)/lib/libmisccontainers.la \
2478 $(top_builddir)/lib/libmiscencoding.la \
2479 $(top_builddir)/lib/libmiscutil.la \
2481 $(SQUID_CPPUNIT_LIBS) \
2482 $(SQUID_CPPUNIT_LA) \
2487 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2488 tests_test_http_range_DEPENDENCIES = \
2492 tests_testHttpParser_SOURCES = \
2504 tests/stub_cache_cf.cc \
2505 tests/stub_cache_manager.cc \
2506 tests/stub_debug.cc \
2507 tests/stub_event.cc \
2508 tests/stub_HelperChildConfig.cc \
2510 tests/stub_tools.cc \
2511 tests/testHttpParser.cc \
2512 tests/testHttpParser.h \
2517 nodist_tests_testHttpParser_SOURCES = \
2519 tests_testHttpParser_LDADD= \
2523 $(top_builddir)/lib/libmiscutil.la \
2524 $(SQUID_CPPUNIT_LIBS) \
2527 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2528 tests_testHttpParser_DEPENDENCIES = \
2531 ## Tests of the HttpRequest module.
2532 tests_testHttpRequest_SOURCES = \
2534 $(ACL_REGISTRATION_SOURCES) \
2540 HttpRequestMethod.cc \
2544 tests/testHttpRequest.h \
2545 tests/testHttpRequest.cc \
2546 tests/testHttpRequestMethod.h \
2547 tests/testHttpRequestMethod.cc \
2549 tests/stub_DiskIOModule.cc \
2550 tests/stub_main_cc.cc \
2551 tests/stub_ipc_Forwarder.cc \
2552 tests/stub_store_stats.cc \
2570 ChunkedCodingParser.cc \
2575 client_side_reply.cc \
2576 client_side_request.cc \
2585 $(DELAY_POOL_SOURCE) \
2594 ExternalACLEntry.cc \
2606 HelperChildConfig.h \
2607 HelperChildConfig.cc \
2615 HttpHeaderFieldInfo.h \
2617 HttpHeaderTools.cc \
2618 HttpHeaderFieldStat.h \
2622 HttpHdrContRange.cc \
2625 HttpHdrScTarget.cc \
2654 peer_proxy_negotiate_auth.h \
2655 peer_proxy_negotiate_auth.cc \
2658 peer_sourcehash.cc \
2694 StoreFileSystem.cc \
2699 StoreMetaSTDLFS.cc \
2700 StoreMetaUnpacker.cc \
2703 StoreSwapLogData.cc \
2724 nodist_tests_testHttpRequest_SOURCES = \
2726 tests_testHttpRequest_LDADD = \
2742 icmp/libicmp.la icmp/libicmp-core.la \
2745 format/libformat.la \
2747 $(ADAPTATION_LIBS) \
2750 $(top_builddir)/lib/libmisccontainers.la \
2751 $(top_builddir)/lib/libmiscencoding.la \
2752 $(top_builddir)/lib/libmiscutil.la \
2755 $(SQUID_CPPUNIT_LIBS) \
2756 $(SQUID_CPPUNIT_LA) \
2761 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2762 tests_testHttpRequest_DEPENDENCIES = \
2766 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2767 ## first line - what we are testing.
2768 tests_testStore_SOURCES= \
2775 $(DELAY_POOL_SOURCE) \
2778 DiskIO/ReadRequest.cc \
2779 DiskIO/WriteRequest.cc \
2785 HttpHeaderFieldStat.h \
2789 HttpHdrContRange.cc \
2792 HttpHdrScTarget.cc \
2793 HttpHeaderFieldInfo.h \
2795 HttpHeaderTools.cc \
2799 HttpRequestMethod.cc \
2830 StoreMetaSTDLFS.cc \
2831 StoreMetaUnpacker.cc \
2834 StoreSwapLogData.cc \
2841 tests/CapturingStoreEntry.h \
2843 tests/stub_access_log.cc \
2847 tests/stub_cache_cf.cc \
2848 tests/stub_cache_manager.cc \
2849 tests/stub_client_side_request.cc \
2850 tests/stub_comm.cc \
2851 tests/stub_debug.cc \
2852 tests/stub_DiskIOModule.cc \
2853 tests/stub_errorpage.cc \
2856 tests/stub_helper.cc \
2857 tests/stub_HelperChildConfig.cc \
2858 tests/stub_http.cc \
2859 tests/stub_libformat.cc \
2862 tests/stub_HttpReply.cc \
2863 tests/stub_HttpRequest.cc \
2864 tests/stub_libcomm.cc \
2865 tests/stub_MemStore.cc \
2867 tests/stub_mime.cc \
2868 tests/stub_Port.cc \
2869 tests/stub_store_client.cc \
2870 tests/stub_store_stats.cc \
2872 tests/stub_store_rebuild.cc \
2873 tests/stub_store_swapout.cc \
2875 tests/stub_tools.cc \
2876 tests/stub_UdsOp.cc \
2878 tests/testStore.cc \
2880 tests/testStoreEntryStream.cc \
2881 tests/testStoreEntryStream.h \
2882 tests/testStoreController.cc \
2883 tests/testStoreController.h \
2884 tests/testStoreHashIndex.cc \
2885 tests/testStoreHashIndex.h \
2886 tests/testStoreSupport.cc \
2887 tests/testStoreSupport.h \
2888 tests/TestSwapDir.cc \
2889 tests/TestSwapDir.h \
2896 nodist_tests_testStore_SOURCES= \
2902 tests_testStore_LDADD= \
2918 $(top_builddir)/lib/libmisccontainers.la \
2919 $(top_builddir)/lib/libmiscencoding.la \
2920 $(top_builddir)/lib/libmiscutil.la \
2922 $(SQUID_CPPUNIT_LIBS) \
2925 DnsLookupDetails.o \
2928 tests_testStore_LDFLAGS = $(LIBADD_DL)
2929 tests_testStore_DEPENDENCIES = \
2932 ## string needs mem.cc.
2933 ## mem.cc needs ClientInfo.h
2934 ## libsquid pulls in SquidConfig and children. stub them.
2935 tests_testString_SOURCES = \
2942 tests/testString.cc \
2943 tests/testString.h \
2946 tests/stub_cache_cf.cc \
2947 tests/stub_cache_manager.cc \
2948 tests/stub_debug.cc \
2949 tests/stub_HelperChildConfig.cc \
2951 tests/stub_tools.cc \
2955 nodist_tests_testString_SOURCES = \
2957 tests_testString_LDADD = \
2961 $(top_builddir)/lib/libmiscutil.la \
2963 $(SQUID_CPPUNIT_LIBS) \
2967 tests_testString_LDFLAGS = $(LIBADD_DL)
2968 tests_testString_DEPENDENCIES = \
2990 tests_testUfs_SOURCES = \
2994 tests/stub_cache_manager.cc \
2995 tests/stub_client_db.cc \
2996 tests/stub_HelperChildConfig.cc \
2999 tests/stub_MemStore.cc \
3000 tests/stub_pconn.cc \
3001 tests/stub_Port.cc \
3002 tests/stub_UdsOp.cc \
3004 tests/stub_internal.cc \
3005 tests/stub_libformat.cc \
3007 tests/stub_store_rebuild.cc \
3008 tests/stub_store_stats.cc \
3027 StoreSwapLogData.cc \
3032 StoreMetaSTDLFS.cc \
3033 StoreMetaUnpacker.cc \
3036 StoreFileSystem.cc \
3043 $(DELAY_POOL_SOURCE) \
3053 HttpRequestMethod.cc \
3062 tests/stub_cache_cf.cc \
3063 tests/stub_helper.cc \
3066 tests/stub_debug.cc \
3067 tests/stub_client_side_request.cc \
3068 tests/stub_http.cc \
3072 tests/stub_mime.cc \
3073 HttpHeaderFieldInfo.h \
3075 HttpHeaderTools.cc \
3082 HttpHdrContRange.cc \
3084 HttpHeaderFieldStat.h \
3089 HttpHdrScTarget.cc \
3099 tests/stub_errorpage.cc \
3100 tests/stub_HttpRequest.cc \
3102 tests/stub_access_log.cc \
3105 tests/stub_store_client.cc \
3107 tests/stub_tools.cc \
3108 tests/testStoreSupport.cc \
3109 tests/testStoreSupport.h \
3116 nodist_tests_testUfs_SOURCES = \
3118 $(DISKIO_GEN_SOURCE) \
3122 tests_testUfs_LDADD = \
3124 DnsLookupDetails.o \
3147 $(top_builddir)/lib/libmisccontainers.la \
3148 $(top_builddir)/lib/libmiscencoding.la \
3149 $(top_builddir)/lib/libmiscutil.la \
3151 $(SQUID_CPPUNIT_LIBS) \
3155 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3156 tests_testUfs_DEPENDENCIES = \
3159 tests_testRock_SOURCES = \
3174 HttpHeaderFieldStat.h \
3178 HttpHdrContRange.cc \
3181 HttpHdrScTarget.cc \
3184 HttpHeaderFieldInfo.h \
3186 HttpHeaderTools.cc \
3189 HttpRequestMethod.cc \
3208 tests/stub_StatHist.cc \
3212 StoreFileSystem.cc \
3217 StoreMetaSTDLFS.cc \
3219 StoreMetaUnpacker.cc \
3221 StoreSwapLogData.cc \
3235 tests/testStoreSupport.cc \
3236 tests/testStoreSupport.h \
3238 tests/stub_access_log.cc \
3241 tests/stub_cache_cf.cc \
3242 tests/stub_cache_manager.cc \
3244 tests/stub_client_db.cc \
3245 tests/stub_client_side_request.cc \
3246 tests/stub_debug.cc \
3247 tests/stub_errorpage.cc \
3248 tests/stub_HelperChildConfig.cc \
3249 tests/stub_http.cc \
3250 tests/stub_HttpRequest.cc \
3253 tests/stub_ipcache.cc \
3254 tests/stub_libformat.cc \
3255 tests/stub_libicmp.cc \
3256 tests/stub_MemStore.cc \
3258 tests/stub_mime.cc \
3259 tests/stub_Port.cc \
3260 tests/stub_pconn.cc \
3261 tests/stub_store_client.cc \
3263 tests/stub_store_rebuild.cc \
3264 tests/stub_store_stats.cc \
3266 tests/stub_tools.cc \
3272 $(DELAY_POOL_SOURCE) \
3275 nodist_tests_testRock_SOURCES = \
3276 $(DISKIO_GEN_SOURCE) \
3281 tests_testRock_LDADD = \
3300 $(top_builddir)/lib/libmisccontainers.la \
3301 $(top_builddir)/lib/libmiscencoding.la \
3302 $(top_builddir)/lib/libmiscutil.la \
3304 $(SQUID_CPPUNIT_LIBS) \
3308 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3309 tests_testRock_DEPENDENCIES = \
3312 tests_testCoss_SOURCES = \
3316 tests/stub_cache_manager.cc \
3318 tests/stub_client_db.cc \
3319 tests/stub_debug.cc \
3320 tests/stub_HelperChildConfig.cc \
3322 tests/stub_internal.cc \
3324 tests/stub_pconn.cc \
3326 tests/stub_store_rebuild.cc \
3327 tests/stub_store_stats.cc \
3343 StoreSwapLogData.cc \
3348 StoreMetaSTDLFS.cc \
3349 StoreMetaUnpacker.cc \
3352 StoreFileSystem.cc \
3359 $(DELAY_POOL_SOURCE) \
3369 HttpRequestMethod.cc \
3378 tests/stub_cache_cf.cc \
3379 tests/stub_helper.cc \
3382 tests/stub_client_side_request.cc \
3383 tests/stub_http.cc \
3387 tests/stub_mime.cc \
3388 HttpHeaderFieldInfo.h \
3390 HttpHeaderTools.cc \
3397 HttpHdrContRange.cc \
3399 HttpHeaderFieldStat.h \
3404 HttpHdrScTarget.cc \
3409 tests/stub_StatHist.cc \
3410 tests/stub_errorpage.cc \
3411 tests/stub_HttpRequest.cc \
3413 tests/stub_access_log.cc \
3416 tests/stub_MemStore.cc \
3417 tests/stub_Port.cc \
3418 tests/stub_store_client.cc \
3419 tests/stub_store_stats.cc \
3421 tests/stub_tools.cc \
3422 tests/stub_UdsOp.cc \
3423 tests/testStoreSupport.cc \
3424 tests/testStoreSupport.h \
3431 nodist_tests_testCoss_SOURCES = \
3436 $(DISKIO_GEN_SOURCE)
3437 tests_testCoss_LDADD = \
3461 $(top_builddir)/lib/libmisccontainers.la \
3462 $(top_builddir)/lib/libmiscencoding.la \
3463 $(top_builddir)/lib/libmiscutil.la \
3464 $(SQUID_CPPUNIT_LIBS) \
3469 tests_testCoss_LDFLAGS = $(LIBADD_DL)
3470 tests_testCoss_DEPENDENCIES = \
3473 tests_testNull_SOURCES = \
3478 tests/stub_internal.cc \
3480 tests/stub_store_rebuild.cc \
3481 tests/stub_store_stats.cc \
3497 StoreSwapLogData.cc \
3502 StoreMetaSTDLFS.cc \
3503 StoreMetaUnpacker.cc \
3506 StoreFileSystem.cc \
3513 $(DELAY_POOL_SOURCE) \
3523 HttpRequestMethod.cc \
3532 tests/stub_cache_cf.cc \
3533 tests/stub_helper.cc \
3536 tests/stub_comm.cc \
3537 tests/stub_debug.cc \
3538 tests/stub_client_side_request.cc \
3539 tests/stub_http.cc \
3543 tests/stub_mime.cc \
3544 HttpHeaderFieldInfo.h \
3546 HttpHeaderTools.cc \
3553 HttpHdrContRange.cc \
3555 HttpHeaderFieldStat.h \
3560 HttpHdrScTarget.cc \
3565 tests/stub_StatHist.cc \
3566 tests/stub_errorpage.cc \
3567 tests/stub_HttpRequest.cc \
3569 tests/stub_access_log.cc \
3572 tests/stub_store_client.cc \
3573 tests/stub_store_stats.cc \
3575 tests/stub_tools.cc \
3576 tests/testStoreSupport.cc \
3577 tests/testStoreSupport.h \
3584 nodist_tests_testNull_SOURCES = \
3586 $(DISKIO_GEN_SOURCE)
3587 tests_testNull_LDADD = \
3606 $(top_builddir)/lib/libmisccontainers.la \
3607 $(top_builddir)/lib/libmiscencoding.la \
3608 $(top_builddir)/lib/libmiscutil.la \
3609 $(SQUID_CPPUNIT_LIBS) \
3613 tests_testNull_LDFLAGS = $(LIBADD_DL)
3614 tests_testNull_DEPENDENCIES = \
3617 ## Tests of the URL module.
3618 ## TODO: Trim this down once the insanity is over.
3619 tests_testURL_SOURCES = \
3621 $(ACL_REGISTRATION_SOURCES) \
3637 ChunkedCodingParser.cc \
3642 client_side_reply.cc \
3643 client_side_request.cc \
3652 $(DELAY_POOL_SOURCE) \
3655 DiskIO/ReadRequest.cc \
3656 DiskIO/WriteRequest.cc \
3664 ExternalACLEntry.cc \
3678 HelperChildConfig.h \
3679 HelperChildConfig.cc \
3685 HttpHeaderFieldStat.h \
3689 HttpHdrContRange.cc \
3692 HttpHdrScTarget.cc \
3695 HttpHeaderFieldInfo.h \
3697 HttpHeaderTools.cc \
3705 HttpRequestMethod.cc \
3734 peer_proxy_negotiate_auth.h \
3735 peer_proxy_negotiate_auth.cc \
3738 peer_sourcehash.cc \
3755 tests/stub_StatHist.cc \
3774 StoreFileSystem.cc \
3779 StoreMetaSTDLFS.cc \
3780 StoreMetaUnpacker.cc \
3783 StoreSwapLogData.cc \
3789 tests/stub_debug.cc \
3790 tests/stub_DiskIOModule.cc \
3791 tests/stub_main_cc.cc \
3792 tests/stub_ipc_Forwarder.cc \
3793 tests/stub_store_stats.cc \
3796 tests/testURLScheme.cc \
3797 tests/testURLScheme.h \
3815 nodist_tests_testURL_SOURCES = \
3817 tests_testURL_LDADD = \
3833 icmp/libicmp.la icmp/libicmp-core.la \
3837 format/libformat.la \
3840 $(ADAPTATION_LIBS) \
3843 $(top_builddir)/lib/libmisccontainers.la \
3844 $(top_builddir)/lib/libmiscencoding.la \
3845 $(top_builddir)/lib/libmiscutil.la \
3847 $(SQUID_CPPUNIT_LIBS) \
3848 $(SQUID_CPPUNIT_LA) \
3853 tests_testURL_LDFLAGS = $(LIBADD_DL)
3854 tests_testURL_DEPENDENCIES = \
3858 tests_testConfigParser_SOURCES = \
3866 tests/testConfigParser.cc \
3867 tests/testConfigParser.h \
3870 tests/stub_cache_cf.cc \
3871 tests/stub_cache_manager.cc \
3872 tests/stub_debug.cc \
3873 tests/stub_HelperChildConfig.cc \
3875 tests/stub_tools.cc \
3879 nodist_tests_testConfigParser_SOURCES = \
3881 tests_testConfigParser_LDADD = \
3885 $(top_builddir)/lib/libmiscutil.la \
3887 $(SQUID_CPPUNIT_LIBS) \
3891 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3892 tests_testConfigParser_DEPENDENCIES = \
3895 tests_testStatHist_SOURCES = \
3901 tests/stub_cache_manager.cc \
3902 tests/stub_comm.cc \
3903 tests/stub_debug.cc \
3904 tests/stub_DelayId.cc \
3905 tests/stub_HelperChildConfig.cc \
3908 tests/stub_MemObject.cc \
3910 tests/stub_mime.cc \
3911 tests/stub_pconn.cc \
3912 tests/stub_stmem.cc \
3914 tests/stub_store.cc \
3915 tests/stub_store_stats.cc \
3917 tests/stub_tools.cc \
3919 tests/testStatHist.cc \
3920 tests/testStatHist.h \
3922 nodist_tests_testStatHist_SOURCES = \
3924 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3925 tests_testStatHist_LDADD = \
3927 $(top_builddir)/lib/libmiscutil.la \
3928 $(SQUID_CPPUNIT_LIBS) \
3929 $(SQUID_CPPUNIT_LA) \
3931 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3934 TESTS += testHeaders
3936 ## Special Universal .h dependency test script
3937 ## aborts if error encountered
3938 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3939 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3940 ## src/repl/ has no .h files and its own makefile.
3942 CLEANFILES += testHeaders