2 # Makefile for the Squid Object Cache server
4 # Uncomment and customize the following to suit your needs:
7 include $(top_srcdir)/src/Common.am
9 AUTOMAKE_OPTIONS = subdir-objects
15 DNSSOURCE = dns_internal.cc
29 LOADABLE_MODULES_SOURCES = \
35 SUBDIRS = base anyp comm eui acl format fs repl
36 DIST_SUBDIRS = base anyp comm eui acl format fs repl
40 AUTH_LIBS= auth/libauth.la
41 AUTH_ACL_LIBS= auth/libacls.la
42 check_PROGRAMS+= tests/testACLMaxUserIP
46 SUBDIRS += ip icmp ident log ipc mgr
47 DIST_SUBDIRS += ip icmp ident log ipc mgr
64 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
66 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
75 DIST_SUBDIRS += adaptation
81 $(top_builddir)/lib/libTrie/src/libTrie.a
82 ESI_LIBS = $(ESI_LOCAL_LIBS) \
90 DELAY_POOL_ALL_SOURCE = \
114 ClientDelayConfig.cc \
117 if ENABLE_DELAY_POOLS
118 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
123 if ENABLE_XPROF_STATS
124 XPROF_STATS_SOURCE = ProfStats.cc
130 HTCPSOURCE = htcp.cc htcp.h
134 LEAKFINDERSOURCE = LeakFinder.cc
140 UNLINKDSOURCE = unlinkd.cc
150 if ENABLE_WIN32SPECIFIC
151 WIN32_SOURCE = win32.cc
152 WINSVC_SOURCE = WinSvc.cc
159 IPC_SOURCE = ipc_win32.cc
164 AIO_WIN32_ALL_SOURCES = \
165 DiskIO/AIO/aio_win32.cc \
166 DiskIO/AIO/aio_win32.h
168 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
174 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
175 DiskIO/DiskThreads/CommIO.cc \
176 DiskIO/DiskThreads/CommIO.h
178 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
179 DiskIO/DiskThreads/CommIO.cc \
180 DiskIO/DiskThreads/CommIO.h
183 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
184 libMmapped.a libIpcIo.a
185 noinst_LIBRARIES = $(DISK_LIBS)
186 noinst_LTLIBRARIES = libsquid.la
189 DiskIO/DiskDaemon/diskd \
199 ## cfgen is used when building squid
200 ## ufsdump is a debug utility, it is possibly useful for end users with cache
201 ## corruption, but at this point we do not install it.
216 cf_gen_SOURCES = cf_gen.cc
217 nodist_cf_gen_HEADER = cf_gen_defines.cci
218 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
220 cf_gen.$(OBJEXT): cf_gen_defines.cci
222 ## cf_gen.cc needs src/cf_gen_defines.cci
223 INCLUDES += -I$(top_builddir)/src
226 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
229 DiskIO/DiskIOModule.cc \
230 DiskIO/ReadRequest.cc \
231 DiskIO/ReadRequest.h \
232 DiskIO/WriteRequest.cc \
233 DiskIO/WriteRequest.h \
235 DiskIO/DiskIOStrategy.h \
236 DiskIO/IORequestor.h \
237 DiskIO/DiskIOModule.h \
240 DISKIO_GEN_SOURCE = \
241 DiskIO/DiskIOModules_gen.cc
243 DiskIO/DiskIOModules_gen.cc: Makefile
244 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
247 # common library for all the binaries and tests. This is kindof a catch all
248 # and smaller libraries split from this are encouraged. Using lt convenience
249 # libraries, dependencies should not be a problem either.
250 libsquid_la_SOURCES = \
261 $(ACL_REGISTRATION_SOURCES) \
273 ChunkedCodingParser.cc \
274 ChunkedCodingParser.h \
278 client_side_reply.cc \
279 client_side_reply.h \
280 client_side_request.cc \
281 client_side_request.h \
286 ClientRequestContext.h \
289 CompletionDispatcher.cc \
290 CompletionDispatcher.h \
304 $(DELAY_POOL_SOURCE) \
323 ExternalACLEntry.cc \
341 HelperChildConfig.h \
342 HelperChildConfig.cc \
344 HierarchyLogEntry.h \
359 HttpHdrContRange.cc \
379 HttpRequestMethod.cc \
380 HttpRequestMethod.h \
391 $(LEAKFINDERSOURCE) \
410 $(XPROF_STATS_SOURCE) \
415 peer_proxy_negotiate_auth.cc \
468 StoreMetaUnpacker.cc \
469 StoreMetaUnpacker.h \
477 StoreSwapLogData.cc \
506 EXTRA_squid_SOURCES = \
507 $(AIO_WIN32_ALL_SOURCES) \
510 $(DELAY_POOL_ALL_SOURCE) \
514 DnsLookupDetails.cc \
525 $(WIN32_ALL_SOURCE) \
526 $(LOADABLE_MODULES_SOURCES)
529 client_side_request.cci \
550 CLEANFILES += $(BUILT_SOURCES)
552 nodist_squid_SOURCES = \
553 $(DISKIO_GEN_SOURCE) \
574 icmp/libicmp.la icmp/libicmp-core.la \
576 format/libformat.la \
587 $(top_builddir)/lib/libmisccontainers.la \
588 $(top_builddir)/lib/libmiscencoding.la \
589 $(top_builddir)/lib/libmiscutil.la \
596 squid_DEPENDENCIES = \
614 format/libformat.la \
618 if USE_LOADABLE_MODULES
619 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
620 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
621 squid_LDFLAGS = -export-dynamic -dlopen force
622 ## when static module linking is supported and enabled:
623 ## squid_LDFLAGS = -all-static -dlopen self
625 ## LTDL headers require their local include path...
626 INCLUDES += $(INCLTDL)
629 ## Kerberos libraries require their include path...
630 INCLUDES += $(KRB5INCS)
633 unlinkd_SOURCES = unlinkd_daemon.cc
638 ## dnsserver is a standalone helper. Do not link to any internal libraries
639 dnsserver_SOURCES = dnsserver.cc
644 recv_announce_SOURCES = recv-announce.cc
646 ## What requires what..
647 ## many things want ACLChecklist.cc
648 ## ACLChecklist.cc wants AuthUserRequest.cc
649 ## ACLChecklist.cc wants AuthScheme.cc
650 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
651 ## ACLProxyAuth.cc wants ACLUserData
652 ## ACLProxyAuth.cc wants ACLRegexData
653 ## cache_cf.cc wants $(AUTH_LIBS)
654 ## cache_cf.cc wants Swapdir
655 ## cache_cf.cc wants AnyP::PortCfg
656 ## client_side wants client_db
657 ## client_db wants SNMP_SOURCE
658 ## snmp_core wants ACLStringData
659 ## SwapDir wants ConfigOption
660 ## tools.cc wants ip/libip.la
661 ## client_side.cc wants ip/libip.la
662 ## mem.cc wants ClientInfo.h
663 ## libbase.la wants cbdata.*
664 ## libbase.la wants MemBuf.*
665 ## structs.h wants HelperChildConfig.* (stub it)
682 StoreMetaUnpacker.cc \
691 HelperChildConfig.h \
692 tests/stub_HelperChildConfig.cc \
693 HttpRequestMethod.cc \
720 ufsdump_DEPENDENCIES = \
738 nodist_ufsdump_SOURCES = \
743 squid.conf.documented \
768 include $(srcdir)/tests/Stub.list
777 mk-string-arrays.pl \
778 mk-string-arrays.awk \
785 $(AIO_WIN32_SOURCES) \
786 DiskIO/AIO/async_io.h \
787 DiskIO/AIO/AIODiskFile.cc \
788 DiskIO/AIO/AIODiskFile.h \
789 DiskIO/AIO/AIODiskIOStrategy.cc \
790 DiskIO/AIO/AIODiskIOStrategy.h \
791 DiskIO/AIO/AIODiskIOModule.cc \
792 DiskIO/AIO/AIODiskIOModule.h
794 libBlocking_a_SOURCES = \
795 DiskIO/Blocking/BlockingFile.cc \
796 DiskIO/Blocking/BlockingFile.h \
797 DiskIO/Blocking/BlockingIOStrategy.cc \
798 DiskIO/Blocking/BlockingIOStrategy.h \
799 DiskIO/Blocking/BlockingDiskIOModule.cc \
800 DiskIO/Blocking/BlockingDiskIOModule.h
802 libMmapped_a_SOURCES = \
803 DiskIO/Mmapped/MmappedFile.cc \
804 DiskIO/Mmapped/MmappedFile.h \
805 DiskIO/Mmapped/MmappedIOStrategy.cc \
806 DiskIO/Mmapped/MmappedIOStrategy.h \
807 DiskIO/Mmapped/MmappedDiskIOModule.cc \
808 DiskIO/Mmapped/MmappedDiskIOModule.h
810 libIpcIo_a_SOURCES = \
811 DiskIO/IpcIo/IpcIoFile.cc \
812 DiskIO/IpcIo/IpcIoFile.h \
813 DiskIO/IpcIo/IpcIoIOStrategy.cc \
814 DiskIO/IpcIo/IpcIoIOStrategy.h \
815 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
816 DiskIO/IpcIo/IpcIoDiskIOModule.h
818 libDiskDaemon_a_SOURCES = \
819 DiskIO/DiskDaemon/DiskdFile.cc \
820 DiskIO/DiskDaemon/DiskdFile.h \
821 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
822 DiskIO/DiskDaemon/DiskdIOStrategy.h \
823 DiskIO/DiskDaemon/diomsg.h \
824 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
825 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
826 DiskIO/DiskDaemon/DiskdAction.cc \
827 DiskIO/DiskDaemon/DiskdAction.h
829 libDiskThreads_a_SOURCES = \
831 DiskIO/DiskThreads/async_io.cc \
832 DiskIO/DiskThreads/DiskThreads.h \
833 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
834 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
835 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
836 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
837 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
838 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
840 EXTRA_libDiskThreads_a_SOURCES = \
841 DiskIO/DiskThreads/aiops.cc \
842 DiskIO/DiskThreads/aiops_win32.cc \
843 DiskIO/DiskThreads/CommIO.cc \
844 DiskIO/DiskThreads/CommIO.h
846 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
847 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
848 DiskIO_DiskDaemon_diskd_LDADD = \
849 $(top_builddir)/lib/libmisccontainers.la \
850 $(top_builddir)/lib/libmiscencoding.la \
851 $(top_builddir)/lib/libmiscutil.la \
856 DEFAULT_HTTP_PORT = 3128
857 DEFAULT_ICP_PORT = 3130
858 DEFAULT_PREFIX = $(prefix)
859 DEFAULT_CONFIG_DIR = $(sysconfdir)
860 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
861 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
862 DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
863 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
864 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
865 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
866 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
867 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
868 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
869 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
870 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
871 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
872 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
873 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
874 DEFAULT_ICON_DIR = $(datadir)/icons
875 DEFAULT_ERROR_DIR = $(datadir)/errors
877 # Make location configure settings available to the code
878 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
880 snmp_core.o snmp_agent.o: ../snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
882 globals.cc: globals.h mk-globals-c.awk
883 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
885 ## Generate files containing string arrays for various enums....
886 hier_code.cc: hier_code.h mk-string-arrays.awk
887 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
889 err_type.cc: err_type.h mk-string-arrays.awk
890 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
892 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
893 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
895 lookup_t.cc: lookup_t.h mk-string-arrays.awk
896 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
898 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
899 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
901 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
902 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
905 ## other generated files...
907 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
908 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
910 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
911 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
913 ## If autodependency works well this is not needed anymore
914 cache_cf.o: cf_parser.cci
916 # cf_gen builds the configuration files.
917 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES)
918 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
920 # squid.conf.default is built by cf_gen when making cf_parser.cci
921 squid.conf.default squid.conf.documented: cf_parser.cci
924 cf_parser.cci: cf.data cf_gen$(EXEEXT)
925 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
927 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
928 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
931 ## FIXME: generate a sed command file from configure. Then this doesn't
932 ## depend on the Makefile.
933 cf.data: cf.data.pre Makefile
935 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
936 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
937 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
938 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
939 -e "s%[@]DEFAULT_DNSSERVER[@]%$(DEFAULT_DNSSERVER)%g" \
940 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
941 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
942 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
943 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
944 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
945 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
946 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
947 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
948 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
949 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
950 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
951 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
952 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
953 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
954 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
955 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
956 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
957 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
958 < $(srcdir)/cf.data.pre >$@
960 repl_modules.cc: repl_modules.sh Makefile
961 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
963 include $(top_srcdir)/doc/manuals/Substitute.am
965 squid.8: $(srcdir)/squid.8.in Makefile
966 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
969 EXTRA_DIST += squid.8.in
970 CLEANFILES += squid.8
972 install-data-local: install-sysconfDATA install-dataDATA
973 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
974 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
976 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
977 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
979 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
980 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
982 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
983 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
985 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
986 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
987 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
988 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
989 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
990 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
991 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
993 uninstall-local: squid.conf.default
994 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
995 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
997 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
998 DiskIO/DiskIOModules_gen.cc \
1001 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1002 cp $(top_srcdir)/test-suite/test_tools.cc .
1004 # stock tools for unit tests - library independent versions of dlink_list
1006 # globals.cc is needed by test_tools.cc.
1007 # Neither of these should be disted from here.
1014 tests/testBoilerplate \
1015 tests/testCacheManager \
1018 tests/testEventLoop \
1019 tests/test_http_range \
1020 tests/testHttpParser \
1021 tests/testHttpReply \
1022 tests/testHttpRequest \
1026 tests/testConfigParser \
1027 tests/testStatHist \
1030 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1031 TESTS += $(check_PROGRAMS)
1033 ### Template for new Unit Test Program
1034 ## - add tests/testX to check_PROGRAMS above.
1035 ## - copy template below and substitue X for class name
1036 ## - add other component .(h|cc) files needed to link and run tests
1038 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1040 #tests_testX_SOURCES=\
1043 # tests/testMain.cc \
1046 #nodist_tests_testX_SOURCES=\
1048 #tests_testX_LDFLAGS = $(LIBADD_DL)
1049 #tests_testX_LDADD=\
1050 # $(SQUID_CPPUNIT_LIBS) \
1051 # $(SQUID_CPPUNIT_LA) \
1053 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1056 # - add other component .(h|cc) files needed to link and run tests
1057 tests_testHttpReply_SOURCES=\
1066 HttpHdrContRange.cc \
1067 HttpHdrContRange.h \
1071 HttpHdrScTarget.cc \
1076 HttpHeaderTools.cc \
1094 tests/stub_access_log.cc \
1095 tests/stub_cache_cf.cc \
1096 tests/stub_cache_manager.cc \
1097 tests/stub_debug.cc \
1098 tests/stub_errorpage.cc \
1099 tests/stub_HelperChildConfig.cc \
1100 tests/stub_libformat.cc \
1104 tests/stub_StatHist.cc \
1105 tests/stub_store.cc \
1106 tests/stub_store_stats.cc \
1107 tests/stub_tools.cc \
1108 tests/stub_HttpRequest.cc \
1109 tests/testHttpReply.cc \
1110 tests/testHttpReply.h \
1116 nodist_tests_testHttpReply_SOURCES=\
1118 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1119 tests_testHttpReply_LDADD=\
1128 $(top_builddir)/lib/libmisccontainers.la \
1129 $(top_builddir)/lib/libmiscencoding.la \
1130 $(top_builddir)/lib/libmiscutil.la \
1131 $(SQUID_CPPUNIT_LIBS) \
1132 $(SQUID_CPPUNIT_LA) \
1136 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1139 tests_testACLMaxUserIP_SOURCES= \
1144 DiskIO/ReadRequest.cc \
1145 DiskIO/WriteRequest.cc \
1150 HelperChildConfig.h \
1151 HelperChildConfig.cc \
1154 HttpHeaderTools.cc \
1155 HttpHdrContRange.cc \
1161 HttpHdrScTarget.cc \
1163 HttpRequestMethod.cc \
1173 tests/stub_StatHist.cc \
1181 StoreMetaSTDLFS.cc \
1182 StoreMetaUnpacker.cc \
1185 StoreSwapLogData.cc \
1191 tests/stub_access_log.cc \
1192 tests/stub_cache_cf.cc \
1193 tests/stub_debug.cc \
1194 tests/stub_DelayId.cc \
1195 tests/stub_DiskIOModule.cc \
1196 tests/stub_errorpage.cc \
1198 tests/stub_HttpRequest.cc \
1199 tests/stub_HttpReply.cc \
1200 tests/stub_ipc_TypedMsgHdr.cc \
1201 tests/stub_libcomm.cc \
1202 tests/stub_libformat.cc \
1203 tests/stub_libsslsquid.cc \
1204 tests/stub_MemObject.cc \
1205 tests/stub_MemStore.cc \
1206 tests/stub_mime.cc \
1207 tests/stub_pconn.cc \
1208 tests/stub_Port.cc \
1209 tests/stub_store.cc \
1210 tests/stub_store_rebuild.cc \
1211 tests/stub_store_stats.cc \
1212 tests/stub_store_swapout.cc \
1213 tests/stub_tools.cc \
1214 tests/stub_cache_manager.cc \
1215 tests/stub_UdsOp.cc \
1216 tests/testACLMaxUserIP.cc \
1217 tests/testACLMaxUserIP.h \
1227 nodist_tests_testACLMaxUserIP_SOURCES= \
1229 tests_testACLMaxUserIP_LDADD= \
1243 $(top_builddir)/lib/libmisccontainers.la \
1244 $(top_builddir)/lib/libmiscencoding.la \
1245 $(top_builddir)/lib/libmiscutil.la \
1248 $(SQUID_CPPUNIT_LIBS) \
1252 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1253 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1254 ## $(SQUID_CPPUNIT_LA)
1256 ## a demonstration test that does nothing but shows the salient points
1257 ## involved in writing tests.
1258 tests_testBoilerplate_SOURCES = \
1259 tests/testBoilerplate.cc \
1261 tests/testBoilerplate.h \
1263 nodist_tests_testBoilerplate_SOURCES = \
1265 tests_testBoilerplate_LDADD= \
1266 $(SQUID_CPPUNIT_LIBS) \
1270 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1271 tests_testBoilerplate_DEPENDENCIES = \
1274 ## Tests of the CacheManager module.
1275 tests_testCacheManager_SOURCES = \
1277 $(ACL_REGISTRATION_SOURCES) \
1282 HttpRequestMethod.cc \
1285 tests/testCacheManager.cc \
1286 tests/testCacheManager.h \
1288 tests/stub_main_cc.cc \
1289 tests/stub_ipc_Forwarder.cc \
1290 tests/stub_store_stats.cc \
1298 ChunkedCodingParser.cc \
1301 client_side_reply.cc \
1302 client_side_request.cc \
1311 $(DELAY_POOL_SOURCE) \
1321 ExternalACLEntry.cc \
1332 HelperChildConfig.h \
1333 HelperChildConfig.cc \
1339 HttpHeaderTools.cc \
1343 HttpHdrContRange.cc \
1346 HttpHdrScTarget.cc \
1368 peer_proxy_negotiate_auth.cc \
1370 peer_sourcehash.cc \
1383 tests/stub_StatHist.cc \
1396 StoreFileSystem.cc \
1401 StoreMetaSTDLFS.cc \
1402 StoreMetaUnpacker.cc \
1405 StoreSwapLogData.cc \
1419 nodist_tests_testCacheManager_SOURCES = \
1421 $(DISKIO_GEN_SOURCE)
1422 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1423 tests_testCacheManager_LDADD = \
1436 icmp/libicmp.la icmp/libicmp-core.la \
1438 format/libformat.la \
1442 $(ADAPTATION_LIBS) \
1449 $(top_builddir)/lib/libmisccontainers.la \
1450 $(top_builddir)/lib/libmiscencoding.la \
1451 $(top_builddir)/lib/libmiscutil.la \
1453 $(SQUID_CPPUNIT_LIBS) \
1454 $(SQUID_CPPUNIT_LA) \
1459 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1460 tests_testCacheManager_DEPENDENCIES = \
1464 tests_testDiskIO_SOURCES = \
1470 $(DELAY_POOL_SOURCE) \
1484 HttpHdrContRange.cc \
1486 HttpHdrScTarget.cc \
1488 HttpHeaderTools.cc \
1492 HttpRequestMethod.cc \
1507 tests/stub_StatHist.cc \
1509 StoreFileSystem.cc \
1514 StoreMetaSTDLFS.cc \
1515 StoreMetaUnpacker.cc \
1518 StoreSwapLogData.cc \
1527 tests/stub_access_log.cc \
1529 tests/stub_cache_cf.cc \
1530 tests/stub_cache_manager.cc \
1531 tests/stub_client_db.cc \
1532 tests/stub_client_side_request.cc \
1533 tests/stub_debug.cc \
1534 tests/stub_errorpage.cc \
1535 tests/stub_helper.cc \
1536 tests/stub_HelperChildConfig.cc \
1537 tests/stub_HttpRequest.cc \
1538 tests/stub_http.cc \
1540 tests/stub_internal.cc \
1542 tests/stub_ipcache.cc \
1543 tests/stub_libformat.cc \
1544 tests/stub_libicmp.cc \
1545 tests/stub_MemStore.cc \
1546 tests/stub_mime.cc \
1547 tests/stub_pconn.cc \
1548 tests/stub_Port.cc \
1549 tests/stub_store_client.cc \
1550 tests/stub_store_stats.cc \
1551 tests/stub_store_rebuild.cc \
1552 tests/stub_tools.cc \
1553 tests/stub_UdsOp.cc \
1554 tests/testDiskIO.cc \
1555 tests/testDiskIO.h \
1557 tests/testStoreSupport.cc \
1558 tests/testStoreSupport.h \
1565 nodist_tests_testDiskIO_SOURCES= \
1567 $(DISKIO_GEN_SOURCE) \
1571 tests_testDiskIO_LDADD = \
1574 DnsLookupDetails.o \
1595 $(top_builddir)/lib/libmisccontainers.la \
1596 $(top_builddir)/lib/libmiscencoding.la \
1597 $(top_builddir)/lib/libmiscutil.la \
1599 $(SQUID_CPPUNIT_LIBS) \
1604 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1605 tests_testDiskIO_DEPENDENCIES = \
1610 ## Tests of the Even module.
1611 tests_testEvent_SOURCES = \
1613 $(ACL_REGISTRATION_SOURCES) \
1620 ChunkedCodingParser.cc \
1623 client_side_reply.cc \
1624 client_side_request.cc \
1634 $(DELAY_POOL_SOURCE) \
1646 ExternalACLEntry.cc \
1657 HelperChildConfig.h \
1658 HelperChildConfig.cc \
1665 HttpHeaderTools.cc \
1669 HttpHdrContRange.cc \
1672 HttpHdrScTarget.cc \
1678 HttpRequestMethod.cc \
1699 peer_proxy_negotiate_auth.cc \
1701 peer_sourcehash.cc \
1727 StoreFileSystem.cc \
1732 StoreMetaSTDLFS.cc \
1733 StoreMetaUnpacker.cc \
1736 StoreSwapLogData.cc \
1739 tests/CapturingStoreEntry.h \
1740 tests/testEvent.cc \
1743 tests/stub_main_cc.cc \
1744 tests/stub_ipc_Forwarder.cc \
1745 tests/stub_store_stats.cc \
1758 nodist_tests_testEvent_SOURCES = \
1760 $(DISKIO_GEN_SOURCE)
1761 tests_testEvent_LDADD = \
1774 icmp/libicmp.la icmp/libicmp-core.la \
1777 format/libformat.la \
1779 $(ADAPTATION_LIBS) \
1782 $(top_builddir)/lib/libmisccontainers.la \
1783 $(top_builddir)/lib/libmiscencoding.la \
1784 $(top_builddir)/lib/libmiscutil.la \
1791 $(SQUID_CPPUNIT_LIBS) \
1792 $(SQUID_CPPUNIT_LA) \
1797 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1798 tests_testEvent_DEPENDENCIES = \
1802 ## Tests of the EventLoop module.
1803 tests_testEventLoop_SOURCES = \
1805 $(ACL_REGISTRATION_SOURCES) \
1812 ChunkedCodingParser.cc \
1815 client_side_reply.cc \
1816 client_side_request.cc \
1826 $(DELAY_POOL_SOURCE) \
1838 ExternalACLEntry.cc \
1849 HelperChildConfig.h \
1850 HelperChildConfig.cc \
1857 HttpHeaderTools.cc \
1861 HttpHdrContRange.cc \
1864 HttpHdrScTarget.cc \
1870 HttpRequestMethod.cc \
1891 peer_proxy_negotiate_auth.cc \
1893 peer_sourcehash.cc \
1919 StoreFileSystem.cc \
1924 StoreMetaSTDLFS.cc \
1925 StoreMetaUnpacker.cc \
1928 StoreSwapLogData.cc \
1931 tests/testEventLoop.cc \
1932 tests/testEventLoop.h \
1934 tests/stub_main_cc.cc \
1935 tests/stub_ipc_Forwarder.cc \
1936 tests/stub_store_stats.cc \
1949 nodist_tests_testEventLoop_SOURCES = \
1951 $(DISKIO_GEN_SOURCE)
1952 tests_testEventLoop_LDADD = \
1965 icmp/libicmp.la icmp/libicmp-core.la \
1968 format/libformat.la \
1970 $(ADAPTATION_LIBS) \
1973 $(top_builddir)/lib/libmisccontainers.la \
1974 $(top_builddir)/lib/libmiscencoding.la \
1975 $(top_builddir)/lib/libmiscutil.la \
1982 $(SQUID_CPPUNIT_LIBS) \
1983 $(SQUID_CPPUNIT_LA) \
1988 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
1989 tests_testEventLoop_DEPENDENCIES = \
1993 tests_test_http_range_SOURCES = \
1995 $(ACL_REGISTRATION_SOURCES) \
2002 ChunkedCodingParser.cc \
2005 client_side_reply.cc \
2006 client_side_request.cc \
2016 $(DELAY_POOL_SOURCE) \
2026 ExternalACLEntry.cc \
2037 HelperChildConfig.h \
2038 HelperChildConfig.cc \
2047 HttpHdrContRange.cc \
2050 HttpHdrScTarget.cc \
2052 HttpHeaderTools.cc \
2058 HttpRequestMethod.cc \
2078 peer_proxy_negotiate_auth.cc \
2080 peer_sourcehash.cc \
2107 StoreFileSystem.cc \
2112 StoreMetaSTDLFS.cc \
2113 StoreMetaUnpacker.cc \
2116 StoreSwapLogData.cc \
2119 tests/test_http_range.cc \
2120 tests/stub_ipc_Forwarder.cc \
2121 tests/stub_main_cc.cc \
2122 tests/stub_MemStore.cc \
2123 tests/stub_store_stats.cc \
2135 nodist_tests_test_http_range_SOURCES = \
2137 $(DISKIO_GEN_SOURCE)
2138 tests_test_http_range_LDADD = \
2150 icmp/libicmp.la icmp/libicmp-core.la \
2153 format/libformat.la \
2157 $(ADAPTATION_LIBS) \
2164 $(top_builddir)/lib/libmisccontainers.la \
2165 $(top_builddir)/lib/libmiscencoding.la \
2166 $(top_builddir)/lib/libmiscutil.la \
2168 $(SQUID_CPPUNIT_LIBS) \
2169 $(SQUID_CPPUNIT_LA) \
2174 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2175 tests_test_http_range_DEPENDENCIES = \
2179 tests_testHttpParser_SOURCES = \
2188 tests/stub_cache_cf.cc \
2189 tests/stub_cache_manager.cc \
2190 tests/stub_debug.cc \
2191 tests/stub_event.cc \
2192 tests/stub_HelperChildConfig.cc \
2193 tests/stub_tools.cc \
2194 tests/testHttpParser.cc \
2195 tests/testHttpParser.h \
2199 nodist_tests_testHttpParser_SOURCES = \
2201 tests_testHttpParser_LDADD= \
2205 $(top_builddir)/lib/libmiscutil.la \
2206 $(SQUID_CPPUNIT_LIBS) \
2209 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2210 tests_testHttpParser_DEPENDENCIES = \
2213 ## Tests of the HttpRequest module.
2214 tests_testHttpRequest_SOURCES = \
2216 $(ACL_REGISTRATION_SOURCES) \
2220 HttpRequestMethod.cc \
2223 tests/testHttpRequest.h \
2224 tests/testHttpRequest.cc \
2225 tests/testHttpRequestMethod.h \
2226 tests/testHttpRequestMethod.cc \
2228 tests/stub_DiskIOModule.cc \
2229 tests/stub_main_cc.cc \
2230 tests/stub_ipc_Forwarder.cc \
2231 tests/stub_store_stats.cc \
2240 ChunkedCodingParser.cc \
2243 client_side_reply.cc \
2244 client_side_request.cc \
2253 $(DELAY_POOL_SOURCE) \
2261 ExternalACLEntry.cc \
2269 HelperChildConfig.h \
2270 HelperChildConfig.cc \
2277 HttpHeaderTools.cc \
2281 HttpHdrContRange.cc \
2284 HttpHdrScTarget.cc \
2306 peer_proxy_negotiate_auth.cc \
2308 peer_sourcehash.cc \
2334 StoreFileSystem.cc \
2339 StoreMetaSTDLFS.cc \
2340 StoreMetaUnpacker.cc \
2343 StoreSwapLogData.cc \
2357 nodist_tests_testHttpRequest_SOURCES = \
2359 tests_testHttpRequest_LDADD = \
2375 icmp/libicmp.la icmp/libicmp-core.la \
2378 format/libformat.la \
2380 $(ADAPTATION_LIBS) \
2383 $(top_builddir)/lib/libmisccontainers.la \
2384 $(top_builddir)/lib/libmiscencoding.la \
2385 $(top_builddir)/lib/libmiscutil.la \
2388 $(SQUID_CPPUNIT_LIBS) \
2389 $(SQUID_CPPUNIT_LA) \
2394 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2395 tests_testHttpRequest_DEPENDENCIES = \
2399 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2400 ## first line - what we are testing.
2401 tests_testStore_SOURCES= \
2407 $(DELAY_POOL_SOURCE) \
2409 DiskIO/ReadRequest.cc \
2410 DiskIO/WriteRequest.cc \
2419 HttpHdrContRange.cc \
2422 HttpHdrScTarget.cc \
2423 HttpHeaderTools.cc \
2426 HttpRequestMethod.cc \
2450 StoreMetaSTDLFS.cc \
2451 StoreMetaUnpacker.cc \
2454 StoreSwapLogData.cc \
2458 tests/CapturingStoreEntry.h \
2459 tests/stub_access_log.cc \
2461 tests/stub_cache_cf.cc \
2462 tests/stub_cache_manager.cc \
2463 tests/stub_client_side_request.cc \
2464 tests/stub_comm.cc \
2465 tests/stub_debug.cc \
2466 tests/stub_DiskIOModule.cc \
2467 tests/stub_errorpage.cc \
2469 tests/stub_helper.cc \
2470 tests/stub_HelperChildConfig.cc \
2471 tests/stub_http.cc \
2472 tests/stub_libformat.cc \
2475 tests/stub_HttpReply.cc \
2476 tests/stub_HttpRequest.cc \
2477 tests/stub_libcomm.cc \
2478 tests/stub_MemStore.cc \
2479 tests/stub_mime.cc \
2480 tests/stub_Port.cc \
2481 tests/stub_store_client.cc \
2482 tests/stub_store_stats.cc \
2483 tests/stub_store_rebuild.cc \
2484 tests/stub_store_swapout.cc \
2485 tests/stub_tools.cc \
2486 tests/stub_UdsOp.cc \
2488 tests/testStore.cc \
2490 tests/testStoreEntryStream.cc \
2491 tests/testStoreEntryStream.h \
2492 tests/testStoreController.cc \
2493 tests/testStoreController.h \
2494 tests/testStoreHashIndex.cc \
2495 tests/testStoreHashIndex.h \
2496 tests/testStoreSupport.cc \
2497 tests/testStoreSupport.h \
2498 tests/TestSwapDir.cc \
2499 tests/TestSwapDir.h \
2505 nodist_tests_testStore_SOURCES= \
2511 tests_testStore_LDADD= \
2527 $(top_builddir)/lib/libmisccontainers.la \
2528 $(top_builddir)/lib/libmiscencoding.la \
2529 $(top_builddir)/lib/libmiscutil.la \
2531 $(SQUID_CPPUNIT_LIBS) \
2534 DnsLookupDetails.o \
2537 tests_testStore_LDFLAGS = $(LIBADD_DL)
2538 tests_testStore_DEPENDENCIES = \
2541 ## string needs mem.cc.
2542 ## mem.cc needs ClientInfo.h
2543 ## libsquid pulls in SquidConfig and children. stub them.
2544 tests_testString_SOURCES = \
2550 tests/testString.cc \
2551 tests/testString.h \
2552 tests/stub_cache_cf.cc \
2553 tests/stub_cache_manager.cc \
2554 tests/stub_debug.cc \
2555 tests/stub_HelperChildConfig.cc \
2556 tests/stub_tools.cc \
2559 nodist_tests_testString_SOURCES = \
2561 tests_testString_LDADD = \
2565 $(top_builddir)/lib/libmiscutil.la \
2567 $(SQUID_CPPUNIT_LIBS) \
2571 tests_testString_LDFLAGS = $(LIBADD_DL)
2572 tests_testString_DEPENDENCIES = \
2594 tests_testUfs_SOURCES = \
2598 tests/stub_cache_manager.cc \
2599 tests/stub_client_db.cc \
2600 tests/stub_HelperChildConfig.cc \
2603 tests/stub_MemStore.cc \
2604 tests/stub_pconn.cc \
2605 tests/stub_Port.cc \
2606 tests/stub_UdsOp.cc \
2607 tests/stub_internal.cc \
2608 tests/stub_libformat.cc \
2609 tests/stub_store_rebuild.cc \
2610 tests/stub_store_stats.cc \
2622 StoreSwapLogData.cc \
2627 StoreMetaSTDLFS.cc \
2628 StoreMetaUnpacker.cc \
2631 StoreFileSystem.cc \
2638 $(DELAY_POOL_SOURCE) \
2646 HttpRequestMethod.cc \
2652 tests/stub_cache_cf.cc \
2653 tests/stub_helper.cc \
2656 tests/stub_debug.cc \
2657 tests/stub_client_side_request.cc \
2658 tests/stub_http.cc \
2661 tests/stub_mime.cc \
2662 HttpHeaderTools.cc \
2667 HttpHdrContRange.cc \
2673 HttpHdrScTarget.cc \
2681 tests/stub_errorpage.cc \
2682 tests/stub_HttpRequest.cc \
2683 tests/stub_access_log.cc \
2685 tests/stub_store_client.cc \
2686 tests/stub_tools.cc \
2687 tests/testStoreSupport.cc \
2688 tests/testStoreSupport.h \
2694 nodist_tests_testUfs_SOURCES = \
2696 $(DISKIO_GEN_SOURCE) \
2700 tests_testUfs_LDADD = \
2702 DnsLookupDetails.o \
2725 $(top_builddir)/lib/libmisccontainers.la \
2726 $(top_builddir)/lib/libmiscencoding.la \
2727 $(top_builddir)/lib/libmiscutil.la \
2729 $(SQUID_CPPUNIT_LIBS) \
2733 tests_testUfs_LDFLAGS = $(LIBADD_DL)
2734 tests_testUfs_DEPENDENCIES = \
2737 tests_testRock_SOURCES = \
2752 HttpHdrContRange.cc \
2755 HttpHdrScTarget.cc \
2757 HttpHeaderTools.cc \
2760 HttpRequestMethod.cc \
2774 tests/stub_StatHist.cc \
2777 StoreFileSystem.cc \
2782 StoreMetaSTDLFS.cc \
2784 StoreMetaUnpacker.cc \
2786 StoreSwapLogData.cc \
2797 tests/testStoreSupport.cc \
2798 tests/testStoreSupport.h \
2799 tests/stub_access_log.cc \
2800 tests/stub_cache_cf.cc \
2801 tests/stub_cache_manager.cc \
2802 tests/stub_client_db.cc \
2803 tests/stub_client_side_request.cc \
2804 tests/stub_debug.cc \
2805 tests/stub_errorpage.cc \
2806 tests/stub_HelperChildConfig.cc \
2807 tests/stub_http.cc \
2808 tests/stub_HttpRequest.cc \
2811 tests/stub_ipcache.cc \
2812 tests/stub_libformat.cc \
2813 tests/stub_libicmp.cc \
2814 tests/stub_MemStore.cc \
2815 tests/stub_mime.cc \
2816 tests/stub_Port.cc \
2817 tests/stub_pconn.cc \
2818 tests/stub_store_client.cc \
2819 tests/stub_store_rebuild.cc \
2820 tests/stub_store_stats.cc \
2821 tests/stub_tools.cc \
2826 $(DELAY_POOL_SOURCE) \
2829 nodist_tests_testRock_SOURCES = \
2830 $(DISKIO_GEN_SOURCE) \
2835 tests_testRock_LDADD = \
2854 $(top_builddir)/lib/libmisccontainers.la \
2855 $(top_builddir)/lib/libmiscencoding.la \
2856 $(top_builddir)/lib/libmiscutil.la \
2858 $(SQUID_CPPUNIT_LIBS) \
2862 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
2863 tests_testRock_DEPENDENCIES = \
2866 tests_testCoss_SOURCES = \
2870 tests/stub_cache_manager.cc \
2871 tests/stub_client_db.cc \
2872 tests/stub_debug.cc \
2873 tests/stub_HelperChildConfig.cc \
2874 tests/stub_internal.cc \
2876 tests/stub_pconn.cc \
2877 tests/stub_store_rebuild.cc \
2878 tests/stub_store_stats.cc \
2890 StoreSwapLogData.cc \
2895 StoreMetaSTDLFS.cc \
2896 StoreMetaUnpacker.cc \
2899 StoreFileSystem.cc \
2906 $(DELAY_POOL_SOURCE) \
2914 HttpRequestMethod.cc \
2920 tests/stub_cache_cf.cc \
2921 tests/stub_helper.cc \
2924 tests/stub_client_side_request.cc \
2925 tests/stub_http.cc \
2928 tests/stub_mime.cc \
2929 HttpHeaderTools.cc \
2934 HttpHdrContRange.cc \
2940 HttpHdrScTarget.cc \
2945 tests/stub_StatHist.cc \
2946 tests/stub_errorpage.cc \
2947 tests/stub_HttpRequest.cc \
2948 tests/stub_access_log.cc \
2950 tests/stub_MemStore.cc \
2951 tests/stub_Port.cc \
2952 tests/stub_store_client.cc \
2953 tests/stub_store_stats.cc \
2954 tests/stub_tools.cc \
2955 tests/stub_UdsOp.cc \
2956 tests/testStoreSupport.cc \
2957 tests/testStoreSupport.h \
2963 nodist_tests_testCoss_SOURCES = \
2968 $(DISKIO_GEN_SOURCE)
2969 tests_testCoss_LDADD = \
2993 $(top_builddir)/lib/libmisccontainers.la \
2994 $(top_builddir)/lib/libmiscencoding.la \
2995 $(top_builddir)/lib/libmiscutil.la \
2996 $(SQUID_CPPUNIT_LIBS) \
3001 tests_testCoss_LDFLAGS = $(LIBADD_DL)
3002 tests_testCoss_DEPENDENCIES = \
3005 tests_testNull_SOURCES = \
3009 tests/stub_internal.cc \
3010 tests/stub_store_rebuild.cc \
3011 tests/stub_store_stats.cc \
3023 StoreSwapLogData.cc \
3028 StoreMetaSTDLFS.cc \
3029 StoreMetaUnpacker.cc \
3032 StoreFileSystem.cc \
3039 $(DELAY_POOL_SOURCE) \
3047 HttpRequestMethod.cc \
3053 tests/stub_cache_cf.cc \
3054 tests/stub_helper.cc \
3057 tests/stub_comm.cc \
3058 tests/stub_debug.cc \
3059 tests/stub_client_side_request.cc \
3060 tests/stub_http.cc \
3063 tests/stub_mime.cc \
3064 HttpHeaderTools.cc \
3069 HttpHdrContRange.cc \
3075 HttpHdrScTarget.cc \
3080 tests/stub_StatHist.cc \
3081 tests/stub_errorpage.cc \
3082 tests/stub_HttpRequest.cc \
3083 tests/stub_access_log.cc \
3085 tests/stub_store_client.cc \
3086 tests/stub_store_stats.cc \
3087 tests/stub_tools.cc \
3088 tests/testStoreSupport.cc \
3089 tests/testStoreSupport.h \
3095 nodist_tests_testNull_SOURCES = \
3097 $(DISKIO_GEN_SOURCE)
3098 tests_testNull_LDADD = \
3117 $(top_builddir)/lib/libmisccontainers.la \
3118 $(top_builddir)/lib/libmiscencoding.la \
3119 $(top_builddir)/lib/libmiscutil.la \
3120 $(SQUID_CPPUNIT_LIBS) \
3124 tests_testNull_LDFLAGS = $(LIBADD_DL)
3125 tests_testNull_DEPENDENCIES = \
3128 ## Tests of the URL module.
3129 ## TODO: Trim this down once the insanity is over.
3130 tests_testURL_SOURCES = \
3132 $(ACL_REGISTRATION_SOURCES) \
3139 ChunkedCodingParser.cc \
3142 client_side_reply.cc \
3143 client_side_request.cc \
3152 $(DELAY_POOL_SOURCE) \
3154 DiskIO/ReadRequest.cc \
3155 DiskIO/WriteRequest.cc \
3163 ExternalACLEntry.cc \
3173 HelperChildConfig.h \
3174 HelperChildConfig.cc \
3183 HttpHdrContRange.cc \
3186 HttpHdrScTarget.cc \
3188 HttpHeaderTools.cc \
3194 HttpRequestMethod.cc \
3215 peer_proxy_negotiate_auth.cc \
3217 peer_sourcehash.cc \
3230 tests/stub_StatHist.cc \
3243 StoreFileSystem.cc \
3248 StoreMetaSTDLFS.cc \
3249 StoreMetaUnpacker.cc \
3252 StoreSwapLogData.cc \
3256 tests/stub_debug.cc \
3257 tests/stub_DiskIOModule.cc \
3258 tests/stub_main_cc.cc \
3259 tests/stub_ipc_Forwarder.cc \
3260 tests/stub_store_stats.cc \
3263 tests/testURLScheme.cc \
3264 tests/testURLScheme.h \
3277 nodist_tests_testURL_SOURCES = \
3279 tests_testURL_LDADD = \
3295 icmp/libicmp.la icmp/libicmp-core.la \
3299 format/libformat.la \
3302 $(ADAPTATION_LIBS) \
3305 $(top_builddir)/lib/libmisccontainers.la \
3306 $(top_builddir)/lib/libmiscencoding.la \
3307 $(top_builddir)/lib/libmiscutil.la \
3309 $(SQUID_CPPUNIT_LIBS) \
3310 $(SQUID_CPPUNIT_LA) \
3315 tests_testURL_LDFLAGS = $(LIBADD_DL)
3316 tests_testURL_DEPENDENCIES = \
3320 tests_testConfigParser_SOURCES = \
3327 tests/testConfigParser.cc \
3328 tests/testConfigParser.h \
3329 tests/stub_cache_cf.cc \
3330 tests/stub_cache_manager.cc \
3331 tests/stub_debug.cc \
3332 tests/stub_HelperChildConfig.cc \
3333 tests/stub_tools.cc \
3336 nodist_tests_testConfigParser_SOURCES = \
3338 tests_testConfigParser_LDADD = \
3342 $(top_builddir)/lib/libmiscutil.la \
3344 $(SQUID_CPPUNIT_LIBS) \
3348 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3349 tests_testConfigParser_DEPENDENCIES = \
3352 tests_testStatHist_SOURCES = \
3358 tests/stub_cache_manager.cc \
3359 tests/stub_comm.cc \
3360 tests/stub_debug.cc \
3361 tests/stub_DelayId.cc \
3362 tests/stub_HelperChildConfig.cc \
3364 tests/stub_MemObject.cc \
3365 tests/stub_mime.cc \
3366 tests/stub_pconn.cc \
3367 tests/stub_stmem.cc \
3368 tests/stub_store.cc \
3369 tests/stub_store_stats.cc \
3370 tests/stub_tools.cc \
3372 tests/testStatHist.cc \
3373 tests/testStatHist.h \
3375 nodist_tests_testStatHist_SOURCES = \
3377 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3378 tests_testStatHist_LDADD = \
3380 $(top_builddir)/lib/libmiscutil.la \
3381 $(SQUID_CPPUNIT_LIBS) \
3382 $(SQUID_CPPUNIT_LA) \
3384 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3387 TESTS += testHeaders
3389 ## Special Universal .h dependency test script
3390 ## aborts if error encountered
3391 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3392 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3393 ## src/repl/ has no .h files and its own makefile.
3395 CLEANFILES += testHeaders