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
21 OutOfBoundsException.h \
27 LOADABLE_MODULES_SOURCES = \
33 SUBDIRS = base anyp comm eui acl format fs repl
34 DIST_SUBDIRS = base anyp comm eui acl format fs repl
38 AUTH_LIBS= auth/libauth.la
39 AUTH_ACL_LIBS= auth/libacls.la
40 check_PROGRAMS+= tests/testACLMaxUserIP
44 SUBDIRS += http ip icmp ident log ipc mgr
45 DIST_SUBDIRS += http 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/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.h unlinkd.cc
143 UNLINKDSOURCE = unlinkd.h
152 if ENABLE_WIN32SPECIFIC
153 WIN32_SOURCE = win32.cc
154 WINSVC_SOURCE = WinSvc.cc
161 IPC_SOURCE = SquidIpc.h ipc_win32.cc
163 IPC_SOURCE = SquidIpc.h ipc.cc
166 AIO_WIN32_ALL_SOURCES = \
167 DiskIO/AIO/aio_win32.cc \
168 DiskIO/AIO/aio_win32.h
170 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
176 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
177 DiskIO/DiskThreads/CommIO.cc \
178 DiskIO/DiskThreads/CommIO.h
180 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
181 DiskIO/DiskThreads/CommIO.cc \
182 DiskIO/DiskThreads/CommIO.h
185 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
186 libMmapped.a libIpcIo.a
187 noinst_LIBRARIES = $(DISK_LIBS)
188 noinst_LTLIBRARIES = libsquid.la
191 DiskIO/DiskDaemon/diskd \
198 ## cfgen is used when building squid
199 ## ufsdump is a debug utility, it is possibly useful for end users with cache
200 ## corruption, but at this point we do not install it.
214 cf_gen_SOURCES = cf_gen.cc
215 nodist_cf_gen_HEADER = cf_gen_defines.cci
216 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
218 cf_gen.$(OBJEXT): cf_gen_defines.cci
220 ## cf_gen.cc needs src/cf_gen_defines.cci
221 INCLUDES += -I$(top_builddir)/src
224 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
227 DiskIO/DiskIOModule.cc \
228 DiskIO/ReadRequest.cc \
229 DiskIO/ReadRequest.h \
230 DiskIO/WriteRequest.cc \
231 DiskIO/WriteRequest.h \
233 DiskIO/DiskIOStrategy.h \
234 DiskIO/IORequestor.h \
235 DiskIO/DiskIOModule.h \
238 DISKIO_GEN_SOURCE = \
239 DiskIO/DiskIOModules_gen.cc
241 DiskIO/DiskIOModules_gen.cc: Makefile
242 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
245 # common library for all the binaries and tests. This is kindof a catch all
246 # and smaller libraries split from this are encouraged. Using lt convenience
247 # libraries, dependencies should not be a problem either.
248 libsquid_la_SOURCES = \
260 $(ACL_REGISTRATION_SOURCES) \
274 NeighborTypeDomainList.h \
275 CachePeerDomainList.h \
282 ChunkedCodingParser.cc \
283 ChunkedCodingParser.h \
289 client_side_reply.cc \
290 client_side_reply.h \
291 client_side_request.cc \
292 client_side_request.h \
297 ClientRequestContext.h \
300 CompletionDispatcher.cc \
301 CompletionDispatcher.h \
315 $(DELAY_POOL_SOURCE) \
335 ExternalACLEntry.cc \
359 HelperChildConfig.h \
360 HelperChildConfig.cc \
364 HierarchyLogEntry.h \
369 HttpHeaderFieldStat.h \
378 HttpHdrContRange.cc \
385 HttpHeaderFieldInfo.h \
401 HttpRequestMethod.cc \
402 HttpRequestMethod.h \
414 $(LEAKFINDERSOURCE) \
444 $(XPROF_STATS_SOURCE) \
449 peer_proxy_negotiate_auth.h \
450 peer_proxy_negotiate_auth.cc \
520 StoreMetaUnpacker.cc \
521 StoreMetaUnpacker.h \
529 StoreSwapLogData.cc \
562 EXTRA_squid_SOURCES = \
563 $(AIO_WIN32_ALL_SOURCES) \
566 $(DELAY_POOL_ALL_SOURCE) \
576 $(WIN32_ALL_SOURCE) \
577 $(LOADABLE_MODULES_SOURCES)
580 client_side_request.cci \
602 CLEANFILES += $(BUILT_SOURCES)
604 nodist_squid_SOURCES = \
605 $(DISKIO_GEN_SOURCE) \
625 http/libsquid-http.la \
626 icmp/libicmp.la icmp/libicmp-core.la \
628 format/libformat.la \
639 $(top_builddir)/lib/libmisccontainers.la \
640 $(top_builddir)/lib/libmiscencoding.la \
641 $(top_builddir)/lib/libmiscutil.la \
648 squid_DEPENDENCIES = \
666 format/libformat.la \
670 if USE_LOADABLE_MODULES
671 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
672 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
673 squid_LDFLAGS = -export-dynamic -dlopen force
674 ## when static module linking is supported and enabled:
675 ## squid_LDFLAGS = -all-static -dlopen self
677 ## LTDL headers require their local include path...
678 INCLUDES += $(INCLTDL)
681 ## Kerberos libraries require their include path...
682 INCLUDES += $(KRB5INCS)
685 unlinkd_SOURCES = unlinkd_daemon.cc
690 recv_announce_SOURCES = recv-announce.cc
692 ## What requires what..
693 ## many things want ACLChecklist.cc
694 ## ACLChecklist.cc wants AuthUserRequest.cc
695 ## ACLChecklist.cc wants AuthScheme.cc
696 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
697 ## ACLProxyAuth.cc wants ACLUserData
698 ## ACLProxyAuth.cc wants ACLRegexData
699 ## cache_cf.cc wants $(AUTH_LIBS)
700 ## cache_cf.cc wants Swapdir
701 ## cache_cf.cc wants AnyP::PortCfg
702 ## client_side wants client_db
703 ## client_db wants SNMP_SOURCE
704 ## snmp_core wants ACLStringData
705 ## SwapDir wants ConfigOption
706 ## tools.cc wants ip/libip.la
707 ## client_side.cc wants ip/libip.la
708 ## mem.cc wants ClientInfo.h
709 ## libbase.la wants cbdata.*
710 ## libbase.la wants MemBuf.*
730 StoreMetaUnpacker.cc \
739 HelperChildConfig.h \
740 tests/stub_HelperChildConfig.cc \
741 HttpRequestMethod.cc \
768 ufsdump_DEPENDENCIES = \
785 nodist_ufsdump_SOURCES = \
790 squid.conf.documented \
815 include $(srcdir)/tests/Stub.list
824 mk-string-arrays.pl \
825 mk-string-arrays.awk \
832 $(AIO_WIN32_SOURCES) \
833 DiskIO/AIO/async_io.h \
834 DiskIO/AIO/AIODiskFile.cc \
835 DiskIO/AIO/AIODiskFile.h \
836 DiskIO/AIO/AIODiskIOStrategy.cc \
837 DiskIO/AIO/AIODiskIOStrategy.h \
838 DiskIO/AIO/AIODiskIOModule.cc \
839 DiskIO/AIO/AIODiskIOModule.h
841 libBlocking_a_SOURCES = \
842 DiskIO/Blocking/BlockingFile.cc \
843 DiskIO/Blocking/BlockingFile.h \
844 DiskIO/Blocking/BlockingIOStrategy.cc \
845 DiskIO/Blocking/BlockingIOStrategy.h \
846 DiskIO/Blocking/BlockingDiskIOModule.cc \
847 DiskIO/Blocking/BlockingDiskIOModule.h
849 libMmapped_a_SOURCES = \
850 DiskIO/Mmapped/MmappedFile.cc \
851 DiskIO/Mmapped/MmappedFile.h \
852 DiskIO/Mmapped/MmappedIOStrategy.cc \
853 DiskIO/Mmapped/MmappedIOStrategy.h \
854 DiskIO/Mmapped/MmappedDiskIOModule.cc \
855 DiskIO/Mmapped/MmappedDiskIOModule.h
857 libIpcIo_a_SOURCES = \
858 DiskIO/IpcIo/IpcIoFile.cc \
859 DiskIO/IpcIo/IpcIoFile.h \
860 DiskIO/IpcIo/IpcIoIOStrategy.cc \
861 DiskIO/IpcIo/IpcIoIOStrategy.h \
862 DiskIO/IpcIo/IpcIoDiskIOModule.cc \
863 DiskIO/IpcIo/IpcIoDiskIOModule.h
865 libDiskDaemon_a_SOURCES = \
866 DiskIO/DiskDaemon/DiskdFile.cc \
867 DiskIO/DiskDaemon/DiskdFile.h \
868 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
869 DiskIO/DiskDaemon/DiskdIOStrategy.h \
870 DiskIO/DiskDaemon/diomsg.h \
871 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
872 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h \
873 DiskIO/DiskDaemon/DiskdAction.cc \
874 DiskIO/DiskDaemon/DiskdAction.h
876 libDiskThreads_a_SOURCES = \
878 DiskIO/DiskThreads/async_io.cc \
879 DiskIO/DiskThreads/DiskThreads.h \
880 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
881 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
882 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc \
883 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
884 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
885 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
887 EXTRA_libDiskThreads_a_SOURCES = \
888 DiskIO/DiskThreads/aiops.cc \
889 DiskIO/DiskThreads/aiops_win32.cc \
890 DiskIO/DiskThreads/CommIO.cc \
891 DiskIO/DiskThreads/CommIO.h
893 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
894 nodist_DiskIO_DiskDaemon_diskd_SOURCES = time.cc
895 DiskIO_DiskDaemon_diskd_LDADD = \
896 $(top_builddir)/lib/libmisccontainers.la \
897 $(top_builddir)/lib/libmiscencoding.la \
898 $(top_builddir)/lib/libmiscutil.la \
903 DEFAULT_HTTP_PORT = 3128
904 DEFAULT_ICP_PORT = 3130
905 DEFAULT_PREFIX = $(prefix)
906 DEFAULT_CONFIG_DIR = $(sysconfdir)
907 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
908 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
909 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
910 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
911 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
912 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
913 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
914 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
915 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
916 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
918 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
919 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
920 DEFAULT_ICON_DIR = $(datadir)/icons
921 DEFAULT_ERROR_DIR = $(datadir)/errors
923 # Make location configure settings available to the code
924 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
926 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.a $(top_srcdir)/include/cache_snmp.h
928 globals.cc: globals.h mk-globals-c.awk
929 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
931 ## Generate files containing string arrays for various enums....
932 hier_code.cc: hier_code.h mk-string-arrays.awk
933 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
935 err_type.cc: err_type.h mk-string-arrays.awk
936 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
938 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
939 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
941 LogTags.cc: LogTags.h mk-string-arrays.awk
942 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/LogTags.h | sed 's/LOG_//' > $@ || ($(RM) -f $@ && exit 1)
944 lookup_t.cc: lookup_t.h mk-string-arrays.awk
945 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
947 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
948 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
950 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
951 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
954 ## other generated files...
956 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
957 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
959 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
960 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
962 ## If autodependency works well this is not needed anymore
963 cache_cf.o: cf_parser.cci
965 # cf_gen builds the configuration files.
966 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
967 $(HOSTCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
969 # squid.conf.default is built by cf_gen when making cf_parser.cci
970 squid.conf.default squid.conf.documented: cf_parser.cci
973 cf_parser.cci: cf.data cf_gen$(EXEEXT)
974 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
976 # The cf_gen_defines.cci is auto-generated and does not exist when the
977 # dependencies computed. We need to add its include files (autoconf.h) here
978 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
979 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
982 ## FIXME: generate a sed command file from configure. Then this doesn't
983 ## depend on the Makefile.
984 cf.data: cf.data.pre Makefile
986 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
987 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
988 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
989 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
990 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
991 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
992 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
993 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
994 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
995 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
996 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
997 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
998 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
999 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
1000 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
1001 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
1002 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
1003 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
1004 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
1005 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
1006 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
1007 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
1008 < $(srcdir)/cf.data.pre >$@
1010 repl_modules.cc: repl_modules.sh Makefile
1011 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
1013 include $(top_srcdir)/doc/manuals/Substitute.am
1015 squid.8: $(srcdir)/squid.8.in Makefile
1016 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
1019 EXTRA_DIST += squid.8.in
1020 CLEANFILES += squid.8
1022 install-data-local: install-sysconfDATA install-dataDATA
1023 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
1024 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
1026 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
1027 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1029 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1030 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
1032 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1033 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1035 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
1036 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
1037 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
1038 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
1039 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
1040 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
1041 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
1043 uninstall-local: squid.conf.default
1044 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
1045 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
1047 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
1048 DiskIO/DiskIOModules_gen.cc \
1051 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
1052 cp $(top_srcdir)/test-suite/test_tools.cc .
1054 # stock tools for unit tests - library independent versions of dlink_list
1056 # globals.cc is needed by test_tools.cc.
1057 # Neither of these should be disted from here.
1064 tests/testBoilerplate \
1065 tests/testCacheManager \
1068 tests/testEventLoop \
1069 tests/test_http_range \
1070 tests/testHttpParser \
1071 tests/testHttpReply \
1072 tests/testHttpRequest \
1077 tests/testConfigParser \
1078 tests/testStatHist \
1082 check_PROGRAMS += tests/testRock
1085 check_PROGRAMS += tests/testUfs
1088 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
1089 TESTS += $(check_PROGRAMS)
1091 ### Template for new Unit Test Program
1092 ## - add tests/testX to check_PROGRAMS above.
1093 ## - copy template below and substitue X for class name
1094 ## - add other component .(h|cc) files needed to link and run tests
1096 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
1098 #tests_testX_SOURCES=\
1101 # tests/testMain.cc \
1104 #nodist_tests_testX_SOURCES=\
1106 #tests_testX_LDFLAGS = $(LIBADD_DL)
1107 #tests_testX_LDADD=\
1108 # $(SQUID_CPPUNIT_LIBS) \
1109 # $(SQUID_CPPUNIT_LA) \
1111 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1114 # - add other component .(h|cc) files needed to link and run tests
1115 tests_testHttpReply_SOURCES=\
1121 tests/stub_fatal.cc \
1124 HttpHeaderFieldStat.h \
1128 HttpHdrContRange.cc \
1129 HttpHdrContRange.h \
1133 HttpHdrScTarget.cc \
1138 HttpHeaderFieldInfo.h \
1140 HttpHeaderTools.cc \
1162 tests/stub_access_log.cc \
1165 tests/stub_cache_cf.cc \
1166 tests/stub_cache_manager.cc \
1167 tests/stub_debug.cc \
1168 tests/stub_errorpage.cc \
1169 tests/stub_HelperChildConfig.cc \
1170 tests/stub_libformat.cc \
1171 tests/stub_libauth.cc \
1175 tests/stub_StatHist.cc \
1177 tests/stub_store.cc \
1178 tests/stub_store_stats.cc \
1180 tests/stub_tools.cc \
1181 tests/stub_HttpRequest.cc \
1182 tests/testHttpReply.cc \
1183 tests/testHttpReply.h \
1190 nodist_tests_testHttpReply_SOURCES=\
1192 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1193 tests_testHttpReply_LDADD=\
1194 http/libsquid-http.la \
1202 $(top_builddir)/lib/libmisccontainers.la \
1203 $(top_builddir)/lib/libmiscencoding.la \
1204 $(top_builddir)/lib/libmiscutil.la \
1205 $(SQUID_CPPUNIT_LIBS) \
1206 $(SQUID_CPPUNIT_LA) \
1210 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1212 tests_testACLMaxUserIP_SOURCES= \
1217 DiskIO/ReadRequest.cc \
1218 DiskIO/WriteRequest.cc \
1222 tests/stub_fatal.cc \
1225 HelperChildConfig.h \
1226 HelperChildConfig.cc \
1230 HttpHeaderFieldInfo.h \
1232 HttpHeaderTools.cc \
1233 HttpHdrContRange.cc \
1235 HttpHeaderFieldStat.h \
1240 HttpHdrScTarget.cc \
1242 HttpRequestMethod.cc \
1258 tests/stub_StatHist.cc \
1266 StoreMetaSTDLFS.cc \
1267 StoreMetaUnpacker.cc \
1270 StoreSwapLogData.cc \
1278 tests/stub_access_log.cc \
1281 tests/stub_cache_cf.cc \
1282 tests/stub_client_side.cc \
1283 tests/stub_debug.cc \
1284 tests/stub_DelayId.cc \
1285 tests/stub_DiskIOModule.cc \
1286 tests/stub_errorpage.cc \
1289 tests/stub_HttpRequest.cc \
1290 tests/stub_HttpReply.cc \
1291 tests/stub_ipc_TypedMsgHdr.cc \
1292 tests/stub_libauth.cc \
1293 tests/stub_libcomm.cc \
1294 tests/stub_libformat.cc \
1295 tests/stub_libsslsquid.cc \
1296 tests/stub_MemObject.cc \
1297 tests/stub_MemStore.cc \
1299 tests/stub_mime.cc \
1300 tests/stub_pconn.cc \
1301 tests/stub_Port.cc \
1303 tests/stub_store.cc \
1305 tests/stub_store_rebuild.cc \
1306 tests/stub_store_stats.cc \
1307 tests/stub_store_swapout.cc \
1309 tests/stub_tools.cc \
1310 tests/stub_cache_manager.cc \
1311 tests/stub_UdsOp.cc \
1312 tests/testACLMaxUserIP.cc \
1313 tests/testACLMaxUserIP.h \
1325 nodist_tests_testACLMaxUserIP_SOURCES= \
1327 tests_testACLMaxUserIP_LDADD= \
1328 http/libsquid-http.la \
1341 $(top_builddir)/lib/libmisccontainers.la \
1342 $(top_builddir)/lib/libmiscencoding.la \
1343 $(top_builddir)/lib/libmiscutil.la \
1346 $(SQUID_CPPUNIT_LIBS) \
1350 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1351 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1352 ## $(SQUID_CPPUNIT_LA)
1354 ## a demonstration test that does nothing but shows the salient points
1355 ## involved in writing tests.
1356 tests_testBoilerplate_SOURCES = \
1357 tests/testBoilerplate.cc \
1359 tests/testBoilerplate.h \
1361 nodist_tests_testBoilerplate_SOURCES = \
1363 tests_testBoilerplate_LDADD= \
1364 $(SQUID_CPPUNIT_LIBS) \
1368 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1369 tests_testBoilerplate_DEPENDENCIES = \
1372 ## Tests of the CacheManager module.
1373 tests_testCacheManager_SOURCES = \
1381 HttpRequestMethod.cc \
1385 tests/testCacheManager.cc \
1386 tests/testCacheManager.h \
1388 tests/stub_main_cc.cc \
1389 tests/stub_ipc_Forwarder.cc \
1390 tests/stub_store_stats.cc \
1405 ChunkedCodingParser.cc \
1410 client_side_reply.cc \
1411 client_side_request.cc \
1420 $(DELAY_POOL_SOURCE) \
1431 ExternalACLEntry.cc \
1433 tests/stub_fatal.cc \
1449 HelperChildConfig.h \
1450 HelperChildConfig.cc \
1460 HttpHeaderFieldInfo.h \
1462 HttpHeaderTools.cc \
1463 HttpHeaderFieldStat.h \
1467 HttpHdrContRange.cc \
1470 HttpHdrScTarget.cc \
1503 peer_proxy_negotiate_auth.h \
1504 peer_proxy_negotiate_auth.cc \
1507 peer_sourcehash.cc \
1511 tests/stub_redirect.cc \
1527 tests/stub_libauth.cc \
1528 tests/stub_StatHist.cc \
1547 StoreFileSystem.cc \
1552 StoreMetaSTDLFS.cc \
1553 StoreMetaUnpacker.cc \
1556 StoreSwapLogData.cc \
1575 nodist_tests_testCacheManager_SOURCES = \
1577 $(DISKIO_GEN_SOURCE)
1578 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1579 tests_testCacheManager_LDADD = \
1580 http/libsquid-http.la \
1592 icmp/libicmp.la icmp/libicmp-core.la \
1594 format/libformat.la \
1598 $(ADAPTATION_LIBS) \
1605 $(top_builddir)/lib/libmisccontainers.la \
1606 $(top_builddir)/lib/libmiscencoding.la \
1607 $(top_builddir)/lib/libmiscutil.la \
1609 $(SQUID_CPPUNIT_LIBS) \
1610 $(SQUID_CPPUNIT_LA) \
1615 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1616 tests_testCacheManager_DEPENDENCIES = \
1620 tests_testDiskIO_SOURCES = \
1628 $(DELAY_POOL_SOURCE) \
1636 tests/stub_fatal.cc \
1645 HttpHeaderFieldStat.h \
1649 HttpHdrContRange.cc \
1651 HttpHdrScTarget.cc \
1653 HttpHeaderFieldInfo.h \
1655 HttpHeaderTools.cc \
1660 HttpRequestMethod.cc \
1682 tests/stub_StatHist.cc \
1684 StoreFileSystem.cc \
1689 StoreMetaSTDLFS.cc \
1690 StoreMetaUnpacker.cc \
1693 StoreSwapLogData.cc \
1707 tests/stub_access_log.cc \
1711 tests/stub_cache_cf.cc \
1712 tests/stub_cache_manager.cc \
1713 tests/stub_client_db.cc \
1714 client_side_request.h \
1715 tests/stub_client_side_request.cc \
1716 tests/stub_debug.cc \
1717 tests/stub_errorpage.cc \
1718 tests/stub_helper.cc \
1719 tests/stub_HelperChildConfig.cc \
1720 tests/stub_HttpRequest.cc \
1721 tests/stub_http.cc \
1724 tests/stub_internal.cc \
1726 tests/stub_ipcache.cc \
1727 tests/stub_libauth.cc \
1728 tests/stub_libeui.cc \
1729 tests/stub_libformat.cc \
1730 tests/stub_libicmp.cc \
1731 tests/stub_MemStore.cc \
1733 tests/stub_mime.cc \
1734 tests/stub_pconn.cc \
1735 tests/stub_Port.cc \
1736 tests/stub_store_client.cc \
1737 tests/stub_store_stats.cc \
1739 tests/stub_store_rebuild.cc \
1740 tests/stub_UdsOp.cc \
1741 tests/testDiskIO.cc \
1742 tests/testDiskIO.h \
1744 tests/testStoreSupport.cc \
1745 tests/testStoreSupport.h \
1755 nodist_tests_testDiskIO_SOURCES= \
1757 $(DISKIO_GEN_SOURCE) \
1761 tests_testDiskIO_LDADD = \
1762 http/libsquid-http.la \
1765 DnsLookupDetails.o \
1784 $(top_builddir)/lib/libmisccontainers.la \
1785 $(top_builddir)/lib/libmiscencoding.la \
1786 $(top_builddir)/lib/libmiscutil.la \
1788 $(SQUID_CPPUNIT_LIBS) \
1793 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1794 tests_testDiskIO_DEPENDENCIES = \
1799 ## Tests of the Even module.
1800 tests_testEvent_SOURCES = \
1815 ChunkedCodingParser.cc \
1820 client_side_reply.cc \
1821 client_side_request.cc \
1831 $(DELAY_POOL_SOURCE) \
1844 ExternalACLEntry.cc \
1847 tests/stub_fatal.cc \
1862 HelperChildConfig.h \
1863 HelperChildConfig.cc \
1873 HttpHeaderFieldInfo.h \
1875 HttpHeaderTools.cc \
1876 HttpHeaderFieldStat.h \
1880 HttpHdrContRange.cc \
1883 HttpHdrScTarget.cc \
1891 HttpRequestMethod.cc \
1924 peer_proxy_negotiate_auth.h \
1925 peer_proxy_negotiate_auth.cc \
1928 peer_sourcehash.cc \
1932 tests/stub_redirect.cc \
1967 StoreFileSystem.cc \
1972 StoreMetaSTDLFS.cc \
1973 StoreMetaUnpacker.cc \
1976 StoreSwapLogData.cc \
1979 tests/CapturingStoreEntry.h \
1980 tests/testEvent.cc \
1983 tests/stub_main_cc.cc \
1984 tests/stub_ipc_Forwarder.cc \
1985 tests/stub_libauth.cc \
1986 tests/stub_libeui.cc \
1987 tests/stub_store_stats.cc \
2005 nodist_tests_testEvent_SOURCES = \
2007 $(DISKIO_GEN_SOURCE)
2008 tests_testEvent_LDADD = \
2009 http/libsquid-http.la \
2020 icmp/libicmp.la icmp/libicmp-core.la \
2023 format/libformat.la \
2025 $(ADAPTATION_LIBS) \
2028 $(top_builddir)/lib/libmisccontainers.la \
2029 $(top_builddir)/lib/libmiscencoding.la \
2030 $(top_builddir)/lib/libmiscutil.la \
2037 $(SQUID_CPPUNIT_LIBS) \
2038 $(SQUID_CPPUNIT_LA) \
2043 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2044 tests_testEvent_DEPENDENCIES = \
2048 ## Tests of the EventLoop module.
2049 tests_testEventLoop_SOURCES = \
2064 ChunkedCodingParser.cc \
2069 client_side_reply.cc \
2070 client_side_request.cc \
2080 $(DELAY_POOL_SOURCE) \
2093 ExternalACLEntry.cc \
2096 tests/stub_fatal.cc \
2111 HelperChildConfig.h \
2112 HelperChildConfig.cc \
2122 HttpHeaderFieldInfo.h \
2124 HttpHeaderTools.cc \
2125 HttpHeaderFieldStat.h \
2129 HttpHdrContRange.cc \
2132 HttpHdrScTarget.cc \
2140 HttpRequestMethod.cc \
2173 peer_proxy_negotiate_auth.h \
2174 peer_proxy_negotiate_auth.cc \
2177 peer_sourcehash.cc \
2182 tests/stub_redirect.cc \
2215 StoreFileSystem.cc \
2220 StoreMetaSTDLFS.cc \
2221 StoreMetaUnpacker.cc \
2224 StoreSwapLogData.cc \
2229 tests/testEventLoop.cc \
2230 tests/testEventLoop.h \
2232 tests/stub_main_cc.cc \
2233 tests/stub_ipc_Forwarder.cc \
2234 tests/stub_libauth.cc \
2235 tests/stub_libeui.cc \
2236 tests/stub_store_stats.cc \
2254 nodist_tests_testEventLoop_SOURCES = \
2256 $(DISKIO_GEN_SOURCE)
2257 tests_testEventLoop_LDADD = \
2258 http/libsquid-http.la \
2269 icmp/libicmp.la icmp/libicmp-core.la \
2272 format/libformat.la \
2274 $(ADAPTATION_LIBS) \
2277 $(top_builddir)/lib/libmisccontainers.la \
2278 $(top_builddir)/lib/libmiscencoding.la \
2279 $(top_builddir)/lib/libmiscutil.la \
2286 $(SQUID_CPPUNIT_LIBS) \
2287 $(SQUID_CPPUNIT_LA) \
2292 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2293 tests_testEventLoop_DEPENDENCIES = \
2297 tests_test_http_range_SOURCES = \
2312 ChunkedCodingParser.cc \
2317 client_side_reply.cc \
2318 client_side_request.cc \
2328 $(DELAY_POOL_SOURCE) \
2340 tests/stub_libauth.cc \
2341 tests/stub_fatal.cc \
2356 HelperChildConfig.h \
2357 HelperChildConfig.cc \
2365 HttpHeaderFieldStat.h \
2369 HttpHdrContRange.cc \
2372 HttpHdrScTarget.cc \
2375 HttpHeaderFieldInfo.h \
2377 HttpHeaderTools.cc \
2385 HttpRequestMethod.cc \
2417 peer_proxy_negotiate_auth.h \
2418 peer_proxy_negotiate_auth.cc \
2421 peer_sourcehash.cc \
2426 tests/stub_redirect.cc \
2459 StoreFileSystem.cc \
2464 StoreMetaSTDLFS.cc \
2465 StoreMetaUnpacker.cc \
2468 StoreSwapLogData.cc \
2473 tests/test_http_range.cc \
2474 tests/stub_external_acl.cc \
2475 tests/stub_ipc_Forwarder.cc \
2476 tests/stub_libeui.cc \
2477 tests/stub_main_cc.cc \
2478 tests/stub_MemStore.cc \
2479 tests/stub_store_stats.cc \
2496 nodist_tests_test_http_range_SOURCES = \
2498 $(DISKIO_GEN_SOURCE)
2499 tests_test_http_range_LDADD = \
2500 http/libsquid-http.la \
2510 icmp/libicmp.la icmp/libicmp-core.la \
2513 format/libformat.la \
2517 $(ADAPTATION_LIBS) \
2524 $(top_builddir)/lib/libmisccontainers.la \
2525 $(top_builddir)/lib/libmiscencoding.la \
2526 $(top_builddir)/lib/libmiscutil.la \
2528 $(SQUID_CPPUNIT_LIBS) \
2529 $(SQUID_CPPUNIT_LA) \
2534 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2535 tests_test_http_range_DEPENDENCIES = \
2538 tests_testHttpParser_SOURCES = \
2549 tests/stub_cache_cf.cc \
2550 tests/stub_cache_manager.cc \
2551 tests/stub_debug.cc \
2552 tests/stub_event.cc \
2553 tests/stub_HelperChildConfig.cc \
2555 tests/stub_tools.cc \
2556 tests/testHttpParser.cc \
2557 tests/testHttpParser.h \
2562 nodist_tests_testHttpParser_SOURCES = \
2564 tests_testHttpParser_LDADD= \
2565 http/libsquid-http.la \
2569 $(top_builddir)/lib/libmiscutil.la \
2570 $(SQUID_CPPUNIT_LIBS) \
2573 tests_testHttpParser_LDFLAGS = $(LIBADD_DL)
2574 tests_testHttpParser_DEPENDENCIES = \
2577 ## Tests of the HttpRequest module.
2578 tests_testHttpRequest_SOURCES = \
2580 $(ACL_REGISTRATION_SOURCES) \
2586 HttpRequestMethod.cc \
2590 tests/testHttpRequest.h \
2591 tests/testHttpRequest.cc \
2592 tests/testHttpRequestMethod.h \
2593 tests/testHttpRequestMethod.cc \
2595 tests/stub_DiskIOModule.cc \
2596 tests/stub_main_cc.cc \
2597 tests/stub_ipc_Forwarder.cc \
2598 tests/stub_libeui.cc \
2599 tests/stub_store_stats.cc \
2615 ChunkedCodingParser.cc \
2620 client_side_reply.cc \
2621 client_side_request.cc \
2630 $(DELAY_POOL_SOURCE) \
2639 ExternalACLEntry.cc \
2641 tests/stub_fatal.cc \
2654 HelperChildConfig.h \
2655 HelperChildConfig.cc \
2665 HttpHeaderFieldInfo.h \
2667 HttpHeaderTools.cc \
2668 HttpHeaderFieldStat.h \
2672 HttpHdrContRange.cc \
2675 HttpHdrScTarget.cc \
2708 peer_proxy_negotiate_auth.h \
2709 peer_proxy_negotiate_auth.cc \
2712 peer_sourcehash.cc \
2716 tests/stub_redirect.cc \
2749 StoreFileSystem.cc \
2754 StoreMetaSTDLFS.cc \
2755 StoreMetaUnpacker.cc \
2758 StoreSwapLogData.cc \
2779 nodist_tests_testHttpRequest_SOURCES = \
2781 tests_testHttpRequest_LDADD = \
2796 icmp/libicmp.la icmp/libicmp-core.la \
2799 format/libformat.la \
2800 http/libsquid-http.la \
2802 $(ADAPTATION_LIBS) \
2805 $(top_builddir)/lib/libmisccontainers.la \
2806 $(top_builddir)/lib/libmiscencoding.la \
2807 $(top_builddir)/lib/libmiscutil.la \
2810 $(SQUID_CPPUNIT_LIBS) \
2811 $(SQUID_CPPUNIT_LA) \
2816 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2817 tests_testHttpRequest_DEPENDENCIES = \
2821 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2822 ## first line - what we are testing.
2823 tests_testStore_SOURCES= \
2830 $(DELAY_POOL_SOURCE) \
2833 DiskIO/ReadRequest.cc \
2834 DiskIO/WriteRequest.cc \
2839 tests/stub_fatal.cc \
2842 HttpHeaderFieldStat.h \
2846 HttpHdrContRange.cc \
2849 HttpHdrScTarget.cc \
2850 HttpHeaderFieldInfo.h \
2852 HttpHeaderTools.cc \
2856 HttpRequestMethod.cc \
2889 StoreMetaSTDLFS.cc \
2890 StoreMetaUnpacker.cc \
2893 StoreSwapLogData.cc \
2900 tests/CapturingStoreEntry.h \
2902 tests/stub_access_log.cc \
2906 tests/stub_cache_cf.cc \
2907 tests/stub_cache_manager.cc \
2908 tests/stub_client_side_request.cc \
2909 tests/stub_comm.cc \
2910 tests/stub_debug.cc \
2911 tests/stub_DiskIOModule.cc \
2912 tests/stub_errorpage.cc \
2916 tests/stub_helper.cc \
2917 tests/stub_HelperChildConfig.cc \
2918 tests/stub_http.cc \
2919 tests/stub_libeui.cc \
2920 tests/stub_libformat.cc \
2923 tests/stub_HttpReply.cc \
2924 tests/stub_HttpRequest.cc \
2925 tests/stub_libcomm.cc \
2926 tests/stub_MemStore.cc \
2928 tests/stub_mime.cc \
2929 tests/stub_Port.cc \
2930 tests/stub_store_client.cc \
2931 tests/stub_store_stats.cc \
2933 tests/stub_store_rebuild.cc \
2934 tests/stub_store_swapout.cc \
2936 tests/stub_tools.cc \
2937 tests/stub_UdsOp.cc \
2939 tests/testStore.cc \
2941 tests/testStoreEntryStream.cc \
2942 tests/testStoreEntryStream.h \
2943 tests/testStoreController.cc \
2944 tests/testStoreController.h \
2945 tests/testStoreHashIndex.cc \
2946 tests/testStoreHashIndex.h \
2947 tests/testStoreSupport.cc \
2948 tests/testStoreSupport.h \
2949 tests/TestSwapDir.cc \
2950 tests/TestSwapDir.h \
2957 nodist_tests_testStore_SOURCES= \
2963 tests_testStore_LDADD= \
2964 http/libsquid-http.la \
2979 $(top_builddir)/lib/libmisccontainers.la \
2980 $(top_builddir)/lib/libmiscencoding.la \
2981 $(top_builddir)/lib/libmiscutil.la \
2983 $(SQUID_CPPUNIT_LIBS) \
2986 DnsLookupDetails.o \
2989 tests_testStore_LDFLAGS = $(LIBADD_DL)
2990 tests_testStore_DEPENDENCIES = \
2993 ## string needs mem.cc.
2994 ## mem.cc needs ClientInfo.h
2995 ## libsquid pulls in SquidConfig and children. stub them.
2996 tests_testString_SOURCES = \
3003 tests/testString.cc \
3004 tests/testString.h \
3007 tests/stub_cache_cf.cc \
3008 tests/stub_cache_manager.cc \
3009 tests/stub_debug.cc \
3010 tests/stub_HelperChildConfig.cc \
3012 tests/stub_tools.cc \
3016 nodist_tests_testString_SOURCES = \
3018 tests_testString_LDADD = \
3022 $(top_builddir)/lib/libmiscutil.la \
3024 $(SQUID_CPPUNIT_LIBS) \
3028 tests_testString_LDFLAGS = $(LIBADD_DL)
3029 tests_testString_DEPENDENCIES = \
3050 tests_testUfs_SOURCES = \
3054 tests/stub_cache_manager.cc \
3055 tests/stub_client_db.cc \
3056 tests/stub_HelperChildConfig.cc \
3059 tests/stub_libeui.cc \
3060 tests/stub_MemStore.cc \
3061 tests/stub_pconn.cc \
3062 tests/stub_Port.cc \
3063 tests/stub_UdsOp.cc \
3065 tests/stub_internal.cc \
3066 tests/stub_libformat.cc \
3068 tests/stub_store_rebuild.cc \
3069 tests/stub_store_stats.cc \
3071 tests/stub_fatal.cc \
3093 StoreSwapLogData.cc \
3098 StoreMetaSTDLFS.cc \
3099 StoreMetaUnpacker.cc \
3102 StoreFileSystem.cc \
3109 $(DELAY_POOL_SOURCE) \
3119 HttpRequestMethod.cc \
3128 tests/stub_cache_cf.cc \
3129 tests/stub_helper.cc \
3132 tests/stub_debug.cc \
3133 tests/stub_client_side_request.cc \
3134 tests/stub_http.cc \
3138 tests/stub_mime.cc \
3139 HttpHeaderFieldInfo.h \
3141 HttpHeaderTools.cc \
3148 HttpHdrContRange.cc \
3150 HttpHeaderFieldStat.h \
3155 HttpHdrScTarget.cc \
3165 tests/stub_errorpage.cc \
3166 tests/stub_HttpRequest.cc \
3168 tests/stub_access_log.cc \
3171 tests/stub_store_client.cc \
3173 tests/stub_tools.cc \
3174 tests/testStoreSupport.cc \
3175 tests/testStoreSupport.h \
3182 nodist_tests_testUfs_SOURCES = \
3184 $(DISKIO_GEN_SOURCE) \
3188 tests_testUfs_LDADD = \
3189 http/libsquid-http.la \
3191 DnsLookupDetails.o \
3213 $(top_builddir)/lib/libmisccontainers.la \
3214 $(top_builddir)/lib/libmiscencoding.la \
3215 $(top_builddir)/lib/libmiscutil.la \
3217 $(SQUID_CPPUNIT_LIBS) \
3221 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3222 tests_testUfs_DEPENDENCIES = \
3225 check_PROGRAMS += testRefCount
3226 testRefCount_SOURCES= \
3229 tests/stub_cbdata.cc \
3230 tests/stub_debug.cc \
3231 tests/stub_MemBuf.cc \
3232 tests/testRefCount.cc
3233 testRefCount_LDADD = \
3235 $(top_builddir)/lib/libmiscutil.la \
3239 tests_testRock_SOURCES = \
3251 tests/stub_fatal.cc \
3258 HttpHeaderFieldStat.h \
3262 HttpHdrContRange.cc \
3265 HttpHdrScTarget.cc \
3268 HttpHeaderFieldInfo.h \
3270 HttpHeaderTools.cc \
3273 HttpRequestMethod.cc \
3293 tests/stub_StatHist.cc \
3297 StoreFileSystem.cc \
3302 StoreMetaSTDLFS.cc \
3304 StoreMetaUnpacker.cc \
3306 StoreSwapLogData.cc \
3320 tests/testStoreSupport.cc \
3321 tests/testStoreSupport.h \
3323 tests/stub_access_log.cc \
3326 tests/stub_cache_cf.cc \
3328 tests/stub_cache_manager.cc \
3329 tests/stub_client_db.cc \
3330 tests/stub_client_side_request.cc \
3331 tests/stub_debug.cc \
3332 tests/stub_errorpage.cc \
3333 tests/stub_HelperChildConfig.cc \
3334 tests/stub_http.cc \
3335 tests/stub_HttpRequest.cc \
3338 tests/stub_ipcache.cc \
3339 tests/stub_libeui.cc \
3340 tests/stub_libformat.cc \
3341 tests/stub_libicmp.cc \
3342 tests/stub_libmgr.cc \
3343 tests/stub_MemStore.cc \
3345 tests/stub_mime.cc \
3346 tests/stub_Port.cc \
3347 tests/stub_pconn.cc \
3348 tests/stub_store_client.cc \
3350 tests/stub_store_rebuild.cc \
3351 tests/stub_store_stats.cc \
3353 tests/stub_tools.cc \
3359 $(DELAY_POOL_SOURCE) \
3362 nodist_tests_testRock_SOURCES = \
3363 $(DISKIO_GEN_SOURCE) \
3368 tests_testRock_LDADD = \
3369 http/libsquid-http.la \
3386 $(top_builddir)/lib/libmisccontainers.la \
3387 $(top_builddir)/lib/libmiscencoding.la \
3388 $(top_builddir)/lib/libmiscutil.la \
3390 $(SQUID_CPPUNIT_LIBS) \
3394 tests_testRock_LDFLAGS = $(INCLUDES) $(LIBADD_DL)
3395 tests_testRock_DEPENDENCIES = \
3398 ## Tests of the URL module.
3399 ## TODO: Trim this down once the insanity is over.
3400 tests_testURL_SOURCES = \
3402 $(ACL_REGISTRATION_SOURCES) \
3416 ChunkedCodingParser.cc \
3421 client_side_reply.cc \
3422 client_side_request.cc \
3431 $(DELAY_POOL_SOURCE) \
3434 DiskIO/ReadRequest.cc \
3435 DiskIO/WriteRequest.cc \
3443 ExternalACLEntry.cc \
3445 tests/stub_fatal.cc \
3460 HelperChildConfig.h \
3461 HelperChildConfig.cc \
3469 HttpHeaderFieldStat.h \
3473 HttpHdrContRange.cc \
3476 HttpHdrScTarget.cc \
3479 HttpHeaderFieldInfo.h \
3481 HttpHeaderTools.cc \
3489 HttpRequestMethod.cc \
3522 peer_proxy_negotiate_auth.h \
3523 peer_proxy_negotiate_auth.cc \
3526 peer_sourcehash.cc \
3530 tests/stub_redirect.cc \
3544 tests/stub_StatHist.cc \
3563 StoreFileSystem.cc \
3568 StoreMetaSTDLFS.cc \
3569 StoreMetaUnpacker.cc \
3572 StoreSwapLogData.cc \
3578 tests/stub_debug.cc \
3579 tests/stub_DiskIOModule.cc \
3580 tests/stub_main_cc.cc \
3581 tests/stub_ipc_Forwarder.cc \
3582 tests/stub_store_stats.cc \
3585 tests/testURLScheme.cc \
3586 tests/testURLScheme.h \
3604 nodist_tests_testURL_SOURCES = \
3606 tests_testURL_LDADD = \
3607 http/libsquid-http.la \
3623 icmp/libicmp.la icmp/libicmp-core.la \
3627 format/libformat.la \
3630 $(ADAPTATION_LIBS) \
3633 $(top_builddir)/lib/libmisccontainers.la \
3634 $(top_builddir)/lib/libmiscencoding.la \
3635 $(top_builddir)/lib/libmiscutil.la \
3637 $(SQUID_CPPUNIT_LIBS) \
3638 $(SQUID_CPPUNIT_LA) \
3643 tests_testURL_LDFLAGS = $(LIBADD_DL)
3644 tests_testURL_DEPENDENCIES = \
3648 tests_testSBuf_SOURCES= \
3652 tests/SBufFindTest.h \
3653 tests/SBufFindTest.cc \
3658 tests/stub_debug.cc \
3659 tests/stub_fatal.cc \
3660 tests/stub_HelperChildConfig.cc \
3661 tests/stub_cache_cf.cc \
3662 tests/stub_cache_manager.cc \
3663 tests/stub_store.cc \
3664 tests/stub_store_stats.cc \
3665 tests/stub_tools.cc \
3670 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3671 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3672 tests_testSBuf_LDADD=\
3673 $(SQUID_CPPUNIT_LIBS) \
3674 $(SQUID_CPPUNIT_LA) \
3680 $(top_builddir)/lib/libmiscutil.la \
3682 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3684 tests_testConfigParser_SOURCES = \
3692 tests/stub_fatal.cc \
3694 tests/testConfigParser.cc \
3695 tests/testConfigParser.h \
3698 tests/stub_cache_cf.cc \
3699 tests/stub_cache_manager.cc \
3700 tests/stub_debug.cc \
3701 tests/stub_HelperChildConfig.cc \
3703 tests/stub_tools.cc \
3707 nodist_tests_testConfigParser_SOURCES = \
3709 tests_testConfigParser_LDADD = \
3713 $(top_builddir)/lib/libmiscutil.la \
3715 $(SQUID_CPPUNIT_LIBS) \
3719 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3720 tests_testConfigParser_DEPENDENCIES = \
3723 tests_testStatHist_SOURCES = \
3726 tests/stub_fatal.cc \
3731 tests/stub_cache_manager.cc \
3732 tests/stub_comm.cc \
3733 tests/stub_debug.cc \
3734 tests/stub_DelayId.cc \
3735 tests/stub_HelperChildConfig.cc \
3738 tests/stub_MemObject.cc \
3740 tests/stub_mime.cc \
3741 tests/stub_pconn.cc \
3742 tests/stub_stmem.cc \
3744 tests/stub_store.cc \
3745 tests/stub_store_stats.cc \
3747 tests/stub_tools.cc \
3749 tests/testStatHist.cc \
3750 tests/testStatHist.h \
3752 nodist_tests_testStatHist_SOURCES = \
3754 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3755 tests_testStatHist_LDADD = \
3757 $(top_builddir)/lib/libmiscutil.la \
3758 $(top_builddir)/lib/libmisccontainers.la \
3759 $(SQUID_CPPUNIT_LIBS) \
3760 $(SQUID_CPPUNIT_LA) \
3762 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3764 tests_testVector_SOURCES = \
3765 tests/testVector.cc \
3767 tests/testVector.h \
3769 nodist_tests_testVector_SOURCES = \
3771 tests_testVector_LDADD= \
3772 $(SQUID_CPPUNIT_LIBS) \
3775 tests_testVector_LDFLAGS = $(LIBADD_DL)
3776 tests_testVector_DEPENDENCIES = \
3780 TESTS += testHeaders
3782 ## Special Universal .h dependency test script
3783 ## aborts if error encountered
3784 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3785 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3786 ## src/repl/ has no .h files and its own makefile.
3788 CLEANFILES += testHeaders