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 += http ip icmp ident log ipc mgr
47 DIST_SUBDIRS += http ip icmp ident log ipc mgr
66 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
68 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
77 DIST_SUBDIRS += adaptation
83 $(top_builddir)/lib/libTrie/libTrie.a
84 ESI_LIBS = $(ESI_LOCAL_LIBS) \
92 DELAY_POOL_ALL_SOURCE = \
116 ClientDelayConfig.cc \
119 if ENABLE_DELAY_POOLS
120 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
125 if ENABLE_XPROF_STATS
126 XPROF_STATS_SOURCE = ProfStats.cc
132 HTCPSOURCE = htcp.cc htcp.h
136 LEAKFINDERSOURCE = LeakFinder.cc
142 UNLINKDSOURCE = unlinkd.h unlinkd.cc
145 UNLINKDSOURCE = unlinkd.h
154 if ENABLE_WIN32SPECIFIC
155 WIN32_SOURCE = win32.cc
156 WINSVC_SOURCE = WinSvc.cc
163 IPC_SOURCE = SquidIpc.h ipc_win32.cc
165 IPC_SOURCE = SquidIpc.h ipc.cc
168 AIO_WIN32_ALL_SOURCES = \
169 DiskIO/AIO/aio_win32.cc \
170 DiskIO/AIO/aio_win32.h
172 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
178 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
179 DiskIO/DiskThreads/CommIO.cc \
180 DiskIO/DiskThreads/CommIO.h
182 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
183 DiskIO/DiskThreads/CommIO.cc \
184 DiskIO/DiskThreads/CommIO.h
187 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
188 libMmapped.a libIpcIo.a
189 noinst_LIBRARIES = $(DISK_LIBS)
190 noinst_LTLIBRARIES = libsquid.la
193 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 \
359 FtpGatewayServer.cc \
368 HelperChildConfig.h \
369 HelperChildConfig.cc \
373 HierarchyLogEntry.h \
378 HttpHeaderFieldStat.h \
387 HttpHdrContRange.cc \
394 HttpHeaderFieldInfo.h \
410 HttpRequestMethod.cc \
411 HttpRequestMethod.h \
423 $(LEAKFINDERSOURCE) \
453 $(XPROF_STATS_SOURCE) \
458 peer_proxy_negotiate_auth.h \
459 peer_proxy_negotiate_auth.cc \
527 StoreMetaUnpacker.cc \
528 StoreMetaUnpacker.h \
536 StoreSwapLogData.cc \
569 EXTRA_squid_SOURCES = \
570 $(AIO_WIN32_ALL_SOURCES) \
573 $(DELAY_POOL_ALL_SOURCE) \
577 DnsLookupDetails.cc \
588 $(WIN32_ALL_SOURCE) \
589 $(LOADABLE_MODULES_SOURCES)
592 client_side_request.cci \
614 CLEANFILES += $(BUILT_SOURCES)
616 nodist_squid_SOURCES = \
617 $(DISKIO_GEN_SOURCE) \
637 http/libsquid-http.la \
638 icmp/libicmp.la icmp/libicmp-core.la \
640 format/libformat.la \
651 $(top_builddir)/lib/libmisccontainers.la \
652 $(top_builddir)/lib/libmiscencoding.la \
653 $(top_builddir)/lib/libmiscutil.la \
660 squid_DEPENDENCIES = \
678 format/libformat.la \
682 if USE_LOADABLE_MODULES
683 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
684 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
685 squid_LDFLAGS = -export-dynamic -dlopen force
686 ## when static module linking is supported and enabled:
687 ## squid_LDFLAGS = -all-static -dlopen self
689 ## LTDL headers require their local include path...
690 INCLUDES += $(INCLTDL)
693 ## Kerberos libraries require their include path...
694 INCLUDES += $(KRB5INCS)
697 unlinkd_SOURCES = unlinkd_daemon.cc
702 ## dnsserver is a standalone helper. Do not link to any internal libraries
703 dnsserver_SOURCES = dnsserver.cc
708 recv_announce_SOURCES = recv-announce.cc
710 ## What requires what..
711 ## many things want ACLChecklist.cc
712 ## ACLChecklist.cc wants AuthUserRequest.cc
713 ## ACLChecklist.cc wants AuthScheme.cc
714 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
715 ## ACLProxyAuth.cc wants ACLUserData
716 ## ACLProxyAuth.cc wants ACLRegexData
717 ## cache_cf.cc wants $(AUTH_LIBS)
718 ## cache_cf.cc wants Swapdir
719 ## cache_cf.cc wants AnyP::PortCfg
720 ## client_side wants client_db
721 ## client_db wants SNMP_SOURCE
722 ## snmp_core wants ACLStringData
723 ## SwapDir wants ConfigOption
724 ## tools.cc wants ip/libip.la
725 ## client_side.cc wants ip/libip.la
726 ## mem.cc wants ClientInfo.h
727 ## libbase.la wants cbdata.*
728 ## libbase.la wants MemBuf.*
748 StoreMetaUnpacker.cc \
757 HelperChildConfig.h \
758 tests/stub_HelperChildConfig.cc \
759 HttpRequestMethod.cc \
787 ufsdump_DEPENDENCIES = \
805 nodist_ufsdump_SOURCES = \
810 squid.conf.documented \
835 include $(srcdir)/tests/Stub.list
844 mk-string-arrays.pl \
845 mk-string-arrays.awk \
852 $(AIO_WIN32_SOURCES) \
853 DiskIO/AIO/async_io.h \
854 DiskIO/AIO/AIODiskFile.cc \
855 DiskIO/AIO/AIODiskFile.h \
856 DiskIO/AIO/AIODiskIOStrategy.cc \
857 DiskIO/AIO/AIODiskIOStrategy.h \
858 DiskIO/AIO/AIODiskIOModule.cc \
859 DiskIO/AIO/AIODiskIOModule.h
861 libBlocking_a_SOURCES = \
862 DiskIO/Blocking/BlockingFile.cc \
863 DiskIO/Blocking/BlockingFile.h \
864 DiskIO/Blocking/BlockingIOStrategy.cc \
865 DiskIO/Blocking/BlockingIOStrategy.h \
866 DiskIO/Blocking/BlockingDiskIOModule.cc \
867 DiskIO/Blocking/BlockingDiskIOModule.h
869 libMmapped_a_SOURCES = \
870 DiskIO/Mmapped/MmappedFile.cc \
871 DiskIO/Mmapped/MmappedFile.h \
872 DiskIO/Mmapped/MmappedIOStrategy.cc \
873 DiskIO/Mmapped/MmappedIOStrategy.h \
874 DiskIO/Mmapped/MmappedDiskIOModule.cc \
875 DiskIO/Mmapped/MmappedDiskIOModule.h
877 libIpcIo_a_SOURCES = \
878 DiskIO/IpcIo/IpcIoFile.cc \
879 DiskIO/IpcIo/IpcIoFile.h \
880 DiskIO/IpcIo/IpcIoIOStrategy.cc \
881 DiskIO/IpcIo/IpcIoIOStrategy.h \
882 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
883 DiskIO/IpcIo/IpcIoDiskIOModule.h
885 libDiskDaemon_a_SOURCES = \
886 DiskIO/DiskDaemon/DiskdFile.cc \
887 DiskIO/DiskDaemon/DiskdFile.h \
888 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
889 DiskIO/DiskDaemon/DiskdIOStrategy.h \
890 DiskIO/DiskDaemon/diomsg.h \
891 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
892 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
893 DiskIO/DiskDaemon/DiskdAction.cc \
894 DiskIO/DiskDaemon/DiskdAction.h
896 libDiskThreads_a_SOURCES = \
898 DiskIO/DiskThreads/async_io.cc \
899 DiskIO/DiskThreads/DiskThreads.h \
900 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
901 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
902 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
903 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
904 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
905 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
907 EXTRA_libDiskThreads_a_SOURCES = \
908 DiskIO/DiskThreads/aiops.cc \
909 DiskIO/DiskThreads/aiops_win32.cc \
910 DiskIO/DiskThreads/CommIO.cc \
911 DiskIO/DiskThreads/CommIO.h
913 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
914 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
915 DiskIO_DiskDaemon_diskd_LDADD = \
916 $(top_builddir)/lib/libmisccontainers.la \
917 $(top_builddir)/lib/libmiscencoding.la \
918 $(top_builddir)/lib/libmiscutil.la \
923 DEFAULT_HTTP_PORT = 3128
924 DEFAULT_ICP_PORT = 3130
925 DEFAULT_PREFIX = $(prefix)
926 DEFAULT_CONFIG_DIR = $(sysconfdir)
927 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
928 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
929 DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
930 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
931 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
932 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
933 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
934 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
935 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
936 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
937 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
938 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
939 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
940 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
941 DEFAULT_ICON_DIR = $(datadir)/icons
942 DEFAULT_ERROR_DIR = $(datadir)/errors
944 # Make location configure settings available to the code
945 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
947 snmp_core.o snmp_agent.o: ../snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
949 globals.cc: globals.h mk-globals-c.awk
950 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
952 ## Generate files containing string arrays for various enums....
953 hier_code.cc: hier_code.h mk-string-arrays.awk
954 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
956 err_type.cc: err_type.h mk-string-arrays.awk
957 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
959 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
960 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
962 LogTags.cc: LogTags.h mk-string-arrays.awk
963 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
965 lookup_t.cc: lookup_t.h mk-string-arrays.awk
966 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
968 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
969 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
971 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
972 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
975 ## other generated files...
977 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
978 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
980 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
981 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
983 ## If autodependency works well this is not needed anymore
984 cache_cf.o: cf_parser.cci
986 # cf_gen builds the configuration files.
987 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
988 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
990 # squid.conf.default is built by cf_gen when making cf_parser.cci
991 squid.conf.default squid.conf.documented: cf_parser.cci
994 cf_parser.cci: cf.data cf_gen$(EXEEXT)
995 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
997 # The cf_gen_defines.cci is auto-generated and does not exist when the
998 # dependencies computed. We need to add its include files (autoconf.h) here
999 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
1000 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
1003 ## FIXME: generate a sed command file from configure. Then this doesn't
1004 ## depend on the Makefile.
1005 cf.data: cf.data.pre Makefile
1007 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
1008 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
1009 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
1010 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
1011 -e "s%[@]DEFAULT_DNSSERVER[@]%$(DEFAULT_DNSSERVER)%g" \
1012 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
1013 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
1014 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
1015 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
1016 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
1017 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
1018 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
1019 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
1020 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
1021 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1022 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1023 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1024 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1025 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1026 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1027 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1028 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1029 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1030 < $(srcdir)/cf.data.pre >$@
1032 repl_modules.cc: repl_modules.sh Makefile
1033 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1035 include $(top_srcdir)/doc/manuals/Substitute.am
1037 squid.8: $(srcdir)/squid.8.in Makefile
1038 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1041 EXTRA_DIST += squid.8.in
1042 CLEANFILES += squid.8
1044 install-data-local: install-sysconfDATA install-dataDATA
1045 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1046 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1048 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1049 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1051 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1052 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1054 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1055 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1057 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1058 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1059 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1060 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1061 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1062 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1063 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1065 uninstall-local: squid.conf.default
1066 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1067 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1069 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1070 DiskIO/DiskIOModules_gen.cc \
1073 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1074 cp $(top_srcdir)/test-suite/test_tools.cc .
1076 # stock tools for unit tests - library independent versions of dlink_list
1078 # globals.cc is needed by test_tools.cc.
1079 # Neither of these should be disted from here.
1086 tests/testBoilerplate \
1087 tests/testCacheManager \
1090 tests/testEventLoop \
1091 tests/test_http_range \
1092 tests/testHttpParser \
1093 tests/testHttpReply \
1094 tests/testHttpRequest \
1098 tests/testConfigParser \
1099 tests/testStatHist \
1103 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1104 TESTS += $(check_PROGRAMS)
1106 ### Template for new Unit Test Program
1107 ## - add tests/testX to check_PROGRAMS above.
1108 ## - copy template below and substitue X for class name
1109 ## - add other component .(h|cc) files needed to link and run tests
1111 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1113 #tests_testX_SOURCES=\
1116 # tests/testMain.cc \
1119 #nodist_tests_testX_SOURCES=\
1121 #tests_testX_LDFLAGS = $(LIBADD_DL)
1122 #tests_testX_LDADD=\
1123 # $(SQUID_CPPUNIT_LIBS) \
1124 # $(SQUID_CPPUNIT_LA) \
1126 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1129 # - add other component .(h|cc) files needed to link and run tests
1130 tests_testHttpReply_SOURCES=\
1136 tests/stub_fatal.cc \
1139 HttpHeaderFieldStat.h \
1143 HttpHdrContRange.cc \
1144 HttpHdrContRange.h \
1148 HttpHdrScTarget.cc \
1153 HttpHeaderFieldInfo.h \
1155 HttpHeaderTools.cc \
1177 tests/stub_access_log.cc \
1180 tests/stub_cache_cf.cc \
1181 tests/stub_cache_manager.cc \
1182 tests/stub_debug.cc \
1183 tests/stub_errorpage.cc \
1184 tests/stub_HelperChildConfig.cc \
1185 tests/stub_libformat.cc \
1189 tests/stub_StatHist.cc \
1191 tests/stub_store.cc \
1192 tests/stub_store_stats.cc \
1194 tests/stub_tools.cc \
1195 tests/stub_HttpRequest.cc \
1196 tests/testHttpReply.cc \
1197 tests/testHttpReply.h \
1204 nodist_tests_testHttpReply_SOURCES=\
1206 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1207 tests_testHttpReply_LDADD=\
1208 http/libsquid-http.la \
1217 $(top_builddir)/lib/libmisccontainers.la \
1218 $(top_builddir)/lib/libmiscencoding.la \
1219 $(top_builddir)/lib/libmiscutil.la \
1220 $(SQUID_CPPUNIT_LIBS) \
1221 $(SQUID_CPPUNIT_LA) \
1225 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1227 tests_testACLMaxUserIP_SOURCES= \
1232 DiskIO/ReadRequest.cc \
1233 DiskIO/WriteRequest.cc \
1237 tests/stub_fatal.cc \
1240 HelperChildConfig.h \
1241 HelperChildConfig.cc \
1245 HttpHeaderFieldInfo.h \
1247 HttpHeaderTools.cc \
1248 HttpHdrContRange.cc \
1250 HttpHeaderFieldStat.h \
1255 HttpHdrScTarget.cc \
1257 HttpRequestMethod.cc \
1273 tests/stub_StatHist.cc \
1281 StoreMetaSTDLFS.cc \
1282 StoreMetaUnpacker.cc \
1285 StoreSwapLogData.cc \
1293 tests/stub_access_log.cc \
1296 tests/stub_cache_cf.cc \
1297 tests/stub_client_side.cc \
1298 tests/stub_debug.cc \
1299 tests/stub_DelayId.cc \
1300 tests/stub_DiskIOModule.cc \
1301 tests/stub_errorpage.cc \
1304 tests/stub_HttpRequest.cc \
1305 tests/stub_HttpReply.cc \
1306 tests/stub_ipc_TypedMsgHdr.cc \
1307 tests/stub_libcomm.cc \
1308 tests/stub_libformat.cc \
1309 tests/stub_libsslsquid.cc \
1310 tests/stub_MemObject.cc \
1311 tests/stub_MemStore.cc \
1313 tests/stub_mime.cc \
1314 tests/stub_pconn.cc \
1315 tests/stub_Port.cc \
1317 tests/stub_store.cc \
1319 tests/stub_store_rebuild.cc \
1320 tests/stub_store_stats.cc \
1321 tests/stub_store_swapout.cc \
1323 tests/stub_tools.cc \
1324 tests/stub_cache_manager.cc \
1325 tests/stub_UdsOp.cc \
1326 tests/testACLMaxUserIP.cc \
1327 tests/testACLMaxUserIP.h \
1339 nodist_tests_testACLMaxUserIP_SOURCES= \
1341 tests_testACLMaxUserIP_LDADD= \
1342 http/libsquid-http.la \
1356 $(top_builddir)/lib/libmisccontainers.la \
1357 $(top_builddir)/lib/libmiscencoding.la \
1358 $(top_builddir)/lib/libmiscutil.la \
1361 $(SQUID_CPPUNIT_LIBS) \
1365 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1366 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1367 ## $(SQUID_CPPUNIT_LA)
1369 ## a demonstration test that does nothing but shows the salient points
1370 ## involved in writing tests.
1371 tests_testBoilerplate_SOURCES = \
1372 tests/testBoilerplate.cc \
1374 tests/testBoilerplate.h \
1376 nodist_tests_testBoilerplate_SOURCES = \
1378 tests_testBoilerplate_LDADD= \
1379 $(SQUID_CPPUNIT_LIBS) \
1383 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1384 tests_testBoilerplate_DEPENDENCIES = \
1387 ## Tests of the CacheManager module.
1388 tests_testCacheManager_SOURCES = \
1390 $(ACL_REGISTRATION_SOURCES) \
1397 HttpRequestMethod.cc \
1401 tests/testCacheManager.cc \
1402 tests/testCacheManager.h \
1404 tests/stub_main_cc.cc \
1405 tests/stub_ipc_Forwarder.cc \
1406 tests/stub_store_stats.cc \
1421 ChunkedCodingParser.cc \
1426 client_side_reply.cc \
1427 client_side_request.cc \
1436 $(DELAY_POOL_SOURCE) \
1447 ExternalACLEntry.cc \
1449 tests/stub_fatal.cc \
1465 HelperChildConfig.h \
1466 HelperChildConfig.cc \
1476 HttpHeaderFieldInfo.h \
1478 HttpHeaderTools.cc \
1479 HttpHeaderFieldStat.h \
1483 HttpHdrContRange.cc \
1486 HttpHdrScTarget.cc \
1519 peer_proxy_negotiate_auth.h \
1520 peer_proxy_negotiate_auth.cc \
1523 peer_sourcehash.cc \
1543 tests/stub_StatHist.cc \
1562 StoreFileSystem.cc \
1567 StoreMetaSTDLFS.cc \
1568 StoreMetaUnpacker.cc \
1571 StoreSwapLogData.cc \
1590 nodist_tests_testCacheManager_SOURCES = \
1592 $(DISKIO_GEN_SOURCE)
1593 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1594 tests_testCacheManager_LDADD = \
1595 http/libsquid-http.la \
1608 icmp/libicmp.la icmp/libicmp-core.la \
1610 format/libformat.la \
1614 $(ADAPTATION_LIBS) \
1621 $(top_builddir)/lib/libmisccontainers.la \
1622 $(top_builddir)/lib/libmiscencoding.la \
1623 $(top_builddir)/lib/libmiscutil.la \
1625 $(SQUID_CPPUNIT_LIBS) \
1626 $(SQUID_CPPUNIT_LA) \
1631 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1632 tests_testCacheManager_DEPENDENCIES = \
1636 tests_testDiskIO_SOURCES = \
1644 $(DELAY_POOL_SOURCE) \
1652 tests/stub_fatal.cc \
1661 HttpHeaderFieldStat.h \
1665 HttpHdrContRange.cc \
1667 HttpHdrScTarget.cc \
1669 HttpHeaderFieldInfo.h \
1671 HttpHeaderTools.cc \
1676 HttpRequestMethod.cc \
1698 tests/stub_StatHist.cc \
1700 StoreFileSystem.cc \
1705 StoreMetaSTDLFS.cc \
1706 StoreMetaUnpacker.cc \
1709 StoreSwapLogData.cc \
1723 tests/stub_access_log.cc \
1727 tests/stub_cache_cf.cc \
1728 tests/stub_cache_manager.cc \
1729 tests/stub_client_db.cc \
1730 client_side_request.h \
1731 tests/stub_client_side_request.cc \
1732 tests/stub_debug.cc \
1733 tests/stub_errorpage.cc \
1734 tests/stub_helper.cc \
1735 tests/stub_HelperChildConfig.cc \
1736 tests/stub_HttpRequest.cc \
1737 tests/stub_http.cc \
1740 tests/stub_internal.cc \
1742 tests/stub_ipcache.cc \
1743 tests/stub_libeui.cc \
1744 tests/stub_libformat.cc \
1745 tests/stub_libicmp.cc \
1746 tests/stub_MemStore.cc \
1748 tests/stub_mime.cc \
1749 tests/stub_pconn.cc \
1750 tests/stub_Port.cc \
1751 tests/stub_store_client.cc \
1752 tests/stub_store_stats.cc \
1754 tests/stub_store_rebuild.cc \
1755 tests/stub_UdsOp.cc \
1756 tests/testDiskIO.cc \
1757 tests/testDiskIO.h \
1759 tests/testStoreSupport.cc \
1760 tests/testStoreSupport.h \
1770 nodist_tests_testDiskIO_SOURCES= \
1772 $(DISKIO_GEN_SOURCE) \
1776 tests_testDiskIO_LDADD = \
1777 http/libsquid-http.la \
1780 DnsLookupDetails.o \
1800 $(top_builddir)/lib/libmisccontainers.la \
1801 $(top_builddir)/lib/libmiscencoding.la \
1802 $(top_builddir)/lib/libmiscutil.la \
1804 $(SQUID_CPPUNIT_LIBS) \
1809 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1810 tests_testDiskIO_DEPENDENCIES = \
1815 ## Tests of the Even module.
1816 tests_testEvent_SOURCES = \
1818 $(ACL_REGISTRATION_SOURCES) \
1832 ChunkedCodingParser.cc \
1837 client_side_reply.cc \
1838 client_side_request.cc \
1848 $(DELAY_POOL_SOURCE) \
1861 ExternalACLEntry.cc \
1864 tests/stub_fatal.cc \
1879 HelperChildConfig.h \
1880 HelperChildConfig.cc \
1890 HttpHeaderFieldInfo.h \
1892 HttpHeaderTools.cc \
1893 HttpHeaderFieldStat.h \
1897 HttpHdrContRange.cc \
1900 HttpHdrScTarget.cc \
1908 HttpRequestMethod.cc \
1941 peer_proxy_negotiate_auth.h \
1942 peer_proxy_negotiate_auth.cc \
1945 peer_sourcehash.cc \
1984 StoreFileSystem.cc \
1989 StoreMetaSTDLFS.cc \
1990 StoreMetaUnpacker.cc \
1993 StoreSwapLogData.cc \
1996 tests/CapturingStoreEntry.h \
1997 tests/testEvent.cc \
2000 tests/stub_main_cc.cc \
2001 tests/stub_ipc_Forwarder.cc \
2002 tests/stub_libeui.cc \
2003 tests/stub_store_stats.cc \
2021 nodist_tests_testEvent_SOURCES = \
2023 $(DISKIO_GEN_SOURCE)
2024 tests_testEvent_LDADD = \
2025 http/libsquid-http.la \
2037 icmp/libicmp.la icmp/libicmp-core.la \
2040 format/libformat.la \
2042 $(ADAPTATION_LIBS) \
2045 $(top_builddir)/lib/libmisccontainers.la \
2046 $(top_builddir)/lib/libmiscencoding.la \
2047 $(top_builddir)/lib/libmiscutil.la \
2054 $(SQUID_CPPUNIT_LIBS) \
2055 $(SQUID_CPPUNIT_LA) \
2060 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2061 tests_testEvent_DEPENDENCIES = \
2065 ## Tests of the EventLoop module.
2066 tests_testEventLoop_SOURCES = \
2068 $(ACL_REGISTRATION_SOURCES) \
2082 ChunkedCodingParser.cc \
2087 client_side_reply.cc \
2088 client_side_request.cc \
2098 $(DELAY_POOL_SOURCE) \
2111 ExternalACLEntry.cc \
2114 tests/stub_fatal.cc \
2129 HelperChildConfig.h \
2130 HelperChildConfig.cc \
2140 HttpHeaderFieldInfo.h \
2142 HttpHeaderTools.cc \
2143 HttpHeaderFieldStat.h \
2147 HttpHdrContRange.cc \
2150 HttpHdrScTarget.cc \
2158 HttpRequestMethod.cc \
2191 peer_proxy_negotiate_auth.h \
2192 peer_proxy_negotiate_auth.cc \
2195 peer_sourcehash.cc \
2233 StoreFileSystem.cc \
2238 StoreMetaSTDLFS.cc \
2239 StoreMetaUnpacker.cc \
2242 StoreSwapLogData.cc \
2247 tests/testEventLoop.cc \
2248 tests/testEventLoop.h \
2250 tests/stub_main_cc.cc \
2251 tests/stub_ipc_Forwarder.cc \
2252 tests/stub_libeui.cc \
2253 tests/stub_store_stats.cc \
2271 nodist_tests_testEventLoop_SOURCES = \
2273 $(DISKIO_GEN_SOURCE)
2274 tests_testEventLoop_LDADD = \
2275 http/libsquid-http.la \
2287 icmp/libicmp.la icmp/libicmp-core.la \
2290 format/libformat.la \
2292 $(ADAPTATION_LIBS) \
2295 $(top_builddir)/lib/libmisccontainers.la \
2296 $(top_builddir)/lib/libmiscencoding.la \
2297 $(top_builddir)/lib/libmiscutil.la \
2304 $(SQUID_CPPUNIT_LIBS) \
2305 $(SQUID_CPPUNIT_LA) \
2310 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2311 tests_testEventLoop_DEPENDENCIES = \
2315 tests_test_http_range_SOURCES = \
2317 $(ACL_REGISTRATION_SOURCES) \
2331 ChunkedCodingParser.cc \
2336 client_side_reply.cc \
2337 client_side_request.cc \
2347 $(DELAY_POOL_SOURCE) \
2358 ExternalACLEntry.cc \
2361 tests/stub_fatal.cc \
2376 HelperChildConfig.h \
2377 HelperChildConfig.cc \
2385 HttpHeaderFieldStat.h \
2389 HttpHdrContRange.cc \
2392 HttpHdrScTarget.cc \
2395 HttpHeaderFieldInfo.h \
2397 HttpHeaderTools.cc \
2405 HttpRequestMethod.cc \
2437 peer_proxy_negotiate_auth.h \
2438 peer_proxy_negotiate_auth.cc \
2441 peer_sourcehash.cc \
2479 StoreFileSystem.cc \
2484 StoreMetaSTDLFS.cc \
2485 StoreMetaUnpacker.cc \
2488 StoreSwapLogData.cc \
2493 tests/test_http_range.cc \
2494 tests/stub_ipc_Forwarder.cc \
2495 tests/stub_libeui.cc \
2496 tests/stub_main_cc.cc \
2497 tests/stub_MemStore.cc \
2498 tests/stub_store_stats.cc \
2515 nodist_tests_test_http_range_SOURCES = \
2517 $(DISKIO_GEN_SOURCE)
2518 tests_test_http_range_LDADD = \
2519 http/libsquid-http.la \
2530 icmp/libicmp.la icmp/libicmp-core.la \
2533 format/libformat.la \
2537 $(ADAPTATION_LIBS) \
2544 $(top_builddir)/lib/libmisccontainers.la \
2545 $(top_builddir)/lib/libmiscencoding.la \
2546 $(top_builddir)/lib/libmiscutil.la \
2548 $(SQUID_CPPUNIT_LIBS) \
2549 $(SQUID_CPPUNIT_LA) \
2554 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2555 tests_test_http_range_DEPENDENCIES = \
2558 tests_testHttpParser_SOURCES = \
2569 tests/stub_cache_cf.cc \
2570 tests/stub_cache_manager.cc \
2571 tests/stub_debug.cc \
2572 tests/stub_event.cc \
2573 tests/stub_HelperChildConfig.cc \
2575 tests/stub_tools.cc \
2576 tests/testHttpParser.cc \
2577 tests/testHttpParser.h \
2582 nodist_tests_testHttpParser_SOURCES = \
2584 tests_testHttpParser_LDADD= \
2585 http/libsquid-http.la \
2589 $(top_builddir)/lib/libmiscutil.la \
2590 $(SQUID_CPPUNIT_LIBS) \
2593 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2594 tests_testHttpParser_DEPENDENCIES = \
2597 ## Tests of the HttpRequest module.
2598 tests_testHttpRequest_SOURCES = \
2600 $(ACL_REGISTRATION_SOURCES) \
2606 HttpRequestMethod.cc \
2610 tests/testHttpRequest.h \
2611 tests/testHttpRequest.cc \
2612 tests/testHttpRequestMethod.h \
2613 tests/testHttpRequestMethod.cc \
2615 tests/stub_DiskIOModule.cc \
2616 tests/stub_main_cc.cc \
2617 tests/stub_ipc_Forwarder.cc \
2618 tests/stub_libeui.cc \
2619 tests/stub_store_stats.cc \
2635 ChunkedCodingParser.cc \
2640 client_side_reply.cc \
2641 client_side_request.cc \
2650 $(DELAY_POOL_SOURCE) \
2659 ExternalACLEntry.cc \
2661 tests/stub_fatal.cc \
2674 HelperChildConfig.h \
2675 HelperChildConfig.cc \
2685 HttpHeaderFieldInfo.h \
2687 HttpHeaderTools.cc \
2688 HttpHeaderFieldStat.h \
2692 HttpHdrContRange.cc \
2695 HttpHdrScTarget.cc \
2728 peer_proxy_negotiate_auth.h \
2729 peer_proxy_negotiate_auth.cc \
2732 peer_sourcehash.cc \
2769 StoreFileSystem.cc \
2774 StoreMetaSTDLFS.cc \
2775 StoreMetaUnpacker.cc \
2778 StoreSwapLogData.cc \
2799 nodist_tests_testHttpRequest_SOURCES = \
2801 tests_testHttpRequest_LDADD = \
2816 icmp/libicmp.la icmp/libicmp-core.la \
2819 format/libformat.la \
2820 http/libsquid-http.la \
2822 $(ADAPTATION_LIBS) \
2825 $(top_builddir)/lib/libmisccontainers.la \
2826 $(top_builddir)/lib/libmiscencoding.la \
2827 $(top_builddir)/lib/libmiscutil.la \
2830 $(SQUID_CPPUNIT_LIBS) \
2831 $(SQUID_CPPUNIT_LA) \
2836 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2837 tests_testHttpRequest_DEPENDENCIES = \
2841 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2842 ## first line - what we are testing.
2843 tests_testStore_SOURCES= \
2850 $(DELAY_POOL_SOURCE) \
2853 DiskIO/ReadRequest.cc \
2854 DiskIO/WriteRequest.cc \
2859 tests/stub_fatal.cc \
2862 HttpHeaderFieldStat.h \
2866 HttpHdrContRange.cc \
2869 HttpHdrScTarget.cc \
2870 HttpHeaderFieldInfo.h \
2872 HttpHeaderTools.cc \
2876 HttpRequestMethod.cc \
2909 StoreMetaSTDLFS.cc \
2910 StoreMetaUnpacker.cc \
2913 StoreSwapLogData.cc \
2920 tests/CapturingStoreEntry.h \
2922 tests/stub_access_log.cc \
2926 tests/stub_cache_cf.cc \
2927 tests/stub_cache_manager.cc \
2928 tests/stub_client_side_request.cc \
2929 tests/stub_comm.cc \
2930 tests/stub_debug.cc \
2931 tests/stub_DiskIOModule.cc \
2932 tests/stub_errorpage.cc \
2936 tests/stub_helper.cc \
2937 tests/stub_HelperChildConfig.cc \
2938 tests/stub_http.cc \
2939 tests/stub_libeui.cc \
2940 tests/stub_libformat.cc \
2943 tests/stub_HttpReply.cc \
2944 tests/stub_HttpRequest.cc \
2945 tests/stub_libcomm.cc \
2946 tests/stub_MemStore.cc \
2948 tests/stub_mime.cc \
2949 tests/stub_Port.cc \
2950 tests/stub_store_client.cc \
2951 tests/stub_store_stats.cc \
2953 tests/stub_store_rebuild.cc \
2954 tests/stub_store_swapout.cc \
2956 tests/stub_tools.cc \
2957 tests/stub_UdsOp.cc \
2959 tests/testStore.cc \
2961 tests/testStoreEntryStream.cc \
2962 tests/testStoreEntryStream.h \
2963 tests/testStoreController.cc \
2964 tests/testStoreController.h \
2965 tests/testStoreHashIndex.cc \
2966 tests/testStoreHashIndex.h \
2967 tests/testStoreSupport.cc \
2968 tests/testStoreSupport.h \
2969 tests/TestSwapDir.cc \
2970 tests/TestSwapDir.h \
2977 nodist_tests_testStore_SOURCES= \
2983 tests_testStore_LDADD= \
2984 http/libsquid-http.la \
2999 $(top_builddir)/lib/libmisccontainers.la \
3000 $(top_builddir)/lib/libmiscencoding.la \
3001 $(top_builddir)/lib/libmiscutil.la \
3003 $(SQUID_CPPUNIT_LIBS) \
3006 DnsLookupDetails.o \
3009 tests_testStore_LDFLAGS = $(LIBADD_DL)
3010 tests_testStore_DEPENDENCIES = \
3013 ## string needs mem.cc.
3014 ## mem.cc needs ClientInfo.h
3015 ## libsquid pulls in SquidConfig and children. stub them.
3016 tests_testString_SOURCES = \
3023 tests/testString.cc \
3024 tests/testString.h \
3027 tests/stub_cache_cf.cc \
3028 tests/stub_cache_manager.cc \
3029 tests/stub_debug.cc \
3030 tests/stub_HelperChildConfig.cc \
3032 tests/stub_tools.cc \
3036 nodist_tests_testString_SOURCES = \
3038 tests_testString_LDADD = \
3042 $(top_builddir)/lib/libmiscutil.la \
3044 $(SQUID_CPPUNIT_LIBS) \
3048 tests_testString_LDFLAGS = $(LIBADD_DL)
3049 tests_testString_DEPENDENCIES = \
3070 tests_testUfs_SOURCES = \
3074 tests/stub_cache_manager.cc \
3075 tests/stub_client_db.cc \
3076 tests/stub_HelperChildConfig.cc \
3079 tests/stub_libeui.cc \
3080 tests/stub_MemStore.cc \
3081 tests/stub_pconn.cc \
3082 tests/stub_Port.cc \
3083 tests/stub_UdsOp.cc \
3085 tests/stub_internal.cc \
3086 tests/stub_libformat.cc \
3088 tests/stub_store_rebuild.cc \
3089 tests/stub_store_stats.cc \
3091 tests/stub_fatal.cc \
3113 StoreSwapLogData.cc \
3118 StoreMetaSTDLFS.cc \
3119 StoreMetaUnpacker.cc \
3122 StoreFileSystem.cc \
3129 $(DELAY_POOL_SOURCE) \
3139 HttpRequestMethod.cc \
3148 tests/stub_cache_cf.cc \
3149 tests/stub_helper.cc \
3152 tests/stub_debug.cc \
3153 tests/stub_client_side_request.cc \
3154 tests/stub_http.cc \
3158 tests/stub_mime.cc \
3159 HttpHeaderFieldInfo.h \
3161 HttpHeaderTools.cc \
3168 HttpHdrContRange.cc \
3170 HttpHeaderFieldStat.h \
3175 HttpHdrScTarget.cc \
3185 tests/stub_errorpage.cc \
3186 tests/stub_HttpRequest.cc \
3188 tests/stub_access_log.cc \
3191 tests/stub_store_client.cc \
3193 tests/stub_tools.cc \
3194 tests/testStoreSupport.cc \
3195 tests/testStoreSupport.h \
3202 nodist_tests_testUfs_SOURCES = \
3204 $(DISKIO_GEN_SOURCE) \
3208 tests_testUfs_LDADD = \
3209 http/libsquid-http.la \
3211 DnsLookupDetails.o \
3233 $(top_builddir)/lib/libmisccontainers.la \
3234 $(top_builddir)/lib/libmiscencoding.la \
3235 $(top_builddir)/lib/libmiscutil.la \
3237 $(SQUID_CPPUNIT_LIBS) \
3241 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3242 tests_testUfs_DEPENDENCIES = \
3245 check_PROGRAMS += testRefCount
3246 testRefCount_SOURCES= \
3249 tests/stub_cbdata.cc \
3250 tests/stub_debug.cc \
3251 tests/stub_MemBuf.cc \
3252 tests/testRefCount.cc
3253 testRefCount_LDADD = \
3255 $(top_builddir)/lib/libmiscutil.la \
3259 tests_testRock_SOURCES = \
3271 tests/stub_fatal.cc \
3278 HttpHeaderFieldStat.h \
3282 HttpHdrContRange.cc \
3285 HttpHdrScTarget.cc \
3288 HttpHeaderFieldInfo.h \
3290 HttpHeaderTools.cc \
3293 HttpRequestMethod.cc \
3313 tests/stub_StatHist.cc \
3317 StoreFileSystem.cc \
3322 StoreMetaSTDLFS.cc \
3324 StoreMetaUnpacker.cc \
3326 StoreSwapLogData.cc \
3340 tests/testStoreSupport.cc \
3341 tests/testStoreSupport.h \
3343 tests/stub_access_log.cc \
3346 tests/stub_cache_cf.cc \
3347 tests/stub_cache_manager.cc \
3349 tests/stub_client_db.cc \
3350 tests/stub_client_side_request.cc \
3351 tests/stub_debug.cc \
3352 tests/stub_errorpage.cc \
3353 tests/stub_HelperChildConfig.cc \
3354 tests/stub_http.cc \
3355 tests/stub_HttpRequest.cc \
3358 tests/stub_ipcache.cc \
3359 tests/stub_libeui.cc \
3360 tests/stub_libformat.cc \
3361 tests/stub_libicmp.cc \
3362 tests/stub_MemStore.cc \
3364 tests/stub_mime.cc \
3365 tests/stub_Port.cc \
3366 tests/stub_pconn.cc \
3367 tests/stub_store_client.cc \
3369 tests/stub_store_rebuild.cc \
3370 tests/stub_store_stats.cc \
3372 tests/stub_tools.cc \
3378 $(DELAY_POOL_SOURCE) \
3381 nodist_tests_testRock_SOURCES = \
3382 $(DISKIO_GEN_SOURCE) \
3387 tests_testRock_LDADD = \
3388 http/libsquid-http.la \
3406 $(top_builddir)/lib/libmisccontainers.la \
3407 $(top_builddir)/lib/libmiscencoding.la \
3408 $(top_builddir)/lib/libmiscutil.la \
3410 $(SQUID_CPPUNIT_LIBS) \
3414 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3415 tests_testRock_DEPENDENCIES = \
3418 tests_testCoss_SOURCES = \
3422 tests/stub_cache_manager.cc \
3424 tests/stub_client_db.cc \
3425 tests/stub_debug.cc \
3426 tests/stub_HelperChildConfig.cc \
3428 tests/stub_internal.cc \
3430 tests/stub_libeui.cc \
3431 tests/stub_pconn.cc \
3433 tests/stub_store_rebuild.cc \
3434 tests/stub_store_stats.cc \
3436 tests/stub_fatal.cc \
3453 StoreSwapLogData.cc \
3458 StoreMetaSTDLFS.cc \
3459 StoreMetaUnpacker.cc \
3462 StoreFileSystem.cc \
3469 $(DELAY_POOL_SOURCE) \
3479 HttpRequestMethod.cc \
3488 tests/stub_cache_cf.cc \
3489 tests/stub_helper.cc \
3492 tests/stub_client_side_request.cc \
3493 tests/stub_http.cc \
3497 tests/stub_mime.cc \
3498 HttpHeaderFieldInfo.h \
3500 HttpHeaderTools.cc \
3507 HttpHdrContRange.cc \
3509 HttpHeaderFieldStat.h \
3514 HttpHdrScTarget.cc \
3519 tests/stub_StatHist.cc \
3520 tests/stub_errorpage.cc \
3521 tests/stub_HttpRequest.cc \
3523 tests/stub_access_log.cc \
3526 tests/stub_MemStore.cc \
3527 tests/stub_Port.cc \
3528 tests/stub_store_client.cc \
3529 tests/stub_store_stats.cc \
3531 tests/stub_tools.cc \
3532 tests/stub_UdsOp.cc \
3533 tests/testStoreSupport.cc \
3534 tests/testStoreSupport.h \
3541 nodist_tests_testCoss_SOURCES = \
3546 $(DISKIO_GEN_SOURCE)
3547 tests_testCoss_LDADD = \
3570 $(top_builddir)/lib/libmisccontainers.la \
3571 $(top_builddir)/lib/libmiscencoding.la \
3572 $(top_builddir)/lib/libmiscutil.la \
3573 $(SQUID_CPPUNIT_LIBS) \
3578 tests_testCoss_LDFLAGS = $(LIBADD_DL)
3579 tests_testCoss_DEPENDENCIES = \
3582 ## Tests of the URL module.
3583 ## TODO: Trim this down once the insanity is over.
3584 tests_testURL_SOURCES = \
3586 $(ACL_REGISTRATION_SOURCES) \
3600 ChunkedCodingParser.cc \
3605 client_side_reply.cc \
3606 client_side_request.cc \
3615 $(DELAY_POOL_SOURCE) \
3618 DiskIO/ReadRequest.cc \
3619 DiskIO/WriteRequest.cc \
3627 ExternalACLEntry.cc \
3629 tests/stub_fatal.cc \
3644 HelperChildConfig.h \
3645 HelperChildConfig.cc \
3653 HttpHeaderFieldStat.h \
3657 HttpHdrContRange.cc \
3660 HttpHdrScTarget.cc \
3663 HttpHeaderFieldInfo.h \
3665 HttpHeaderTools.cc \
3673 HttpRequestMethod.cc \
3706 peer_proxy_negotiate_auth.h \
3707 peer_proxy_negotiate_auth.cc \
3710 peer_sourcehash.cc \
3728 tests/stub_StatHist.cc \
3747 StoreFileSystem.cc \
3752 StoreMetaSTDLFS.cc \
3753 StoreMetaUnpacker.cc \
3756 StoreSwapLogData.cc \
3762 tests/stub_debug.cc \
3763 tests/stub_DiskIOModule.cc \
3764 tests/stub_main_cc.cc \
3765 tests/stub_ipc_Forwarder.cc \
3766 tests/stub_store_stats.cc \
3769 tests/testURLScheme.cc \
3770 tests/testURLScheme.h \
3788 nodist_tests_testURL_SOURCES = \
3790 tests_testURL_LDADD = \
3791 http/libsquid-http.la \
3807 icmp/libicmp.la icmp/libicmp-core.la \
3811 format/libformat.la \
3814 $(ADAPTATION_LIBS) \
3817 $(top_builddir)/lib/libmisccontainers.la \
3818 $(top_builddir)/lib/libmiscencoding.la \
3819 $(top_builddir)/lib/libmiscutil.la \
3821 $(SQUID_CPPUNIT_LIBS) \
3822 $(SQUID_CPPUNIT_LA) \
3827 tests_testURL_LDFLAGS = $(LIBADD_DL)
3828 tests_testURL_DEPENDENCIES = \
3832 tests_testConfigParser_SOURCES = \
3840 tests/stub_fatal.cc \
3842 tests/testConfigParser.cc \
3843 tests/testConfigParser.h \
3846 tests/stub_cache_cf.cc \
3847 tests/stub_cache_manager.cc \
3848 tests/stub_debug.cc \
3849 tests/stub_HelperChildConfig.cc \
3851 tests/stub_tools.cc \
3855 nodist_tests_testConfigParser_SOURCES = \
3857 tests_testConfigParser_LDADD = \
3861 $(top_builddir)/lib/libmiscutil.la \
3863 $(SQUID_CPPUNIT_LIBS) \
3867 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3868 tests_testConfigParser_DEPENDENCIES = \
3871 tests_testStatHist_SOURCES = \
3874 tests/stub_fatal.cc \
3879 tests/stub_cache_manager.cc \
3880 tests/stub_comm.cc \
3881 tests/stub_debug.cc \
3882 tests/stub_DelayId.cc \
3883 tests/stub_HelperChildConfig.cc \
3886 tests/stub_MemObject.cc \
3888 tests/stub_mime.cc \
3889 tests/stub_pconn.cc \
3890 tests/stub_stmem.cc \
3892 tests/stub_store.cc \
3893 tests/stub_store_stats.cc \
3895 tests/stub_tools.cc \
3897 tests/testStatHist.cc \
3898 tests/testStatHist.h \
3900 nodist_tests_testStatHist_SOURCES = \
3902 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3903 tests_testStatHist_LDADD = \
3905 $(top_builddir)/lib/libmiscutil.la \
3906 $(top_builddir)/lib/libmisccontainers.la \
3907 $(SQUID_CPPUNIT_LIBS) \
3908 $(SQUID_CPPUNIT_LA) \
3910 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3912 tests_testVector_SOURCES = \
3913 tests/testVector.cc \
3915 tests/testVector.h \
3917 nodist_tests_testVector_SOURCES = \
3919 tests_testVector_LDADD= \
3920 $(SQUID_CPPUNIT_LIBS) \
3923 tests_testVector_LDFLAGS = $(LIBADD_DL)
3924 tests_testVector_DEPENDENCIES = \
3928 TESTS += testHeaders
3930 ## Special Universal .h dependency test script
3931 ## aborts if error encountered
3932 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3933 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3934 ## src/repl/ has no .h files and its own makefile.
3936 CLEANFILES += testHeaders