1 ## Copyright (C) 1996-2014 The Squid Software Foundation and contributors
3 ## Squid software is distributed under GPLv2+ license and includes
4 ## contributions from numerous individuals and organizations.
5 ## Please see the COPYING and CONTRIBUTORS files for details.
8 include $(top_srcdir)/src/Common.am
10 AUTOMAKE_OPTIONS = subdir-objects
23 OutOfBoundsException.h \
44 LOADABLE_MODULES_SOURCES = \
50 SUBDIRS = base anyp helper ftp parser comm eui acl format clients servers fs repl
51 DIST_SUBDIRS = base anyp helper ftp parser comm eui acl format clients servers fs repl
55 AUTH_LIBS= auth/libauth.la
56 AUTH_ACL_LIBS= auth/libacls.la
57 check_PROGRAMS+= tests/testACLMaxUserIP
61 SUBDIRS += http ip icmp ident log ipc mgr
62 DIST_SUBDIRS += http ip icmp ident log ipc mgr
81 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
83 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
92 DIST_SUBDIRS += adaptation
98 $(top_builddir)/lib/libTrie/libTrie.a
99 ESI_LIBS = $(ESI_LOCAL_LIBS) \
107 DELAY_POOL_ALL_SOURCE = \
109 CompositePoolNode.h \
131 ClientDelayConfig.cc \
134 if ENABLE_DELAY_POOLS
135 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
140 if ENABLE_XPROF_STATS
141 XPROF_STATS_SOURCE = ProfStats.cc
147 HTCPSOURCE = htcp.cc htcp.h
151 LEAKFINDERSOURCE = LeakFinder.cc
157 UNLINKDSOURCE = unlinkd.h unlinkd.cc
160 UNLINKDSOURCE = unlinkd.h
169 if ENABLE_WIN32SPECIFIC
170 WIN32_SOURCE = win32.cc
171 WINSVC_SOURCE = WinSvc.cc
178 IPC_SOURCE = SquidIpc.h ipc_win32.cc
180 IPC_SOURCE = SquidIpc.h ipc.cc
183 AIO_WIN32_ALL_SOURCES = \
184 DiskIO/AIO/aio_win32.cc \
185 DiskIO/AIO/aio_win32.h
187 AIO_WIN32_SOURCES = $(AIO_WIN32_ALL_SOURCES)
192 if ENABLE_WIN32_AIOPS
193 AIOPS_SOURCE = DiskIO/DiskThreads/aiops_win32.cc \
194 DiskIO/DiskThreads/CommIO.cc \
195 DiskIO/DiskThreads/CommIO.h
197 AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc \
198 DiskIO/DiskThreads/CommIO.cc \
199 DiskIO/DiskThreads/CommIO.h
202 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a \
203 libMmapped.a libIpcIo.a
204 noinst_LIBRARIES = $(DISK_LIBS)
205 noinst_LTLIBRARIES = libsquid.la
208 DiskIO/DiskDaemon/diskd \
215 ## cfgen is used when building squid
216 ## ufsdump is a debug utility, it is possibly useful for end users with cache
217 ## corruption, but at this point we do not install it.
231 cf_gen_SOURCES = cf_gen.cc
232 nodist_cf_gen_HEADER = cf_gen_defines.cci
233 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
235 cf_gen.$(OBJEXT): cf_gen_defines.cci
237 ## cf_gen.cc needs src/cf_gen_defines.cci
238 AM_CPPFLAGS += -I$(top_builddir)/src
241 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
244 DiskIO/DiskIOModule.cc \
245 DiskIO/ReadRequest.cc \
246 DiskIO/ReadRequest.h \
247 DiskIO/WriteRequest.cc \
248 DiskIO/WriteRequest.h \
250 DiskIO/DiskIOStrategy.h \
251 DiskIO/IORequestor.h \
252 DiskIO/DiskIOModule.h \
255 DISKIO_GEN_SOURCE = \
256 DiskIO/DiskIOModules_gen.cc
258 DiskIO/DiskIOModules_gen.cc: Makefile
259 $(SHELL) $(srcdir)/DiskIO/modules.sh $(DISK_MODULES) > DiskIO/DiskIOModules_gen.cc
262 # common library for all the binaries and tests. This is kindof a catch all
263 # and smaller libraries split from this are encouraged. Using lt convenience
264 # libraries, dependencies should not be a problem either.
265 libsquid_la_SOURCES = \
276 $(ACL_REGISTRATION_SOURCES) \
290 NeighborTypeDomainList.h \
291 CachePeerDomainList.h \
298 ChunkedCodingParser.cc \
299 ChunkedCodingParser.h \
305 client_side_reply.cc \
306 client_side_reply.h \
307 client_side_request.cc \
308 client_side_request.h \
313 ClientRequestContext.h \
316 clientStreamForward.h \
317 CollapsedForwarding.cc \
318 CollapsedForwarding.h \
319 CompletionDispatcher.cc \
320 CompletionDispatcher.h \
334 $(DELAY_POOL_SOURCE) \
354 ExternalACLEntry.cc \
377 HierarchyLogEntry.h \
382 HttpHeaderFieldStat.h \
391 HttpHdrContRange.cc \
398 HttpHeaderFieldInfo.h \
423 $(LEAKFINDERSOURCE) \
454 $(XPROF_STATS_SOURCE) \
459 peer_proxy_negotiate_auth.h \
460 peer_proxy_negotiate_auth.cc \
480 SBufDetailedStats.h \
481 SBufDetailedStats.cc \
525 StoreMetaUnpacker.cc \
526 StoreMetaUnpacker.h \
527 $(STOREMETA_SOURCE) \
531 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 \
600 CLEANFILES += $(BUILT_SOURCES)
602 nodist_squid_SOURCES = \
603 $(DISKIO_GEN_SOURCE) \
614 clients/libclients.la \
615 servers/libservers.la \
617 helper/libhelper.la \
618 http/libsquid-http.la \
619 parser/libsquid-parser.la \
630 icmp/libicmp.la icmp/libicmp-core.la \
632 format/libformat.la \
643 $(top_builddir)/lib/libmisccontainers.la \
644 $(top_builddir)/lib/libmiscencoding.la \
645 $(top_builddir)/lib/libmiscutil.la \
652 squid_DEPENDENCIES = \
667 clients/libclients.la \
672 format/libformat.la \
675 servers/libservers.la
677 if ENABLE_LOADABLE_MODULES
678 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
679 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
680 squid_LDFLAGS = -export-dynamic -dlopen force
681 ## when static module linking is supported and enabled:
682 ## squid_LDFLAGS = -all-static -dlopen self
684 ## LTDL headers require their local include path...
685 AM_CPPFLAGS += $(INCLTDL)
688 ## Kerberos libraries require their include path...
689 AM_CPPFLAGS += $(KRB5INCS)
692 unlinkd_SOURCES = unlinkd_daemon.cc
697 recv_announce_SOURCES = recv-announce.cc
699 ## What requires what..
700 ## many things want ACLChecklist.cc
701 ## ACLChecklist.cc wants AuthUserRequest.cc
702 ## ACLChecklist.cc wants AuthScheme.cc
703 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
704 ## ACLProxyAuth.cc wants ACLUserData
705 ## ACLProxyAuth.cc wants ACLRegexData
706 ## cache_cf.cc wants $(AUTH_LIBS)
707 ## cache_cf.cc wants Swapdir
708 ## cache_cf.cc wants AnyP::PortCfg
709 ## client_side wants client_db
710 ## client_db wants SNMP_SOURCE
711 ## snmp_core wants ACLStringData
712 ## SwapDir wants ConfigOption
713 ## tools.cc wants ip/libip.la
714 ## client_side.cc wants ip/libip.la
715 ## mem.cc wants ClientInfo.h
716 ## libbase.la wants cbdata.*
717 ## libbase.la wants MemBuf.*
732 tests/stub_StoreMeta.cc \
733 StoreMetaUnpacker.cc \
740 helper/ChildConfig.h \
741 tests/stub_HelperChildConfig.cc \
742 http/RequestMethod.cc \
769 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.la $(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 $(BUILDCXX) $(BUILDCXXFLAGS) -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/testHttp1Parser \
1071 tests/testHttpReply \
1072 tests/testHttpRequest \
1077 tests/testSBufList \
1078 tests/testConfigParser \
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=\
1119 tests/stub_ETag.cc \
1121 tests/stub_fatal.cc \
1124 HttpHeaderFieldStat.h \
1128 HttpHdrContRange.cc \
1129 HttpHdrContRange.h \
1133 HttpHdrScTarget.cc \
1138 HttpHeaderFieldInfo.h \
1140 HttpHeaderTools.cc \
1163 SBufDetailedStats.h \
1164 tests/stub_SBufDetailedStats.cc \
1169 tests/stub_access_log.cc \
1172 tests/stub_cache_cf.cc \
1173 tests/stub_cache_manager.cc \
1174 tests/stub_comm.cc \
1175 tests/stub_debug.cc \
1176 tests/stub_errorpage.cc \
1177 tests/stub_event.cc \
1179 tests/stub_HelperChildConfig.cc \
1180 tests/stub_libformat.cc \
1181 tests/stub_libauth.cc \
1182 tests/stub_libcomm.cc \
1183 tests/stub_libmgr.cc \
1184 tests/stub_libsslsquid.cc \
1188 tests/stub_StatHist.cc \
1190 tests/stub_store.cc \
1191 tests/stub_store_stats.cc \
1193 tests/stub_tools.cc \
1194 tests/stub_HttpRequest.cc \
1195 tests/testHttpReply.cc \
1196 tests/testHttpReply.h \
1198 tests/stub_time.cc \
1202 nodist_tests_testHttpReply_SOURCES=\
1204 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1205 tests_testHttpReply_LDADD=\
1207 http/libsquid-http.la \
1208 parser/libsquid-parser.la \
1216 $(top_builddir)/lib/libmisccontainers.la \
1217 $(top_builddir)/lib/libmiscencoding.la \
1218 $(top_builddir)/lib/libmiscutil.la \
1219 $(SQUID_CPPUNIT_LIBS) \
1220 $(SQUID_CPPUNIT_LA) \
1225 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1227 tests_testACLMaxUserIP_SOURCES= \
1230 tests/stub_CollapsedForwarding.cc \
1233 DiskIO/ReadRequest.cc \
1234 DiskIO/WriteRequest.cc \
1235 tests/stub_ETag.cc \
1238 tests/stub_fatal.cc \
1244 HttpHeaderFieldInfo.h \
1246 HttpHeaderTools.cc \
1247 HttpHdrContRange.cc \
1249 HttpHeaderFieldStat.h \
1254 HttpHdrScTarget.cc \
1273 tests/stub_StatHist.cc \
1276 SBufDetailedStats.h \
1277 tests/stub_SBufDetailedStats.cc \
1281 tests/stub_StoreMeta.cc \
1282 StoreMetaUnpacker.cc \
1283 StoreSwapLogData.cc \
1288 tests/stub_SwapDir.cc \
1292 tests/stub_access_log.cc \
1295 tests/stub_cache_cf.cc \
1296 tests/stub_client_side.cc \
1297 tests/stub_debug.cc \
1298 tests/stub_DelayId.cc \
1299 tests/stub_DiskIOModule.cc \
1300 tests/stub_errorpage.cc \
1303 tests/stub_HttpRequest.cc \
1304 tests/stub_HttpReply.cc \
1305 tests/stub_ipc_TypedMsgHdr.cc \
1306 tests/stub_libauth.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 \
1318 tests/stub_store_client.cc \
1320 tests/stub_store_rebuild.cc \
1321 tests/stub_store_stats.cc \
1322 tests/stub_store_swapout.cc \
1324 tests/stub_tools.cc \
1325 tests/stub_cache_manager.cc \
1326 tests/stub_UdsOp.cc \
1327 tests/testACLMaxUserIP.cc \
1328 tests/testACLMaxUserIP.h \
1330 tests/stub_time.cc \
1338 nodist_tests_testACLMaxUserIP_SOURCES= \
1340 tests_testACLMaxUserIP_LDADD= \
1342 helper/libhelper.la \
1343 http/libsquid-http.la \
1344 parser/libsquid-parser.la \
1356 $(top_builddir)/lib/libmisccontainers.la \
1357 $(top_builddir)/lib/libmiscencoding.la \
1358 $(top_builddir)/lib/libmiscutil.la \
1362 $(SQUID_CPPUNIT_LIBS) \
1366 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1367 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1368 ## $(SQUID_CPPUNIT_LA)
1370 ## a demonstration test that does nothing but shows the salient points
1371 ## involved in writing tests.
1372 tests_testBoilerplate_SOURCES = \
1373 tests/testBoilerplate.cc \
1375 tests/testBoilerplate.h \
1376 tests/stub_debug.cc \
1378 nodist_tests_testBoilerplate_SOURCES = \
1379 tests/stub_cbdata.cc \
1380 tests/stub_MemBuf.cc \
1382 tests_testBoilerplate_LDADD= \
1383 $(SQUID_CPPUNIT_LIBS) \
1388 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1389 tests_testBoilerplate_DEPENDENCIES = \
1392 ## Tests of the CacheManager module.
1393 tests_testCacheManager_SOURCES = \
1402 tests/testCacheManager.cc \
1403 tests/testCacheManager.h \
1405 tests/stub_main_cc.cc \
1406 tests/stub_ipc_Forwarder.cc \
1407 tests/stub_store_stats.cc \
1408 tests/stub_EventLoop.cc \
1419 tests/stub_CacheDigest.cc \
1421 tests/stub_carp.cc \
1423 ChunkedCodingParser.cc \
1428 client_side_reply.cc \
1429 client_side_request.cc \
1432 tests/stub_CollapsedForwarding.cc \
1439 $(DELAY_POOL_SOURCE) \
1447 tests/stub_ETag.cc \
1450 ExternalACLEntry.cc \
1452 tests/stub_fatal.cc \
1473 HttpHeaderFieldInfo.h \
1475 HttpHeaderTools.cc \
1476 HttpHeaderFieldStat.h \
1480 HttpHdrContRange.cc \
1483 HttpHdrScTarget.cc \
1515 peer_proxy_negotiate_auth.h \
1516 peer_proxy_negotiate_auth.cc \
1519 peer_sourcehash.cc \
1525 tests/stub_redirect.cc \
1530 SBufDetailedStats.h \
1531 tests/stub_SBufDetailedStats.cc \
1543 tests/stub_libauth_acls.cc \
1544 tests/stub_libauth.cc \
1545 tests/stub_StatHist.cc \
1551 tests/stub_store_digest.cc \
1564 StoreFileSystem.cc \
1566 tests/stub_StoreMeta.cc \
1567 StoreMetaUnpacker.cc \
1568 StoreSwapLogData.cc \
1572 tests/stub_tunnel.cc \
1573 tests/stub_SwapDir.cc \
1580 tests/stub_wccp2.cc \
1582 tests/stub_whois.cc \
1587 nodist_tests_testCacheManager_SOURCES = \
1589 $(DISKIO_GEN_SOURCE)
1590 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1591 tests_testCacheManager_LDADD = \
1593 clients/libclients.la \
1594 servers/libservers.la \
1596 helper/libhelper.la \
1597 http/libsquid-http.la \
1598 parser/libsquid-parser.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 \
1626 $(SQUID_CPPUNIT_LIBS) \
1627 $(SQUID_CPPUNIT_LA) \
1632 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1633 tests_testCacheManager_DEPENDENCIES = \
1637 tests_testDiskIO_SOURCES = \
1639 tests/stub_CacheDigest.cc \
1643 tests/stub_CollapsedForwarding.cc \
1646 $(DELAY_POOL_SOURCE) \
1650 tests/stub_ETag.cc \
1654 tests/stub_fatal.cc \
1663 HttpHeaderFieldStat.h \
1667 HttpHdrContRange.cc \
1669 HttpHdrScTarget.cc \
1671 HttpHeaderFieldInfo.h \
1673 HttpHeaderTools.cc \
1701 tests/stub_StatHist.cc \
1704 SBufDetailedStats.h \
1705 tests/stub_SBufDetailedStats.cc \
1706 StoreFileSystem.cc \
1708 tests/stub_StoreMeta.cc \
1709 StoreMetaUnpacker.cc \
1710 StoreSwapLogData.cc \
1722 tests/stub_SwapDir.cc \
1725 tests/stub_access_log.cc \
1729 tests/stub_cache_cf.cc \
1730 tests/stub_cache_manager.cc \
1731 tests/stub_client_db.cc \
1732 client_side_request.h \
1733 tests/stub_client_side_request.cc \
1734 tests/stub_debug.cc \
1735 tests/stub_errorpage.cc \
1736 tests/stub_helper.cc \
1737 tests/stub_HelperChildConfig.cc \
1738 tests/stub_HttpRequest.cc \
1739 tests/stub_http.cc \
1742 tests/stub_internal.cc \
1744 tests/stub_ipcache.cc \
1745 tests/stub_libauth_acls.cc \
1746 tests/stub_libauth.cc \
1747 tests/stub_libeui.cc \
1748 tests/stub_libformat.cc \
1749 tests/stub_libicmp.cc \
1750 tests/stub_MemStore.cc \
1752 tests/stub_mime.cc \
1753 tests/stub_neighbors.cc \
1754 tests/stub_pconn.cc \
1755 tests/stub_Port.cc \
1756 tests/stub_stat.cc \
1757 tests/stub_store_client.cc \
1758 tests/stub_store_stats.cc \
1760 tests/stub_store_rebuild.cc \
1761 tests/stub_UdsOp.cc \
1762 tests/testDiskIO.cc \
1763 tests/testDiskIO.h \
1765 tests/testStoreSupport.cc \
1766 tests/testStoreSupport.h \
1767 tests/stub_time.cc \
1775 nodist_tests_testDiskIO_SOURCES= \
1777 $(DISKIO_GEN_SOURCE) \
1781 tests_testDiskIO_LDADD = \
1783 http/libsquid-http.la \
1784 parser/libsquid-parser.la \
1787 DnsLookupDetails.o \
1804 $(top_builddir)/lib/libmisccontainers.la \
1805 $(top_builddir)/lib/libmiscencoding.la \
1806 $(top_builddir)/lib/libmiscutil.la \
1809 $(SQUID_CPPUNIT_LIBS) \
1814 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1815 tests_testDiskIO_DEPENDENCIES = \
1820 ## Tests of the Even module.
1821 tests_testEvent_SOURCES = \
1825 tests/stub_CacheDigest.cc \
1834 tests/stub_carp.cc \
1836 ChunkedCodingParser.cc \
1841 client_side_reply.cc \
1842 client_side_request.cc \
1845 tests/stub_CollapsedForwarding.cc \
1853 $(DELAY_POOL_SOURCE) \
1861 tests/stub_ETag.cc \
1866 ExternalACLEntry.cc \
1869 tests/stub_fatal.cc \
1889 HttpHeaderFieldInfo.h \
1891 HttpHeaderTools.cc \
1892 HttpHeaderFieldStat.h \
1896 HttpHdrContRange.cc \
1899 HttpHdrScTarget.cc \
1938 peer_proxy_negotiate_auth.h \
1939 peer_proxy_negotiate_auth.cc \
1942 peer_sourcehash.cc \
1946 tests/stub_redirect.cc \
1953 SBufDetailedStats.h \
1954 tests/stub_SBufDetailedStats.cc \
1970 tests/stub_store_digest.cc \
1983 StoreFileSystem.cc \
1985 tests/stub_StoreMeta.cc \
1986 StoreMetaUnpacker.cc \
1987 StoreSwapLogData.cc \
1989 tests/stub_SwapDir.cc \
1990 tests/CapturingStoreEntry.h \
1991 tests/testEvent.cc \
1994 tests/stub_main_cc.cc \
1995 tests/stub_ipc_Forwarder.cc \
1996 tests/stub_libauth_acls.cc \
1997 tests/stub_libauth.cc \
1998 tests/stub_libeui.cc \
1999 tests/stub_store_stats.cc \
2004 tests/stub_tunnel.cc \
2011 tests/stub_wccp2.cc \
2013 tests/stub_whois.cc \
2017 nodist_tests_testEvent_SOURCES = \
2019 $(DISKIO_GEN_SOURCE)
2020 tests_testEvent_LDADD = \
2022 clients/libclients.la \
2023 servers/libservers.la \
2025 helper/libhelper.la \
2026 http/libsquid-http.la \
2027 parser/libsquid-parser.la \
2036 icmp/libicmp.la icmp/libicmp-core.la \
2039 format/libformat.la \
2041 $(ADAPTATION_LIBS) \
2044 $(top_builddir)/lib/libmisccontainers.la \
2045 $(top_builddir)/lib/libmiscencoding.la \
2046 $(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 = \
2070 tests/stub_CacheDigest.cc \
2079 tests/stub_carp.cc \
2081 ChunkedCodingParser.cc \
2086 client_side_reply.cc \
2087 client_side_request.cc \
2090 tests/stub_CollapsedForwarding.cc \
2098 $(DELAY_POOL_SOURCE) \
2106 tests/stub_ETag.cc \
2111 ExternalACLEntry.cc \
2114 tests/stub_fatal.cc \
2134 HttpHeaderFieldInfo.h \
2136 HttpHeaderTools.cc \
2137 HttpHeaderFieldStat.h \
2141 HttpHdrContRange.cc \
2144 HttpHdrScTarget.cc \
2183 peer_proxy_negotiate_auth.h \
2184 peer_proxy_negotiate_auth.cc \
2187 peer_sourcehash.cc \
2192 tests/stub_redirect.cc \
2196 SBufDetailedStats.h \
2197 tests/stub_SBufDetailedStats.cc \
2214 tests/stub_store_digest.cc \
2227 StoreFileSystem.cc \
2229 tests/stub_StoreMeta.cc \
2230 StoreMetaUnpacker.cc \
2231 StoreSwapLogData.cc \
2235 tests/stub_SwapDir.cc \
2236 tests/testEventLoop.cc \
2237 tests/testEventLoop.h \
2239 tests/stub_main_cc.cc \
2240 tests/stub_ipc_Forwarder.cc \
2241 tests/stub_libauth_acls.cc \
2242 tests/stub_libauth.cc \
2243 tests/stub_libeui.cc \
2244 tests/stub_store_stats.cc \
2249 tests/stub_tunnel.cc \
2256 tests/stub_wccp2.cc \
2258 tests/stub_whois.cc \
2262 nodist_tests_testEventLoop_SOURCES = \
2264 $(DISKIO_GEN_SOURCE)
2265 tests_testEventLoop_LDADD = \
2267 clients/libclients.la \
2268 servers/libservers.la \
2270 helper/libhelper.la \
2271 http/libsquid-http.la \
2272 parser/libsquid-parser.la \
2281 icmp/libicmp.la icmp/libicmp-core.la \
2284 format/libformat.la \
2286 $(ADAPTATION_LIBS) \
2289 $(top_builddir)/lib/libmisccontainers.la \
2290 $(top_builddir)/lib/libmiscencoding.la \
2291 $(top_builddir)/lib/libmiscutil.la \
2299 $(SQUID_CPPUNIT_LIBS) \
2300 $(SQUID_CPPUNIT_LA) \
2305 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2306 tests_testEventLoop_DEPENDENCIES = \
2310 tests_test_http_range_SOURCES = \
2321 tests/stub_CacheDigest.cc \
2323 tests/stub_carp.cc \
2325 ChunkedCodingParser.cc \
2330 client_side_reply.cc \
2331 client_side_request.cc \
2334 tests/stub_CollapsedForwarding.cc \
2342 $(DELAY_POOL_SOURCE) \
2350 tests/stub_ETag.cc \
2354 tests/stub_libauth.cc \
2355 tests/stub_fatal.cc \
2373 HttpHeaderFieldStat.h \
2377 HttpHdrContRange.cc \
2380 HttpHdrScTarget.cc \
2383 HttpHeaderFieldInfo.h \
2385 HttpHeaderTools.cc \
2423 peer_proxy_negotiate_auth.h \
2424 peer_proxy_negotiate_auth.cc \
2427 peer_sourcehash.cc \
2432 tests/stub_redirect.cc \
2437 SBufDetailedStats.h \
2438 tests/stub_SBufDetailedStats.cc \
2454 tests/stub_store_digest.cc \
2467 StoreFileSystem.cc \
2469 tests/stub_StoreMeta.cc \
2470 StoreMetaUnpacker.cc \
2471 StoreSwapLogData.cc \
2475 tests/stub_SwapDir.cc \
2477 tests/test_http_range.cc \
2478 tests/stub_external_acl.cc \
2479 tests/stub_ipc_Forwarder.cc \
2480 tests/stub_libeui.cc \
2481 tests/stub_main_cc.cc \
2482 tests/stub_MemStore.cc \
2483 tests/stub_store_stats.cc \
2484 tests/stub_EventLoop.cc \
2488 tests/stub_tunnel.cc \
2494 tests/stub_wccp2.cc \
2496 tests/stub_whois.cc \
2500 nodist_tests_test_http_range_SOURCES = \
2502 $(DISKIO_GEN_SOURCE)
2503 tests_test_http_range_LDADD = \
2505 clients/libclients.la \
2506 servers/libservers.la \
2508 helper/libhelper.la \
2509 http/libsquid-http.la \
2510 parser/libsquid-parser.la \
2515 parser/libsquid-parser.la \
2519 icmp/libicmp.la icmp/libicmp-core.la \
2522 format/libformat.la \
2526 $(ADAPTATION_LIBS) \
2533 $(top_builddir)/lib/libmisccontainers.la \
2534 $(top_builddir)/lib/libmiscencoding.la \
2535 $(top_builddir)/lib/libmiscutil.la \
2538 $(SQUID_CPPUNIT_LIBS) \
2539 $(SQUID_CPPUNIT_LA) \
2544 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2545 tests_test_http_range_DEPENDENCIES = \
2548 tests_testHttp1Parser_SOURCES = \
2552 tests/stub_MemObject.cc \
2561 tests/stub_SBufDetailedStats.cc \
2562 tests/stub_cache_cf.cc \
2563 tests/stub_cache_manager.cc \
2564 tests/stub_comm.cc \
2565 tests/stub_cbdata.cc \
2566 tests/stub_debug.cc \
2567 tests/stub_event.cc \
2568 tests/stub_HelperChildConfig.cc \
2569 tests/stub_stmem.cc \
2570 tests/stub_store.cc \
2571 tests/stub_store_stats.cc \
2573 tests/stub_tools.cc \
2574 tests/testHttp1Parser.cc \
2575 tests/testHttp1Parser.h \
2577 tests/stub_time.cc \
2580 nodist_tests_testHttp1Parser_SOURCES = \
2582 tests_testHttp1Parser_LDADD= \
2583 http/libsquid-http.la \
2584 parser/libsquid-parser.la \
2589 $(top_builddir)/lib/libmiscutil.la \
2590 $(SQUID_CPPUNIT_LIBS) \
2593 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2594 tests_testHttp1Parser_DEPENDENCIES = \
2597 ## Tests of the HttpRequest module.
2598 tests_testHttpRequest_SOURCES = \
2606 tests/testHttpRequest.h \
2607 tests/testHttpRequest.cc \
2608 tests/testHttpRequestMethod.h \
2609 tests/testHttpRequestMethod.cc \
2611 tests/stub_DiskIOModule.cc \
2612 tests/stub_libauth.cc \
2613 tests/stub_main_cc.cc \
2614 tests/stub_ipc_Forwarder.cc \
2615 tests/stub_libeui.cc \
2616 tests/stub_store_stats.cc \
2617 tests/stub_EventLoop.cc \
2629 tests/stub_CacheDigest.cc \
2631 tests/stub_carp.cc \
2633 ChunkedCodingParser.cc \
2638 client_side_reply.cc \
2639 client_side_request.cc \
2642 tests/stub_CollapsedForwarding.cc \
2649 $(DELAY_POOL_SOURCE) \
2656 tests/stub_ETag.cc \
2658 ExternalACLEntry.cc \
2660 tests/stub_fatal.cc \
2678 HttpHeaderFieldInfo.h \
2680 HttpHeaderTools.cc \
2681 HttpHeaderFieldStat.h \
2685 HttpHdrContRange.cc \
2688 HttpHdrScTarget.cc \
2720 peer_proxy_negotiate_auth.h \
2721 peer_proxy_negotiate_auth.cc \
2724 peer_sourcehash.cc \
2730 tests/stub_libauth_acls.cc \
2731 tests/stub_redirect.cc \
2736 SBufDetailedStats.h \
2737 tests/stub_SBufDetailedStats.cc \
2753 tests/stub_store_digest.cc \
2766 StoreFileSystem.cc \
2768 tests/stub_StoreMeta.cc \
2769 StoreMetaUnpacker.cc \
2770 StoreSwapLogData.cc \
2777 tests/stub_tunnel.cc \
2778 tests/stub_SwapDir.cc \
2784 tests/stub_wccp2.cc \
2786 tests/stub_whois.cc \
2791 nodist_tests_testHttpRequest_SOURCES = \
2793 tests_testHttpRequest_LDADD = \
2795 clients/libclients.la \
2796 servers/libservers.la \
2797 helper/libhelper.la \
2799 http/libsquid-http.la \
2804 parser/libsquid-parser.la \
2809 parser/libsquid-parser.la \
2814 icmp/libicmp.la icmp/libicmp-core.la \
2817 format/libformat.la \
2819 $(ADAPTATION_LIBS) \
2821 $(top_builddir)/lib/libmisccontainers.la \
2822 $(top_builddir)/lib/libmiscencoding.la \
2823 $(top_builddir)/lib/libmiscutil.la \
2827 $(SQUID_CPPUNIT_LIBS) \
2828 $(SQUID_CPPUNIT_LA) \
2833 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2834 tests_testHttpRequest_DEPENDENCIES = \
2838 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2839 ## first line - what we are testing.
2840 tests_testStore_SOURCES= \
2842 tests/stub_CacheDigest.cc \
2845 tests/stub_CollapsedForwarding.cc \
2848 $(DELAY_POOL_SOURCE) \
2851 DiskIO/ReadRequest.cc \
2852 DiskIO/WriteRequest.cc \
2857 tests/stub_fatal.cc \
2860 HttpHeaderFieldStat.h \
2864 HttpHdrContRange.cc \
2867 HttpHdrScTarget.cc \
2868 HttpHeaderFieldInfo.h \
2870 HttpHeaderTools.cc \
2905 tests/stub_StoreMeta.cc \
2906 StoreMetaUnpacker.cc \
2907 StoreSwapLogData.cc \
2911 SBufDetailedStats.h \
2912 tests/stub_SBufDetailedStats.cc \
2917 tests/CapturingStoreEntry.h \
2919 tests/stub_access_log.cc \
2923 tests/stub_cache_cf.cc \
2924 tests/stub_cache_manager.cc \
2925 tests/stub_client_side_request.cc \
2926 tests/stub_comm.cc \
2927 tests/stub_debug.cc \
2928 tests/stub_DiskIOModule.cc \
2929 tests/stub_errorpage.cc \
2933 tests/stub_helper.cc \
2934 tests/stub_HelperChildConfig.cc \
2935 tests/stub_http.cc \
2936 tests/stub_libauth.cc \
2937 tests/stub_libeui.cc \
2938 tests/stub_libformat.cc \
2939 tests/stub_libsslsquid.cc \
2942 tests/stub_HttpReply.cc \
2943 tests/stub_HttpRequest.cc \
2944 tests/stub_libcomm.cc \
2945 tests/stub_MemStore.cc \
2947 tests/stub_mime.cc \
2948 tests/stub_Port.cc \
2949 tests/stub_stat.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 \
2957 tests/stub_tools.cc \
2958 tests/stub_UdsOp.cc \
2960 tests/testStore.cc \
2962 tests/testStoreEntryStream.cc \
2963 tests/testStoreEntryStream.h \
2964 tests/testStoreController.cc \
2965 tests/testStoreController.h \
2966 tests/testStoreHashIndex.cc \
2967 tests/testStoreHashIndex.h \
2968 tests/testStoreSupport.cc \
2969 tests/testStoreSupport.h \
2970 tests/TestSwapDir.cc \
2971 tests/TestSwapDir.h \
2972 tests/stub_time.cc \
2977 nodist_tests_testStore_SOURCES= \
2983 tests_testStore_LDADD= \
2985 http/libsquid-http.la \
2986 parser/libsquid-parser.la \
2997 $(top_builddir)/lib/libmisccontainers.la \
2998 $(top_builddir)/lib/libmiscencoding.la \
2999 $(top_builddir)/lib/libmiscutil.la \
3002 $(SQUID_CPPUNIT_LIBS) \
3005 DnsLookupDetails.o \
3008 tests_testStore_LDFLAGS = $(LIBADD_DL)
3009 tests_testStore_DEPENDENCIES = \
3012 ## string needs mem.cc.
3013 ## mem.cc needs ClientInfo.h
3014 ## libsquid pulls in SquidConfig and children. stub them.
3015 tests_testString_SOURCES = \
3022 SBufDetailedStats.h \
3023 tests/stub_SBufDetailedStats.cc \
3025 tests/testString.cc \
3026 tests/testString.h \
3029 tests/stub_cache_cf.cc \
3030 tests/stub_cache_manager.cc \
3031 tests/stub_debug.cc \
3032 tests/stub_HelperChildConfig.cc \
3034 tests/stub_tools.cc \
3035 tests/stub_time.cc \
3038 nodist_tests_testString_SOURCES = \
3040 tests_testString_LDADD = \
3044 $(top_builddir)/lib/libmiscutil.la \
3046 $(SQUID_CPPUNIT_LIBS) \
3050 tests_testString_LDFLAGS = $(LIBADD_DL)
3051 tests_testString_DEPENDENCIES = \
3070 tests_testUfs_SOURCES = \
3074 tests/stub_cache_manager.cc \
3075 tests/stub_client_db.cc \
3076 tests/stub_CollapsedForwarding.cc \
3077 tests/stub_HelperChildConfig.cc \
3080 tests/stub_ipcache.cc \
3081 tests/stub_libeui.cc \
3082 tests/stub_libicmp.cc \
3083 tests/stub_MemStore.cc \
3084 tests/stub_neighbors.cc \
3085 tests/stub_pconn.cc \
3086 tests/stub_Port.cc \
3087 tests/stub_UdsOp.cc \
3089 tests/stub_internal.cc \
3090 tests/stub_libformat.cc \
3091 tests/stub_stat.cc \
3093 tests/stub_store_rebuild.cc \
3094 tests/stub_store_stats.cc \
3096 tests/stub_fatal.cc \
3121 StoreSwapLogData.cc \
3123 StoreMetaUnpacker.cc \
3124 $(STOREMETA_SOURCE) \
3125 StoreFileSystem.cc \
3132 $(DELAY_POOL_SOURCE) \
3134 tests/stub_CacheDigest.cc \
3150 tests/stub_cache_cf.cc \
3151 tests/stub_helper.cc \
3154 SBufDetailedStats.h \
3155 tests/stub_SBufDetailedStats.cc \
3157 tests/stub_debug.cc \
3158 tests/stub_client_side_request.cc \
3159 tests/stub_http.cc \
3160 tests/stub_libauth.cc \
3164 tests/stub_mime.cc \
3165 HttpHeaderFieldInfo.h \
3167 HttpHeaderTools.cc \
3174 HttpHdrContRange.cc \
3176 HttpHeaderFieldStat.h \
3181 HttpHdrScTarget.cc \
3191 tests/stub_errorpage.cc \
3192 tests/stub_HttpRequest.cc \
3194 tests/stub_access_log.cc \
3197 tests/stub_store_client.cc \
3199 tests/stub_tools.cc \
3200 tests/testStoreSupport.cc \
3201 tests/testStoreSupport.h \
3207 nodist_tests_testUfs_SOURCES = \
3209 $(DISKIO_GEN_SOURCE) \
3213 tests_testUfs_LDADD = \
3214 http/libsquid-http.la \
3215 parser/libsquid-parser.la \
3217 DnsLookupDetails.o \
3237 $(top_builddir)/lib/libmisccontainers.la \
3238 $(top_builddir)/lib/libmiscencoding.la \
3239 $(top_builddir)/lib/libmiscutil.la \
3242 $(SQUID_CPPUNIT_LIBS) \
3246 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3247 tests_testUfs_DEPENDENCIES = \
3250 check_PROGRAMS += testRefCount
3251 testRefCount_SOURCES= \
3254 tests/stub_cbdata.cc \
3255 tests/stub_debug.cc \
3256 tests/stub_MemBuf.cc \
3257 tests/testRefCount.cc
3258 testRefCount_LDADD = \
3260 $(top_builddir)/lib/libmiscutil.la \
3264 tests_testRock_SOURCES = \
3267 CollapsedForwarding.h \
3268 CollapsedForwarding.cc \
3269 tests/stub_CacheDigest.cc \
3285 HttpHeaderFieldStat.h \
3289 HttpHdrContRange.cc \
3292 HttpHdrScTarget.cc \
3295 HttpHeaderFieldInfo.h \
3297 HttpHeaderTools.cc \
3321 tests/stub_StatHist.cc \
3324 tests/stub_stat.cc \
3326 StoreFileSystem.cc \
3328 StoreMetaUnpacker.cc \
3329 $(STOREMETA_SOURCE) \
3330 StoreSwapLogData.cc \
3338 SBufDetailedStats.h \
3339 tests/stub_SBufDetailedStats.cc \
3349 tests/testStoreSupport.cc \
3350 tests/testStoreSupport.h \
3352 tests/stub_access_log.cc \
3355 tests/stub_cache_cf.cc \
3357 tests/stub_cache_manager.cc \
3358 tests/stub_client_db.cc \
3359 tests/stub_client_side_request.cc \
3360 tests/stub_debug.cc \
3361 tests/stub_errorpage.cc \
3362 tests/stub_HelperChildConfig.cc \
3363 tests/stub_http.cc \
3364 tests/stub_HttpRequest.cc \
3365 tests/stub_libauth.cc \
3368 tests/stub_ipcache.cc \
3369 tests/stub_libeui.cc \
3370 tests/stub_libformat.cc \
3371 tests/stub_libicmp.cc \
3372 tests/stub_libmgr.cc \
3373 tests/stub_MemStore.cc \
3375 tests/stub_mime.cc \
3376 tests/stub_neighbors.cc \
3377 tests/stub_Port.cc \
3378 tests/stub_pconn.cc \
3379 tests/stub_store_client.cc \
3381 tests/stub_store_rebuild.cc \
3382 tests/stub_store_stats.cc \
3384 tests/stub_tools.cc \
3389 $(DELAY_POOL_SOURCE) \
3392 nodist_tests_testRock_SOURCES = \
3393 $(DISKIO_GEN_SOURCE) \
3398 tests_testRock_LDADD = \
3399 http/libsquid-http.la \
3400 parser/libsquid-parser.la \
3417 $(top_builddir)/lib/libmisccontainers.la \
3418 $(top_builddir)/lib/libmiscencoding.la \
3419 $(top_builddir)/lib/libmiscutil.la \
3422 $(SQUID_CPPUNIT_LIBS) \
3426 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3427 tests_testRock_DEPENDENCIES = \
3430 ## Tests of the URL module.
3431 ## TODO: Trim this down once the insanity is over.
3432 tests_testURL_SOURCES = \
3441 tests/stub_cache_manager.cc \
3443 tests/stub_CacheDigest.cc \
3445 tests/stub_carp.cc \
3447 ChunkedCodingParser.cc \
3452 client_side_reply.cc \
3453 client_side_request.cc \
3456 tests/stub_CollapsedForwarding.cc \
3463 $(DELAY_POOL_SOURCE) \
3466 DiskIO/ReadRequest.cc \
3467 DiskIO/WriteRequest.cc \
3475 ExternalACLEntry.cc \
3477 tests/stub_fatal.cc \
3495 HttpHeaderFieldStat.h \
3499 HttpHdrContRange.cc \
3502 HttpHdrScTarget.cc \
3505 HttpHeaderFieldInfo.h \
3507 HttpHeaderTools.cc \
3546 peer_proxy_negotiate_auth.h \
3547 peer_proxy_negotiate_auth.cc \
3550 peer_sourcehash.cc \
3554 tests/stub_redirect.cc \
3559 SBufDetailedStats.h \
3560 tests/stub_SBufDetailedStats.cc \
3570 tests/stub_StatHist.cc \
3576 tests/stub_store_digest.cc \
3589 StoreFileSystem.cc \
3591 tests/stub_StoreMeta.cc \
3592 StoreMetaUnpacker.cc \
3593 StoreSwapLogData.cc \
3598 tests/stub_SwapDir.cc \
3600 tests/stub_debug.cc \
3601 tests/stub_DiskIOModule.cc \
3602 tests/stub_libauth_acls.cc \
3603 tests/stub_libauth.cc \
3604 tests/stub_main_cc.cc \
3605 tests/stub_ipc_Forwarder.cc \
3606 tests/stub_store_stats.cc \
3609 tests/testUriScheme.cc \
3610 tests/testUriScheme.h \
3612 tests/stub_time.cc \
3613 tests/stub_EventLoop.cc \
3616 tests/stub_tunnel.cc \
3621 tests/stub_wccp2.cc \
3623 tests/stub_whois.cc \
3628 nodist_tests_testURL_SOURCES = \
3630 tests_testURL_LDADD = \
3632 clients/libclients.la \
3633 servers/libservers.la \
3634 helper/libhelper.la \
3635 http/libsquid-http.la \
3637 parser/libsquid-parser.la \
3651 icmp/libicmp.la icmp/libicmp-core.la \
3655 format/libformat.la \
3658 $(ADAPTATION_LIBS) \
3660 $(top_builddir)/lib/libmisccontainers.la \
3661 $(top_builddir)/lib/libmiscencoding.la \
3662 $(top_builddir)/lib/libmiscutil.la \
3665 $(SQUID_CPPUNIT_LIBS) \
3666 $(SQUID_CPPUNIT_LA) \
3671 tests_testURL_LDFLAGS = $(LIBADD_DL)
3672 tests_testURL_DEPENDENCIES = \
3676 tests_testSBuf_SOURCES= \
3680 tests/SBufFindTest.h \
3681 tests/SBufFindTest.cc \
3683 SBufDetailedStats.h \
3684 tests/stub_SBufDetailedStats.cc \
3686 tests/stub_time.cc \
3688 tests/stub_debug.cc \
3689 tests/stub_fatal.cc \
3690 tests/stub_HelperChildConfig.cc \
3691 tests/stub_cache_cf.cc \
3692 tests/stub_cache_manager.cc \
3693 tests/stub_store.cc \
3694 tests/stub_store_stats.cc \
3695 tests/stub_tools.cc \
3698 tests/stub_wordlist.cc \
3699 tests/stub_MemBuf.cc
3700 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3701 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3702 tests_testSBuf_LDADD=\
3707 $(top_builddir)/lib/libmiscutil.la \
3709 $(SQUID_CPPUNIT_LIBS) \
3712 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3714 tests_testSBufList_SOURCES= \
3715 tests/testSBufList.h \
3716 tests/testSBufList.cc \
3722 SBufDetailedStats.h \
3723 tests/stub_SBufDetailedStats.cc \
3725 tests/stub_time.cc \
3727 tests/stub_MemObject.cc \
3728 tests/stub_cbdata.cc \
3729 tests/stub_comm.cc \
3730 tests/stub_debug.cc \
3731 tests/stub_event.cc \
3732 tests/stub_fatal.cc \
3734 tests/stub_HelperChildConfig.cc \
3735 tests/stub_cache_cf.cc \
3736 tests/stub_cache_manager.cc \
3737 tests/stub_store.cc \
3738 tests/stub_stmem.cc \
3739 tests/stub_store_stats.cc \
3740 tests/stub_tools.cc \
3744 tests/stub_wordlist.cc \
3745 tests/stub_MemBuf.cc
3746 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3747 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3748 tests_testSBufList_LDADD=\
3753 $(top_builddir)/lib/libmiscutil.la \
3754 $(SQUID_CPPUNIT_LIBS) \
3757 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3759 tests_testConfigParser_SOURCES = \
3763 tests/stub_MemBuf.cc \
3764 tests/stub_time.cc \
3766 SBufDetailedStats.h \
3767 tests/stub_SBufDetailedStats.cc \
3771 tests/stub_fatal.cc \
3773 tests/testConfigParser.cc \
3774 tests/testConfigParser.h \
3777 tests/stub_cache_cf.cc \
3778 tests/stub_cache_manager.cc \
3779 tests/stub_debug.cc \
3780 tests/stub_HelperChildConfig.cc \
3782 tests/stub_tools.cc \
3785 nodist_tests_testConfigParser_SOURCES = \
3787 tests_testConfigParser_LDADD = \
3791 $(top_builddir)/lib/libmiscutil.la \
3793 $(SQUID_CPPUNIT_LIBS) \
3797 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3798 tests_testConfigParser_DEPENDENCIES = \
3801 tests_testStatHist_SOURCES = \
3802 tests/stub_cbdata.cc \
3804 tests/stub_fatal.cc \
3805 tests/stub_MemBuf.cc \
3807 SBufDetailedStats.h \
3808 tests/stub_SBufDetailedStats.cc \
3812 tests/stub_cache_manager.cc \
3813 tests/stub_comm.cc \
3814 tests/stub_debug.cc \
3815 tests/stub_DelayId.cc \
3816 tests/stub_HelperChildConfig.cc \
3819 tests/stub_MemObject.cc \
3821 tests/stub_mime.cc \
3822 tests/stub_pconn.cc \
3823 tests/stub_stmem.cc \
3825 tests/stub_store.cc \
3826 tests/stub_store_stats.cc \
3829 tests/stub_tools.cc \
3831 tests/testStatHist.cc \
3832 tests/testStatHist.h
3833 nodist_tests_testStatHist_SOURCES = \
3835 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3836 tests_testStatHist_LDADD = \
3838 $(top_builddir)/lib/libmiscutil.la \
3839 $(top_builddir)/lib/libmisccontainers.la \
3840 $(SQUID_CPPUNIT_LIBS) \
3841 $(SQUID_CPPUNIT_LA) \
3843 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3845 TESTS += testHeaders
3847 ## Special Universal .h dependency test script
3848 ## aborts if error encountered
3849 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3850 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3851 ## src/repl/ has no .h files and its own makefile.
3853 CLEANFILES += testHeaders