1 ## Copyright (C) 1996-2015 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
20 OutOfBoundsException.h \
41 LOADABLE_MODULES_SOURCES = \
47 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl DiskIO
48 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients servers fs repl DiskIO
52 AUTH_LIBS= auth/libauth.la
53 AUTH_ACL_LIBS= auth/libacls.la
54 check_PROGRAMS+= tests/testACLMaxUserIP
58 SUBDIRS += http ip icmp ident log ipc mgr security
59 DIST_SUBDIRS += http ip icmp ident log ipc mgr security
77 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
79 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
88 DIST_SUBDIRS += adaptation
94 $(top_builddir)/lib/libTrie/libTrie.a \
102 DELAY_POOL_ALL_SOURCE = \
104 CompositePoolNode.h \
126 ClientDelayConfig.cc \
129 if ENABLE_DELAY_POOLS
130 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
135 if ENABLE_XPROF_STATS
136 XPROF_STATS_SOURCE = ProfStats.cc
142 HTCPSOURCE = htcp.cc htcp.h
146 LEAKFINDERSOURCE = LeakFinder.cc
152 UNLINKDSOURCE = unlinkd.h unlinkd.cc
155 UNLINKDSOURCE = unlinkd.h
164 if ENABLE_WIN32SPECIFIC
165 WIN32_SOURCE = win32.cc
166 WINSVC_SOURCE = WinSvc.cc
173 IPC_SOURCE = SquidIpc.h ipc_win32.cc
175 IPC_SOURCE = SquidIpc.h ipc.cc
178 noinst_LTLIBRARIES = libsquid.la
187 ## cfgen is used when building squid
188 ## ufsdump is a debug utility, it is possibly useful for end users with cache
189 ## corruption, but at this point we do not install it.
202 cf_gen_SOURCES = cf_gen.cc
203 nodist_cf_gen_HEADER = cf_gen_defines.cci
204 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
206 cf_gen.$(OBJEXT): cf_gen_defines.cci
208 ## cf_gen.cc needs src/cf_gen_defines.cci
209 AM_CPPFLAGS += -I$(top_builddir)/src
212 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
214 # common library for all the binaries and tests. This is kindof a catch all
215 # and smaller libraries split from this are encouraged. Using lt convenience
216 # libraries, dependencies should not be a problem either.
217 libsquid_la_SOURCES = \
228 $(ACL_REGISTRATION_SOURCES) \
242 NeighborTypeDomainList.h \
255 client_side_reply.cc \
256 client_side_reply.h \
257 client_side_request.cc \
258 client_side_request.h \
263 ClientRequestContext.h \
266 clientStreamForward.h \
267 CollapsedForwarding.cc \
268 CollapsedForwarding.h \
269 CompletionDispatcher.cc \
270 CompletionDispatcher.h \
284 $(DELAY_POOL_SOURCE) \
303 ExternalACLEntry.cc \
326 HierarchyLogEntry.h \
331 HttpHeaderFieldStat.h \
340 HttpHdrContRange.cc \
347 HttpHeaderFieldInfo.h \
372 $(LEAKFINDERSOURCE) \
399 $(XPROF_STATS_SOURCE) \
404 peer_proxy_negotiate_auth.h \
405 peer_proxy_negotiate_auth.cc \
425 SBufDetailedStats.h \
426 SBufDetailedStats.cc \
470 StoreMetaUnpacker.cc \
471 StoreMetaUnpacker.h \
472 $(STOREMETA_SOURCE) \
476 StoreSwapLogData.cc \
507 EXTRA_squid_SOURCES = \
510 $(DELAY_POOL_ALL_SOURCE) \
520 $(WIN32_ALL_SOURCE) \
521 $(LOADABLE_MODULES_SOURCES)
524 client_side_request.cci \
543 CLEANFILES += $(BUILT_SOURCES)
545 nodist_squid_SOURCES = \
555 clients/libclients.la \
556 servers/libservers.la \
558 helper/libhelper.la \
559 http/libsquid-http.la \
560 parser/libsquid-parser.la \
566 DiskIO/libdiskio.la \
571 security/libsecurity.la \
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 \
597 if ENABLE_LOADABLE_MODULES
598 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
599 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
600 squid_LDFLAGS = -export-dynamic -dlopen force
601 ## when static module linking is supported and enabled:
602 ## squid_LDFLAGS = -all-static -dlopen self
604 ## LTDL headers require their local include path...
605 AM_CPPFLAGS += $(INCLTDL)
608 ## Kerberos libraries require their include path...
609 AM_CPPFLAGS += $(KRB5INCS)
612 unlinkd_SOURCES = unlinkd_daemon.cc
617 recv_announce_SOURCES = recv-announce.cc
619 ## What requires what..
620 ## many things want ACLChecklist.cc
621 ## ACLChecklist.cc wants AuthUserRequest.cc
622 ## ACLChecklist.cc wants AuthScheme.cc
623 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
624 ## ACLProxyAuth.cc wants ACLUserData
625 ## ACLProxyAuth.cc wants ACLRegexData
626 ## cache_cf.cc wants $(AUTH_LIBS)
627 ## cache_cf.cc wants Swapdir
628 ## cache_cf.cc wants AnyP::PortCfg
629 ## client_side wants client_db
630 ## client_db wants SNMP_SOURCE
631 ## snmp_core wants ACLStringData
632 ## SwapDir wants ConfigOption
633 ## tools.cc wants ip/libip.la
634 ## client_side.cc wants ip/libip.la
635 ## libbase.la wants cbdata.*
636 ## libbase.la wants MemBuf.*
650 tests/stub_StoreMeta.cc \
651 StoreMetaUnpacker.cc \
658 helper/ChildConfig.h \
659 tests/stub_HelperChildConfig.cc \
686 ufsdump_DEPENDENCIES = \
698 DiskIO/libdiskio.la \
702 nodist_ufsdump_SOURCES = \
707 squid.conf.documented \
732 include $(srcdir)/tests/Stub.list
740 mk-string-arrays.pl \
741 mk-string-arrays.awk \
747 DEFAULT_HTTP_PORT = 3128
748 DEFAULT_ICP_PORT = 3130
749 DEFAULT_PREFIX = $(prefix)
750 DEFAULT_CONFIG_DIR = $(sysconfdir)
751 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
752 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
753 DEFAULT_SSL_CRTD = $(libexecdir)/`echo ssl_crtd | sed '$(transform);s/$$/$(EXEEXT)/'`
754 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
755 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
756 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
757 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
758 DEFAULT_NETDB_FILE = $(DEFAULT_LOG_PREFIX)/netdb.state
759 DEFAULT_SSL_DB_DIR = $(localstatedir)/lib/ssl_db
760 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
761 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
762 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
763 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
764 DEFAULT_ICON_DIR = $(datadir)/icons
765 DEFAULT_ERROR_DIR = $(datadir)/errors
767 # Make location configure settings available to the code
768 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
770 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
772 globals.cc: globals.h mk-globals-c.awk
773 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
775 ## Generate files containing string arrays for various enums....
776 hier_code.cc: hier_code.h mk-string-arrays.awk
777 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
779 err_type.cc: err_type.h mk-string-arrays.awk
780 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
782 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
783 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
785 lookup_t.cc: lookup_t.h mk-string-arrays.awk
786 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
788 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
789 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
791 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
792 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
795 ## other generated files...
797 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
798 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
800 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
801 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
803 ## If autodependency works well this is not needed anymore
804 cache_cf.o: cf_parser.cci
806 # cf_gen builds the configuration files.
807 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
808 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
810 # squid.conf.default is built by cf_gen when making cf_parser.cci
811 squid.conf.default squid.conf.documented: cf_parser.cci
814 cf_parser.cci: cf.data cf_gen$(EXEEXT)
815 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
817 # The cf_gen_defines.cci is auto-generated and does not exist when the
818 # dependencies computed. We need to add its include files (autoconf.h) here
819 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
820 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
823 ## FIXME: generate a sed command file from configure. Then this doesn't
824 ## depend on the Makefile.
825 cf.data: cf.data.pre Makefile
827 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
828 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
829 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
830 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
831 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
832 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
833 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
834 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
835 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
836 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
837 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
838 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
839 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
840 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
841 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
842 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
843 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
844 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
845 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
846 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
847 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
848 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
849 < $(srcdir)/cf.data.pre >$@
851 repl_modules.cc: repl_modules.sh Makefile
852 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
854 include $(top_srcdir)/doc/manuals/Substitute.am
856 squid.8: $(srcdir)/squid.8.in Makefile
857 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
860 EXTRA_DIST += squid.8.in
861 CLEANFILES += squid.8
863 install-data-local: install-sysconfDATA install-dataDATA
864 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
865 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
867 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
868 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
870 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
871 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
873 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
874 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
876 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
877 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
878 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
879 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
880 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
881 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
882 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
884 uninstall-local: squid.conf.default
885 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
886 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
888 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
891 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
892 cp $(top_srcdir)/test-suite/test_tools.cc .
894 # stock tools for unit tests - library independent versions of dlink_list
896 # globals.cc is needed by test_tools.cc.
897 # Neither of these should be disted from here.
904 tests/testBoilerplate \
905 tests/testCacheManager \
909 tests/testEventLoop \
910 tests/test_http_range \
911 tests/testHttp1Parser \
912 tests/testHttpReply \
913 tests/testHttpRequest \
919 tests/testConfigParser \
921 tests/testLookupTable
924 check_PROGRAMS += tests/testRock
927 check_PROGRAMS += tests/testUfs
930 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
931 TESTS += $(check_PROGRAMS)
933 ### Template for new Unit Test Program
934 ## - add tests/testX to check_PROGRAMS above.
935 ## - copy template below and substitue X for class name
936 ## - add other component .(h|cc) files needed to link and run tests
938 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
940 #tests_testX_SOURCES=\
945 #nodist_tests_testX_SOURCES=\
947 #tests_testX_LDFLAGS = $(LIBADD_DL)
949 # $(SQUID_CPPUNIT_LIBS) \
950 # $(SQUID_CPPUNIT_LA) \
952 #tests_testX_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
955 # - add other component .(h|cc) files needed to link and run tests
956 tests_testHttpReply_SOURCES=\
962 tests/stub_fatal.cc \
965 HttpHeaderFieldStat.h \
969 HttpHdrContRange.cc \
979 HttpHeaderFieldInfo.h \
1000 SBufDetailedStats.h \
1001 tests/stub_SBufDetailedStats.cc \
1006 tests/stub_access_log.cc \
1009 tests/stub_cache_cf.cc \
1010 tests/stub_cache_manager.cc \
1011 tests/stub_comm.cc \
1012 tests/stub_debug.cc \
1013 tests/stub_errorpage.cc \
1014 tests/stub_event.cc \
1016 tests/stub_HelperChildConfig.cc \
1017 tests/stub_libformat.cc \
1018 tests/stub_libauth.cc \
1019 tests/stub_libcomm.cc \
1020 tests/stub_libmgr.cc \
1021 tests/stub_libsecurity.cc \
1022 tests/stub_libsslsquid.cc \
1026 tests/stub_StatHist.cc \
1028 tests/stub_store.cc \
1029 tests/stub_store_stats.cc \
1031 tests/stub_tools.cc \
1032 tests/stub_HttpRequest.cc \
1033 tests/testHttpReply.cc \
1034 tests/testHttpReply.h \
1035 tests/stub_time.cc \
1039 nodist_tests_testHttpReply_SOURCES=\
1041 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1042 tests_testHttpReply_LDADD=\
1044 http/libsquid-http.la \
1045 parser/libsquid-parser.la \
1054 $(top_builddir)/lib/libmisccontainers.la \
1055 $(top_builddir)/lib/libmiscencoding.la \
1056 $(top_builddir)/lib/libmiscutil.la \
1057 $(SQUID_CPPUNIT_LIBS) \
1058 $(SQUID_CPPUNIT_LA) \
1063 tests_testHttpReply_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
1065 tests_testACLMaxUserIP_SOURCES= \
1068 tests/stub_CollapsedForwarding.cc \
1071 tests/stub_ETag.cc \
1074 tests/stub_fatal.cc \
1080 HttpHeaderFieldInfo.h \
1082 HttpHeaderTools.cc \
1083 HttpHdrContRange.cc \
1085 HttpHeaderFieldStat.h \
1090 HttpHdrScTarget.cc \
1102 tests/stub_libsecurity.cc \
1109 tests/stub_StatHist.cc \
1112 SBufDetailedStats.h \
1113 tests/stub_SBufDetailedStats.cc \
1117 tests/stub_StoreMeta.cc \
1118 StoreMetaUnpacker.cc \
1119 StoreSwapLogData.cc \
1124 tests/stub_SwapDir.cc \
1128 tests/stub_access_log.cc \
1131 tests/stub_cache_cf.cc \
1132 tests/stub_client_side.cc \
1133 tests/stub_debug.cc \
1134 tests/stub_DelayId.cc \
1135 tests/stub_errorpage.cc \
1138 tests/stub_HttpRequest.cc \
1139 tests/stub_HttpReply.cc \
1140 tests/stub_ipc_TypedMsgHdr.cc \
1141 tests/stub_libauth.cc \
1142 tests/stub_libcomm.cc \
1143 tests/stub_libdiskio.cc \
1144 tests/stub_libformat.cc \
1145 tests/stub_libsslsquid.cc \
1146 tests/stub_MemObject.cc \
1147 tests/stub_MemStore.cc \
1149 tests/stub_mime.cc \
1150 tests/stub_pconn.cc \
1151 tests/stub_Port.cc \
1153 tests/stub_store.cc \
1154 tests/stub_store_client.cc \
1156 tests/stub_store_rebuild.cc \
1157 tests/stub_store_stats.cc \
1158 tests/stub_store_swapout.cc \
1160 tests/stub_tools.cc \
1161 tests/stub_cache_manager.cc \
1162 tests/stub_UdsOp.cc \
1163 tests/testACLMaxUserIP.cc \
1164 tests/testACLMaxUserIP.h \
1165 tests/stub_time.cc \
1168 tests/stub_libmem.cc \
1172 nodist_tests_testACLMaxUserIP_SOURCES= \
1174 tests_testACLMaxUserIP_LDADD= \
1176 helper/libhelper.la \
1177 http/libsquid-http.la \
1178 parser/libsquid-parser.la \
1190 $(top_builddir)/lib/libmisccontainers.la \
1191 $(top_builddir)/lib/libmiscencoding.la \
1192 $(top_builddir)/lib/libmiscutil.la \
1195 $(SQUID_CPPUNIT_LIBS) \
1199 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1200 ##tests_testACLMaxUserIP_DEPENDENCIES = \
1201 ## $(SQUID_CPPUNIT_LA)
1203 ## a demonstration test that does nothing but shows the salient points
1204 ## involved in writing tests.
1205 tests_testBoilerplate_SOURCES = \
1206 tests/testBoilerplate.cc \
1207 tests/testBoilerplate.h \
1208 tests/stub_debug.cc \
1210 nodist_tests_testBoilerplate_SOURCES = \
1211 tests/stub_cbdata.cc \
1212 tests/stub_MemBuf.cc \
1214 tests_testBoilerplate_LDADD= \
1215 $(SQUID_CPPUNIT_LIBS) \
1220 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1221 tests_testBoilerplate_DEPENDENCIES = \
1224 ## Tests of the CacheManager module.
1225 tests_testCacheManager_SOURCES = \
1232 tests/testCacheManager.cc \
1233 tests/testCacheManager.h \
1234 tests/stub_main_cc.cc \
1235 tests/stub_ipc_Forwarder.cc \
1236 tests/stub_store_stats.cc \
1237 tests/stub_EventLoop.cc \
1250 tests/stub_CacheDigest.cc \
1252 tests/stub_carp.cc \
1258 client_side_reply.cc \
1259 client_side_request.cc \
1262 tests/stub_CollapsedForwarding.cc \
1269 $(DELAY_POOL_SOURCE) \
1276 tests/stub_ETag.cc \
1279 ExternalACLEntry.cc \
1281 tests/stub_fatal.cc \
1302 HttpHeaderFieldInfo.h \
1304 HttpHeaderTools.cc \
1305 HttpHeaderFieldStat.h \
1309 HttpHdrContRange.cc \
1312 HttpHdrScTarget.cc \
1324 tests/stub_libsecurity.cc \
1345 peer_proxy_negotiate_auth.h \
1346 peer_proxy_negotiate_auth.cc \
1349 peer_sourcehash.cc \
1355 tests/stub_redirect.cc \
1360 SBufDetailedStats.h \
1361 tests/stub_SBufDetailedStats.cc \
1373 tests/stub_libauth_acls.cc \
1374 tests/stub_libauth.cc \
1375 tests/stub_libdiskio.cc \
1376 tests/stub_StatHist.cc \
1382 tests/stub_store_digest.cc \
1395 StoreFileSystem.cc \
1397 tests/stub_StoreMeta.cc \
1398 StoreMetaUnpacker.cc \
1399 StoreSwapLogData.cc \
1403 tests/stub_tunnel.cc \
1404 tests/stub_SwapDir.cc \
1411 tests/stub_wccp2.cc \
1413 tests/stub_whois.cc \
1418 nodist_tests_testCacheManager_SOURCES = \
1420 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1421 tests_testCacheManager_LDADD = \
1423 clients/libclients.la \
1424 servers/libservers.la \
1426 helper/libhelper.la \
1427 http/libsquid-http.la \
1428 parser/libsquid-parser.la \
1439 icmp/libicmp.la icmp/libicmp-core.la \
1441 format/libformat.la \
1443 $(ADAPTATION_LIBS) \
1451 $(top_builddir)/lib/libmisccontainers.la \
1452 $(top_builddir)/lib/libmiscencoding.la \
1453 $(top_builddir)/lib/libmiscutil.la \
1456 $(SQUID_CPPUNIT_LIBS) \
1457 $(SQUID_CPPUNIT_LA) \
1462 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1463 tests_testCacheManager_DEPENDENCIES = \
1467 tests_testDiskIO_SOURCES = \
1469 tests/stub_CacheDigest.cc \
1473 tests/stub_CollapsedForwarding.cc \
1476 $(DELAY_POOL_SOURCE) \
1479 tests/stub_ETag.cc \
1483 tests/stub_fatal.cc \
1492 HttpHeaderFieldStat.h \
1496 HttpHdrContRange.cc \
1498 HttpHdrScTarget.cc \
1500 HttpHeaderFieldInfo.h \
1502 HttpHeaderTools.cc \
1524 tests/stub_libsecurity.cc \
1528 tests/stub_StatHist.cc \
1531 SBufDetailedStats.h \
1532 tests/stub_SBufDetailedStats.cc \
1533 StoreFileSystem.cc \
1535 tests/stub_StoreMeta.cc \
1536 StoreMetaUnpacker.cc \
1537 StoreSwapLogData.cc \
1549 tests/stub_SwapDir.cc \
1552 tests/stub_access_log.cc \
1556 tests/stub_cache_cf.cc \
1557 tests/stub_cache_manager.cc \
1558 tests/stub_client_db.cc \
1559 client_side_request.h \
1560 tests/stub_client_side_request.cc \
1561 tests/stub_debug.cc \
1562 tests/stub_errorpage.cc \
1563 tests/stub_helper.cc \
1564 tests/stub_HelperChildConfig.cc \
1565 tests/stub_HttpRequest.cc \
1566 tests/stub_http.cc \
1569 tests/stub_internal.cc \
1571 tests/stub_ipcache.cc \
1572 tests/stub_libauth_acls.cc \
1573 tests/stub_libauth.cc \
1574 tests/stub_libeui.cc \
1575 tests/stub_libformat.cc \
1576 tests/stub_libicmp.cc \
1577 tests/stub_MemStore.cc \
1579 tests/stub_mime.cc \
1580 tests/stub_neighbors.cc \
1581 tests/stub_pconn.cc \
1582 tests/stub_Port.cc \
1583 tests/stub_stat.cc \
1584 tests/stub_store_client.cc \
1585 tests/stub_store_stats.cc \
1587 tests/stub_store_rebuild.cc \
1588 tests/stub_UdsOp.cc \
1589 tests/testDiskIO.cc \
1590 tests/testDiskIO.h \
1591 tests/testStoreSupport.cc \
1592 tests/testStoreSupport.h \
1593 tests/stub_time.cc \
1601 nodist_tests_testDiskIO_SOURCES= \
1606 tests_testDiskIO_LDADD = \
1608 http/libsquid-http.la \
1609 parser/libsquid-parser.la \
1620 DiskIO/libdiskio.la \
1629 $(top_builddir)/lib/libmisccontainers.la \
1630 $(top_builddir)/lib/libmiscencoding.la \
1631 $(top_builddir)/lib/libmiscutil.la \
1634 $(SQUID_CPPUNIT_LIBS) \
1639 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1640 tests_testDiskIO_DEPENDENCIES = \
1641 DiskIO/libdiskio.la \
1645 tests_testDns_SOURCES= \
1646 tests/testRFC1035.cc \
1648 nodist_tests_testDns_SOURCES= \
1649 tests/stub_debug.cc \
1650 tests/stub_SBuf.cc \
1652 tests_testDns_LDADD= \
1655 $(top_builddir)/lib/libmiscutil.la \
1658 $(SQUID_CPPUNIT_LA) \
1659 $(SQUID_CPPUNIT_LIBS)
1660 tests_testDns_LDFLAGS= $(LIBADD_DL)
1662 tests_testEvent_SOURCES = \
1666 tests/stub_CacheDigest.cc \
1677 tests/stub_carp.cc \
1683 client_side_reply.cc \
1684 client_side_request.cc \
1687 tests/stub_CollapsedForwarding.cc \
1695 $(DELAY_POOL_SOURCE) \
1702 tests/stub_ETag.cc \
1707 ExternalACLEntry.cc \
1710 tests/stub_fatal.cc \
1730 HttpHeaderFieldInfo.h \
1732 HttpHeaderTools.cc \
1733 HttpHeaderFieldStat.h \
1737 HttpHdrContRange.cc \
1740 HttpHdrScTarget.cc \
1757 tests/stub_libsecurity.cc \
1762 tests/stub_libmem.cc \
1779 peer_proxy_negotiate_auth.h \
1780 peer_proxy_negotiate_auth.cc \
1783 peer_sourcehash.cc \
1787 tests/stub_redirect.cc \
1794 SBufDetailedStats.h \
1795 tests/stub_SBufDetailedStats.cc \
1811 tests/stub_store_digest.cc \
1824 StoreFileSystem.cc \
1826 tests/stub_StoreMeta.cc \
1827 StoreMetaUnpacker.cc \
1828 StoreSwapLogData.cc \
1830 tests/stub_SwapDir.cc \
1831 tests/CapturingStoreEntry.h \
1832 tests/testEvent.cc \
1834 tests/stub_main_cc.cc \
1835 tests/stub_ipc_Forwarder.cc \
1836 tests/stub_libauth_acls.cc \
1837 tests/stub_libauth.cc \
1838 tests/stub_libdiskio.cc \
1839 tests/stub_libeui.cc \
1840 tests/stub_store_stats.cc \
1845 tests/stub_tunnel.cc \
1852 tests/stub_wccp2.cc \
1854 tests/stub_whois.cc \
1858 nodist_tests_testEvent_SOURCES = \
1860 tests_testEvent_LDADD = \
1862 clients/libclients.la \
1863 servers/libservers.la \
1865 helper/libhelper.la \
1866 http/libsquid-http.la \
1867 parser/libsquid-parser.la \
1877 icmp/libicmp.la icmp/libicmp-core.la \
1880 format/libformat.la \
1882 $(ADAPTATION_LIBS) \
1885 $(top_builddir)/lib/libmisccontainers.la \
1886 $(top_builddir)/lib/libmiscencoding.la \
1887 $(top_builddir)/lib/libmiscutil.la \
1893 $(SQUID_CPPUNIT_LIBS) \
1894 $(SQUID_CPPUNIT_LA) \
1899 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1900 tests_testEvent_DEPENDENCIES = \
1904 ## Tests of the EventLoop module.
1905 tests_testEventLoop_SOURCES = \
1909 tests/stub_CacheDigest.cc \
1920 tests/stub_carp.cc \
1926 client_side_reply.cc \
1927 client_side_request.cc \
1930 tests/stub_CollapsedForwarding.cc \
1938 $(DELAY_POOL_SOURCE) \
1945 tests/stub_ETag.cc \
1950 ExternalACLEntry.cc \
1953 tests/stub_fatal.cc \
1973 HttpHeaderFieldInfo.h \
1975 HttpHeaderTools.cc \
1976 HttpHeaderFieldStat.h \
1980 HttpHdrContRange.cc \
1983 HttpHdrScTarget.cc \
2006 tests/stub_libmem.cc \
2021 peer_proxy_negotiate_auth.h \
2022 peer_proxy_negotiate_auth.cc \
2025 peer_sourcehash.cc \
2030 tests/stub_redirect.cc \
2034 SBufDetailedStats.h \
2035 tests/stub_SBufDetailedStats.cc \
2051 tests/stub_store_digest.cc \
2064 StoreFileSystem.cc \
2066 tests/stub_StoreMeta.cc \
2067 StoreMetaUnpacker.cc \
2068 StoreSwapLogData.cc \
2072 tests/stub_SwapDir.cc \
2073 tests/testEventLoop.cc \
2074 tests/testEventLoop.h \
2075 tests/stub_main_cc.cc \
2076 tests/stub_ipc_Forwarder.cc \
2077 tests/stub_libauth_acls.cc \
2078 tests/stub_libauth.cc \
2079 tests/stub_libdiskio.cc \
2080 tests/stub_libeui.cc \
2081 tests/stub_libsecurity.cc \
2082 tests/stub_store_stats.cc \
2087 tests/stub_tunnel.cc \
2094 tests/stub_wccp2.cc \
2096 tests/stub_whois.cc \
2100 nodist_tests_testEventLoop_SOURCES = \
2102 tests_testEventLoop_LDADD = \
2104 clients/libclients.la \
2105 servers/libservers.la \
2107 helper/libhelper.la \
2108 http/libsquid-http.la \
2109 parser/libsquid-parser.la \
2119 icmp/libicmp.la icmp/libicmp-core.la \
2122 format/libformat.la \
2124 $(ADAPTATION_LIBS) \
2127 $(top_builddir)/lib/libmisccontainers.la \
2128 $(top_builddir)/lib/libmiscencoding.la \
2129 $(top_builddir)/lib/libmiscutil.la \
2135 $(SQUID_CPPUNIT_LIBS) \
2136 $(SQUID_CPPUNIT_LA) \
2141 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2142 tests_testEventLoop_DEPENDENCIES = \
2146 tests_test_http_range_SOURCES = \
2159 tests/stub_CacheDigest.cc \
2161 tests/stub_carp.cc \
2167 client_side_reply.cc \
2168 client_side_request.cc \
2171 tests/stub_CollapsedForwarding.cc \
2179 $(DELAY_POOL_SOURCE) \
2186 tests/stub_ETag.cc \
2190 tests/stub_libauth.cc \
2191 tests/stub_fatal.cc \
2209 HttpHeaderFieldStat.h \
2213 HttpHdrContRange.cc \
2216 HttpHdrScTarget.cc \
2219 HttpHeaderFieldInfo.h \
2221 HttpHeaderTools.cc \
2244 tests/stub_libmem.cc \
2258 peer_proxy_negotiate_auth.h \
2259 peer_proxy_negotiate_auth.cc \
2262 peer_sourcehash.cc \
2267 tests/stub_redirect.cc \
2272 SBufDetailedStats.h \
2273 tests/stub_SBufDetailedStats.cc \
2289 tests/stub_store_digest.cc \
2302 StoreFileSystem.cc \
2304 tests/stub_StoreMeta.cc \
2305 StoreMetaUnpacker.cc \
2306 StoreSwapLogData.cc \
2310 tests/stub_SwapDir.cc \
2312 tests/test_http_range.cc \
2313 tests/stub_external_acl.cc \
2314 tests/stub_ipc_Forwarder.cc \
2315 tests/stub_libdiskio.cc \
2316 tests/stub_libeui.cc \
2317 tests/stub_libsecurity.cc \
2318 tests/stub_main_cc.cc \
2319 tests/stub_MemStore.cc \
2320 tests/stub_store_stats.cc \
2321 tests/stub_EventLoop.cc \
2325 tests/stub_tunnel.cc \
2331 tests/stub_wccp2.cc \
2333 tests/stub_whois.cc \
2337 nodist_tests_test_http_range_SOURCES = \
2339 tests_test_http_range_LDADD = \
2341 clients/libclients.la \
2342 servers/libservers.la \
2344 helper/libhelper.la \
2345 http/libsquid-http.la \
2346 parser/libsquid-parser.la \
2351 parser/libsquid-parser.la \
2355 icmp/libicmp.la icmp/libicmp-core.la \
2358 format/libformat.la \
2360 $(ADAPTATION_LIBS) \
2368 $(top_builddir)/lib/libmisccontainers.la \
2369 $(top_builddir)/lib/libmiscencoding.la \
2370 $(top_builddir)/lib/libmiscutil.la \
2373 $(SQUID_CPPUNIT_LIBS) \
2374 $(SQUID_CPPUNIT_LA) \
2379 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2380 tests_test_http_range_DEPENDENCIES = \
2383 tests_testHttp1Parser_SOURCES = \
2387 tests/stub_MemObject.cc \
2388 tests/stub_libmem.cc \
2395 tests/stub_SBufDetailedStats.cc \
2396 tests/stub_cache_cf.cc \
2397 tests/stub_cache_manager.cc \
2398 tests/stub_comm.cc \
2399 tests/stub_cbdata.cc \
2400 tests/stub_debug.cc \
2401 tests/stub_event.cc \
2402 tests/stub_HelperChildConfig.cc \
2403 tests/stub_libsecurity.cc \
2404 tests/stub_stmem.cc \
2405 tests/stub_store.cc \
2406 tests/stub_store_stats.cc \
2408 tests/stub_tools.cc \
2409 tests/testHttp1Parser.cc \
2410 tests/testHttp1Parser.h \
2411 tests/stub_time.cc \
2414 nodist_tests_testHttp1Parser_SOURCES = \
2416 tests_testHttp1Parser_LDADD= \
2417 http/libsquid-http.la \
2418 parser/libsquid-parser.la \
2423 $(top_builddir)/lib/libmiscutil.la \
2424 $(SQUID_CPPUNIT_LIBS) \
2427 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2428 tests_testHttp1Parser_DEPENDENCIES = \
2431 ## Tests of the HttpRequest module.
2432 tests_testHttpRequest_SOURCES = \
2437 tests/stub_libmem.cc \
2439 tests/testHttpRequest.h \
2440 tests/testHttpRequest.cc \
2441 tests/testHttpRequestMethod.h \
2442 tests/testHttpRequestMethod.cc \
2443 tests/stub_libauth.cc \
2444 tests/stub_main_cc.cc \
2445 tests/stub_ipc_Forwarder.cc \
2446 tests/stub_libdiskio.cc \
2447 tests/stub_libeui.cc \
2448 tests/stub_store_stats.cc \
2449 tests/stub_EventLoop.cc \
2461 tests/stub_CacheDigest.cc \
2465 tests/stub_carp.cc \
2471 client_side_reply.cc \
2472 client_side_request.cc \
2475 tests/stub_CollapsedForwarding.cc \
2482 $(DELAY_POOL_SOURCE) \
2489 tests/stub_ETag.cc \
2491 ExternalACLEntry.cc \
2493 tests/stub_fatal.cc \
2511 HttpHeaderFieldInfo.h \
2513 HttpHeaderTools.cc \
2514 HttpHeaderFieldStat.h \
2518 HttpHdrContRange.cc \
2521 HttpHdrScTarget.cc \
2533 tests/stub_libsecurity.cc \
2554 peer_proxy_negotiate_auth.h \
2555 peer_proxy_negotiate_auth.cc \
2558 peer_sourcehash.cc \
2564 tests/stub_libauth_acls.cc \
2565 tests/stub_redirect.cc \
2570 SBufDetailedStats.h \
2571 tests/stub_SBufDetailedStats.cc \
2587 tests/stub_store_digest.cc \
2600 StoreFileSystem.cc \
2602 tests/stub_StoreMeta.cc \
2603 StoreMetaUnpacker.cc \
2604 StoreSwapLogData.cc \
2611 tests/stub_tunnel.cc \
2612 tests/stub_SwapDir.cc \
2618 tests/stub_wccp2.cc \
2620 tests/stub_whois.cc \
2625 nodist_tests_testHttpRequest_SOURCES = \
2627 tests_testHttpRequest_LDADD = \
2629 clients/libclients.la \
2630 servers/libservers.la \
2631 helper/libhelper.la \
2633 http/libsquid-http.la \
2638 parser/libsquid-parser.la \
2643 parser/libsquid-parser.la \
2649 icmp/libicmp.la icmp/libicmp-core.la \
2652 format/libformat.la \
2654 $(ADAPTATION_LIBS) \
2656 $(top_builddir)/lib/libmisccontainers.la \
2657 $(top_builddir)/lib/libmiscencoding.la \
2658 $(top_builddir)/lib/libmiscutil.la \
2661 $(SQUID_CPPUNIT_LIBS) \
2662 $(SQUID_CPPUNIT_LA) \
2667 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2668 tests_testHttpRequest_DEPENDENCIES = \
2672 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2673 ## first line - what we are testing.
2674 tests_testStore_SOURCES= \
2676 tests/stub_CacheDigest.cc \
2679 tests/stub_CollapsedForwarding.cc \
2682 $(DELAY_POOL_SOURCE) \
2689 tests/stub_fatal.cc \
2692 HttpHeaderFieldStat.h \
2696 HttpHdrContRange.cc \
2699 HttpHdrScTarget.cc \
2700 HttpHeaderFieldInfo.h \
2702 HttpHeaderTools.cc \
2734 tests/stub_StoreMeta.cc \
2735 StoreMetaUnpacker.cc \
2736 StoreSwapLogData.cc \
2740 SBufDetailedStats.h \
2741 tests/stub_SBufDetailedStats.cc \
2746 tests/CapturingStoreEntry.h \
2748 tests/stub_access_log.cc \
2752 tests/stub_cache_cf.cc \
2753 tests/stub_cache_manager.cc \
2754 tests/stub_client_side_request.cc \
2755 tests/stub_comm.cc \
2756 tests/stub_debug.cc \
2757 tests/stub_errorpage.cc \
2761 tests/stub_helper.cc \
2762 tests/stub_HelperChildConfig.cc \
2763 tests/stub_http.cc \
2764 tests/stub_libauth.cc \
2765 tests/stub_libeui.cc \
2766 tests/stub_libdiskio.cc \
2767 tests/stub_libformat.cc \
2768 tests/stub_libsecurity.cc \
2769 tests/stub_libsslsquid.cc \
2772 tests/stub_HttpReply.cc \
2773 tests/stub_HttpRequest.cc \
2774 tests/stub_libcomm.cc \
2775 tests/stub_MemStore.cc \
2777 tests/stub_mime.cc \
2778 tests/stub_Port.cc \
2779 tests/stub_stat.cc \
2780 tests/stub_store_client.cc \
2781 tests/stub_store_stats.cc \
2783 tests/stub_store_rebuild.cc \
2784 tests/stub_store_swapout.cc \
2787 tests/stub_tools.cc \
2788 tests/stub_UdsOp.cc \
2789 tests/testStore.cc \
2791 tests/testStoreEntryStream.cc \
2792 tests/testStoreEntryStream.h \
2793 tests/testStoreController.cc \
2794 tests/testStoreController.h \
2795 tests/testStoreHashIndex.cc \
2796 tests/testStoreHashIndex.h \
2797 tests/testStoreSupport.cc \
2798 tests/testStoreSupport.h \
2799 tests/TestSwapDir.cc \
2800 tests/TestSwapDir.h \
2801 tests/stub_time.cc \
2806 nodist_tests_testStore_SOURCES= \
2812 tests_testStore_LDADD= \
2814 http/libsquid-http.la \
2815 parser/libsquid-parser.la \
2828 DiskIO/libdiskio.la \
2829 $(top_builddir)/lib/libmisccontainers.la \
2830 $(top_builddir)/lib/libmiscencoding.la \
2831 $(top_builddir)/lib/libmiscutil.la \
2834 $(SQUID_CPPUNIT_LIBS) \
2839 tests_testStore_LDFLAGS = $(LIBADD_DL)
2840 tests_testStore_DEPENDENCIES = \
2843 ## string needs mem.cc.
2844 ## mem.cc needs ClientInfo.h
2845 ## libsquid pulls in SquidConfig and children. stub them.
2846 tests_testString_SOURCES = \
2848 tests/stub_libmem.cc \
2852 SBufDetailedStats.h \
2853 tests/stub_SBufDetailedStats.cc \
2854 tests/testString.cc \
2855 tests/testString.h \
2858 tests/stub_cache_cf.cc \
2859 tests/stub_cache_manager.cc \
2860 tests/stub_cbdata.cc \
2861 tests/stub_debug.cc \
2862 tests/stub_HelperChildConfig.cc \
2864 tests/stub_tools.cc \
2865 tests/stub_time.cc \
2868 nodist_tests_testString_SOURCES = \
2870 tests_testString_LDADD = \
2874 $(top_builddir)/lib/libmiscutil.la \
2876 $(SQUID_CPPUNIT_LIBS) \
2880 tests_testString_LDFLAGS = $(LIBADD_DL)
2881 tests_testString_DEPENDENCIES = \
2894 DiskIO/libdiskio.la \
2900 tests_testUfs_SOURCES = \
2903 tests/stub_cache_manager.cc \
2904 tests/stub_client_db.cc \
2905 tests/stub_CollapsedForwarding.cc \
2906 tests/stub_HelperChildConfig.cc \
2909 tests/stub_ipcache.cc \
2910 tests/stub_libeui.cc \
2911 tests/stub_libicmp.cc \
2912 tests/stub_MemStore.cc \
2913 tests/stub_neighbors.cc \
2914 tests/stub_pconn.cc \
2915 tests/stub_Port.cc \
2916 tests/stub_UdsOp.cc \
2918 tests/stub_internal.cc \
2919 tests/stub_libformat.cc \
2920 tests/stub_libsecurity.cc \
2921 tests/stub_stat.cc \
2923 tests/stub_store_rebuild.cc \
2924 tests/stub_store_stats.cc \
2926 tests/stub_fatal.cc \
2951 StoreSwapLogData.cc \
2953 StoreMetaUnpacker.cc \
2954 $(STOREMETA_SOURCE) \
2955 StoreFileSystem.cc \
2962 $(DELAY_POOL_SOURCE) \
2964 tests/stub_CacheDigest.cc \
2980 tests/stub_cache_cf.cc \
2981 tests/stub_helper.cc \
2984 SBufDetailedStats.h \
2985 tests/stub_SBufDetailedStats.cc \
2987 tests/stub_debug.cc \
2988 tests/stub_client_side_request.cc \
2989 tests/stub_http.cc \
2990 tests/stub_libauth.cc \
2994 tests/stub_mime.cc \
2995 HttpHeaderFieldInfo.h \
2997 HttpHeaderTools.cc \
3002 HttpHdrContRange.cc \
3003 HttpHeaderFieldStat.h \
3008 HttpHdrScTarget.cc \
3018 tests/stub_errorpage.cc \
3019 tests/stub_HttpRequest.cc \
3021 tests/stub_access_log.cc \
3024 tests/stub_store_client.cc \
3026 tests/stub_tools.cc \
3027 tests/testStoreSupport.cc \
3028 tests/testStoreSupport.h \
3033 nodist_tests_testUfs_SOURCES = \
3038 tests_testUfs_LDADD = \
3039 http/libsquid-http.la \
3040 parser/libsquid-parser.la \
3052 DiskIO/libdiskio.la \
3062 $(top_builddir)/lib/libmisccontainers.la \
3063 $(top_builddir)/lib/libmiscencoding.la \
3064 $(top_builddir)/lib/libmiscutil.la \
3067 $(SQUID_CPPUNIT_LIBS) \
3071 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3072 tests_testUfs_DEPENDENCIES = \
3075 check_PROGRAMS += testRefCount
3076 testRefCount_SOURCES= \
3079 tests/stub_cbdata.cc \
3080 tests/stub_debug.cc \
3081 tests/stub_MemBuf.cc \
3082 tests/testRefCount.cc
3083 testRefCount_LDADD = \
3085 $(top_builddir)/lib/libmiscutil.la \
3089 tests_testRock_SOURCES = \
3092 CollapsedForwarding.h \
3093 CollapsedForwarding.cc \
3094 tests/stub_CacheDigest.cc \
3110 HttpHeaderFieldStat.h \
3114 HttpHdrContRange.cc \
3117 HttpHdrScTarget.cc \
3120 HttpHeaderFieldInfo.h \
3122 HttpHeaderTools.cc \
3143 tests/stub_StatHist.cc \
3146 tests/stub_stat.cc \
3148 StoreFileSystem.cc \
3150 StoreMetaUnpacker.cc \
3151 $(STOREMETA_SOURCE) \
3152 StoreSwapLogData.cc \
3160 SBufDetailedStats.h \
3161 tests/stub_SBufDetailedStats.cc \
3170 tests/testStoreSupport.cc \
3171 tests/testStoreSupport.h \
3173 tests/stub_access_log.cc \
3176 tests/stub_cache_cf.cc \
3178 tests/stub_cache_manager.cc \
3179 tests/stub_client_db.cc \
3180 tests/stub_client_side_request.cc \
3181 tests/stub_debug.cc \
3182 tests/stub_errorpage.cc \
3183 tests/stub_HelperChildConfig.cc \
3184 tests/stub_http.cc \
3185 tests/stub_HttpRequest.cc \
3186 tests/stub_libauth.cc \
3189 tests/stub_ipcache.cc \
3190 tests/stub_libeui.cc \
3191 tests/stub_libformat.cc \
3192 tests/stub_libicmp.cc \
3193 tests/stub_libmgr.cc \
3194 tests/stub_libsecurity.cc \
3195 tests/stub_MemStore.cc \
3197 tests/stub_mime.cc \
3198 tests/stub_neighbors.cc \
3199 tests/stub_Port.cc \
3200 tests/stub_pconn.cc \
3201 tests/stub_store_client.cc \
3203 tests/stub_store_rebuild.cc \
3204 tests/stub_store_stats.cc \
3206 tests/stub_tools.cc \
3211 $(DELAY_POOL_SOURCE) \
3213 nodist_tests_testRock_SOURCES = \
3218 tests_testRock_LDADD = \
3219 http/libsquid-http.la \
3220 parser/libsquid-parser.la \
3227 DiskIO/libdiskio.la \
3237 $(top_builddir)/lib/libmisccontainers.la \
3238 $(top_builddir)/lib/libmiscencoding.la \
3239 $(top_builddir)/lib/libmiscutil.la \
3242 $(SQUID_CPPUNIT_LIBS) \
3246 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3247 tests_testRock_DEPENDENCIES = \
3250 ## Tests of the URL module.
3251 ## TODO: Trim this down once the insanity is over.
3252 tests_testURL_SOURCES = \
3261 tests/stub_cache_manager.cc \
3263 tests/stub_CacheDigest.cc \
3267 tests/stub_carp.cc \
3273 client_side_reply.cc \
3274 client_side_request.cc \
3277 tests/stub_CollapsedForwarding.cc \
3284 $(DELAY_POOL_SOURCE) \
3294 ExternalACLEntry.cc \
3296 tests/stub_fatal.cc \
3314 HttpHeaderFieldStat.h \
3318 HttpHdrContRange.cc \
3321 HttpHdrScTarget.cc \
3324 HttpHeaderFieldInfo.h \
3326 HttpHeaderTools.cc \
3349 tests/stub_libmem.cc \
3364 peer_proxy_negotiate_auth.h \
3365 peer_proxy_negotiate_auth.cc \
3368 peer_sourcehash.cc \
3372 tests/stub_redirect.cc \
3377 SBufDetailedStats.h \
3378 tests/stub_SBufDetailedStats.cc \
3388 tests/stub_StatHist.cc \
3394 tests/stub_store_digest.cc \
3407 StoreFileSystem.cc \
3409 tests/stub_StoreMeta.cc \
3410 StoreMetaUnpacker.cc \
3411 StoreSwapLogData.cc \
3416 tests/stub_SwapDir.cc \
3418 tests/stub_debug.cc \
3419 tests/stub_libauth_acls.cc \
3420 tests/stub_libauth.cc \
3421 tests/stub_libdiskio.cc \
3422 tests/stub_libsecurity.cc \
3423 tests/stub_main_cc.cc \
3424 tests/stub_ipc_Forwarder.cc \
3425 tests/stub_store_stats.cc \
3428 tests/testUriScheme.cc \
3429 tests/testUriScheme.h \
3430 tests/stub_time.cc \
3431 tests/stub_EventLoop.cc \
3434 tests/stub_tunnel.cc \
3439 tests/stub_wccp2.cc \
3441 tests/stub_whois.cc \
3446 nodist_tests_testURL_SOURCES = \
3448 tests_testURL_LDADD = \
3450 clients/libclients.la \
3451 servers/libservers.la \
3452 helper/libhelper.la \
3453 http/libsquid-http.la \
3455 parser/libsquid-parser.la \
3470 icmp/libicmp.la icmp/libicmp-core.la \
3473 format/libformat.la \
3476 $(ADAPTATION_LIBS) \
3478 $(top_builddir)/lib/libmisccontainers.la \
3479 $(top_builddir)/lib/libmiscencoding.la \
3480 $(top_builddir)/lib/libmiscutil.la \
3483 $(SQUID_CPPUNIT_LIBS) \
3484 $(SQUID_CPPUNIT_LA) \
3489 tests_testURL_LDFLAGS = $(LIBADD_DL)
3490 tests_testURL_DEPENDENCIES = \
3494 tests_testSBuf_SOURCES= \
3497 tests/SBufFindTest.h \
3498 tests/SBufFindTest.cc \
3500 SBufDetailedStats.h \
3501 tests/stub_SBufDetailedStats.cc \
3503 tests/stub_time.cc \
3504 tests/stub_debug.cc \
3505 tests/stub_fatal.cc \
3506 tests/stub_HelperChildConfig.cc \
3507 tests/stub_libmem.cc \
3508 tests/stub_cache_cf.cc \
3509 tests/stub_cache_manager.cc \
3510 tests/stub_cbdata.cc \
3511 tests/stub_store.cc \
3512 tests/stub_store_stats.cc \
3513 tests/stub_tools.cc \
3516 tests/stub_wordlist.cc \
3517 tests/stub_MemBuf.cc
3518 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3519 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3520 tests_testSBuf_LDADD=\
3525 $(top_builddir)/lib/libmiscutil.la \
3527 $(SQUID_CPPUNIT_LIBS) \
3530 tests_testSBuf_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3532 tests_testSBufList_SOURCES= \
3533 tests/testSBufList.h \
3534 tests/testSBufList.cc \
3539 SBufDetailedStats.h \
3540 tests/stub_SBufDetailedStats.cc \
3542 tests/stub_time.cc \
3543 tests/stub_MemObject.cc \
3544 tests/stub_cbdata.cc \
3545 tests/stub_comm.cc \
3546 tests/stub_debug.cc \
3547 tests/stub_event.cc \
3548 tests/stub_fatal.cc \
3550 tests/stub_HelperChildConfig.cc \
3551 tests/stub_libmem.cc \
3552 tests/stub_cache_cf.cc \
3553 tests/stub_cache_manager.cc \
3554 tests/stub_store.cc \
3555 tests/stub_stmem.cc \
3556 tests/stub_store_stats.cc \
3557 tests/stub_tools.cc \
3561 tests/stub_wordlist.cc \
3562 tests/stub_MemBuf.cc
3563 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3564 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3565 tests_testSBufList_LDADD=\
3570 $(top_builddir)/lib/libmiscutil.la \
3571 $(SQUID_CPPUNIT_LIBS) \
3574 tests_testSBufList_DEPENDENCIES= $(SQUID_CPPUNIT_LA)
3576 tests_testConfigParser_SOURCES = \
3578 tests/stub_libmem.cc \
3579 tests/stub_MemBuf.cc \
3580 tests/stub_time.cc \
3582 SBufDetailedStats.h \
3583 tests/stub_SBufDetailedStats.cc \
3587 tests/stub_fatal.cc \
3588 tests/testConfigParser.cc \
3589 tests/testConfigParser.h \
3592 tests/stub_cache_cf.cc \
3593 tests/stub_cache_manager.cc \
3594 tests/stub_cbdata.cc \
3595 tests/stub_debug.cc \
3596 tests/stub_HelperChildConfig.cc \
3598 tests/stub_tools.cc \
3601 nodist_tests_testConfigParser_SOURCES = \
3603 tests_testConfigParser_LDADD = \
3607 $(top_builddir)/lib/libmiscutil.la \
3609 $(SQUID_CPPUNIT_LIBS) \
3613 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3614 tests_testConfigParser_DEPENDENCIES = \
3617 tests_testStatHist_SOURCES = \
3618 tests/stub_cbdata.cc \
3620 tests/stub_fatal.cc \
3621 tests/stub_MemBuf.cc \
3623 SBufDetailedStats.h \
3624 tests/stub_SBufDetailedStats.cc \
3628 tests/stub_cache_manager.cc \
3629 tests/stub_comm.cc \
3630 tests/stub_debug.cc \
3631 tests/stub_DelayId.cc \
3632 tests/stub_HelperChildConfig.cc \
3633 tests/stub_libmem.cc \
3634 tests/stub_MemObject.cc \
3636 tests/stub_mime.cc \
3637 tests/stub_pconn.cc \
3638 tests/stub_stmem.cc \
3640 tests/stub_store.cc \
3641 tests/stub_store_stats.cc \
3644 tests/stub_tools.cc \
3645 tests/testStatHist.cc \
3646 tests/testStatHist.h
3647 nodist_tests_testStatHist_SOURCES = \
3649 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3650 tests_testStatHist_LDADD = \
3652 $(top_builddir)/lib/libmiscutil.la \
3653 $(top_builddir)/lib/libmisccontainers.la \
3654 $(SQUID_CPPUNIT_LIBS) \
3655 $(SQUID_CPPUNIT_LA) \
3657 tests_testStatHist_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3659 tests_testLookupTable_SOURCES = \
3660 tests/testLookupTable.h \
3661 tests/testLookupTable.cc \
3662 tests/stub_debug.cc \
3663 tests/stub_libmem.cc \
3664 tests/stub_SBufDetailedStats.cc \
3665 base/LookupTable.h \
3668 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3669 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3670 tests_testLookupTable_LDADD = \
3672 $(SQUID_CPPUNIT_LIBS) \
3675 tests_testLookupTable_DEPENDENCIES = $(SQUID_CPPUNIT_LA)
3677 TESTS += testHeaders
3679 ## Special Universal .h dependency test script
3680 ## aborts if error encountered
3681 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3682 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3683 ## src/repl/ has no .h files and its own makefile.
3685 CLEANFILES += testHeaders