1 ## Copyright (C) 1996-2016 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
28 LOADABLE_MODULES_SOURCES = \
34 SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO
35 DIST_SUBDIRS = mem base anyp helper dns ftp parser comm eui acl format clients sbuf servers fs repl store DiskIO
39 AUTH_LIBS= auth/libauth.la
40 AUTH_ACL_LIBS= auth/libacls.la
41 check_PROGRAMS+= tests/testACLMaxUserIP
45 SUBDIRS += http ip icmp ident log ipc mgr
46 DIST_SUBDIRS += http ip icmp ident log ipc mgr
55 DIST_SUBDIRS += ssl security
65 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
67 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
76 DIST_SUBDIRS += adaptation
82 $(top_builddir)/lib/libTrie/libTrie.a \
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 noinst_LTLIBRARIES = libsquid.la
175 ## cfgen is used when building squid
176 ## ufsdump is a debug utility, it is possibly useful for end users with cache
177 ## corruption, but at this point we do not install it.
190 cf_gen_SOURCES = cf_gen.cc
191 nodist_cf_gen_HEADER = cf_gen_defines.cci
192 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
194 cf_gen.$(OBJEXT): cf_gen_defines.cci
196 ## cf_gen.cc needs src/cf_gen_defines.cci
197 AM_CPPFLAGS += -I$(top_builddir)/src
200 ACL_REGISTRATION_SOURCES = AclRegs.cc AuthReg.cc
202 # common library for all the binaries and tests. This is kindof a catch all
203 # and smaller libraries split from this are encouraged. Using lt convenience
204 # libraries, dependencies should not be a problem either.
205 libsquid_la_SOURCES = \
216 $(ACL_REGISTRATION_SOURCES) \
228 NeighborTypeDomainList.h \
241 client_side_reply.cc \
242 client_side_reply.h \
243 client_side_request.cc \
244 client_side_request.h \
249 ClientRequestContext.h \
252 clientStreamForward.h \
253 CollapsedForwarding.cc \
254 CollapsedForwarding.h \
255 CompletionDispatcher.cc \
256 CompletionDispatcher.h \
270 $(DELAY_POOL_SOURCE) \
289 ExternalACLEntry.cc \
312 HierarchyLogEntry.h \
317 HttpHeaderFieldStat.h \
326 HttpHdrContRange.cc \
333 HttpHeaderFieldInfo.h \
359 $(LEAKFINDERSOURCE) \
386 $(XPROF_STATS_SOURCE) \
391 peer_proxy_negotiate_auth.h \
392 peer_proxy_negotiate_auth.cc \
415 sbuf/StringConvert.h \
455 StoreMetaUnpacker.cc \
456 StoreMetaUnpacker.h \
457 $(STOREMETA_SOURCE) \
461 StoreSwapLogData.cc \
490 EXTRA_squid_SOURCES = \
493 $(DELAY_POOL_ALL_SOURCE) \
503 $(WIN32_ALL_SOURCE) \
504 $(LOADABLE_MODULES_SOURCES)
507 client_side_request.cci \
525 CLEANFILES += $(BUILT_SOURCES)
527 nodist_squid_SOURCES = \
537 clients/libclients.la \
538 servers/libservers.la \
540 helper/libhelper.la \
547 DiskIO/libdiskio.la \
553 security/libsecurity.la \
554 parser/libparser.la \
558 format/libformat.la \
570 $(top_builddir)/lib/libmisccontainers.la \
571 $(top_builddir)/lib/libmiscencoding.la \
572 $(top_builddir)/lib/libmiscutil.la \
581 if ENABLE_LOADABLE_MODULES
582 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
583 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
584 squid_LDFLAGS = -export-dynamic -dlopen force
585 ## when static module linking is supported and enabled:
586 ## squid_LDFLAGS = -all-static -dlopen self
588 ## LTDL headers require their local include path...
589 AM_CPPFLAGS += $(INCLTDL)
592 ## Kerberos libraries require their include path...
593 AM_CPPFLAGS += $(KRB5INCS)
596 unlinkd_SOURCES = unlinkd_daemon.cc
601 recv_announce_SOURCES = recv-announce.cc
603 ## What requires what..
604 ## many things want ACLChecklist.cc
605 ## ACLChecklist.cc wants AuthUserRequest.cc
606 ## ACLChecklist.cc wants AuthScheme.cc
607 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
608 ## ACLProxyAuth.cc wants ACLUserData
609 ## ACLProxyAuth.cc wants ACLRegexData
610 ## cache_cf.cc wants $(AUTH_LIBS)
611 ## cache_cf.cc wants store/libstore.la
612 ## cache_cf.cc wants AnyP::PortCfg
613 ## client_side wants client_db
614 ## client_db wants SNMP_SOURCE
615 ## snmp_core wants ACLStringData
616 ## tools.cc wants ip/libip.la
617 ## client_side.cc wants ip/libip.la
618 ## libbase.la wants cbdata.*
619 ## libbase.la wants MemBuf.*
633 tests/stub_StoreMeta.cc \
634 StoreMetaUnpacker.cc \
641 helper/ChildConfig.h \
642 tests/stub_HelperChildConfig.cc \
669 ufsdump_DEPENDENCIES = \
681 DiskIO/libdiskio.la \
684 nodist_ufsdump_SOURCES = \
689 squid.conf.documented \
714 include $(srcdir)/tests/Stub.list
722 mk-string-arrays.awk \
728 # Make location configure settings available to the code
729 DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\"
731 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
733 globals.cc: globals.h mk-globals-c.awk
734 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
736 ## Generate files containing string arrays for various enums....
737 hier_code.cc: hier_code.h mk-string-arrays.awk
738 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
740 err_type.cc: err_type.h mk-string-arrays.awk
741 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_type.h > $@ || ($(RM) -f $@ && exit 1)
743 err_detail_type.cc: err_detail_type.h mk-string-arrays.awk
744 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/err_detail_type.h | sed 's/ERR_DETAIL_//' > $@ || ($(RM) -f $@ && exit 1)
746 lookup_t.cc: lookup_t.h mk-string-arrays.awk
747 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
749 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
750 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
752 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
753 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
756 ## other generated files...
758 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
759 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
761 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
762 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
764 ## If autodependency works well this is not needed anymore
765 cache_cf.o: cf_parser.cci
767 # cf_gen builds the configuration files.
768 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
769 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
771 # squid.conf.default is built by cf_gen when making cf_parser.cci
772 squid.conf.default squid.conf.documented: cf_parser.cci
775 cf_parser.cci: cf.data cf_gen$(EXEEXT)
776 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
778 # The cf_gen_defines.cci is auto-generated and does not exist when the
779 # dependencies computed. We need to add its include files (autoconf.h) here
780 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
781 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
784 ## FIXME: generate a sed command file from configure. Then this doesn't
785 ## depend on the Makefile.
786 cf.data: cf.data.pre Makefile
788 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
789 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
790 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
791 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
792 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
793 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
794 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
795 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
796 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
797 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
798 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
799 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
800 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
801 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
802 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
803 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
804 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
805 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
806 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
807 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
808 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
809 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
810 -f $(srcdir)/cf.data.sed \
811 < $(srcdir)/cf.data.pre >$@
813 repl_modules.cc: repl_modules.sh Makefile
814 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
816 include $(top_srcdir)/doc/manuals/Substitute.am
818 squid.8: $(srcdir)/squid.8.in Makefile
819 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
822 EXTRA_DIST += squid.8.in
823 CLEANFILES += squid.8
825 install-data-local: install-sysconfDATA install-dataDATA
826 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
827 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
829 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
830 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
832 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
833 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
835 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
836 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
838 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
839 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
840 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
841 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
842 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
843 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
844 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
846 uninstall-local: squid.conf.default
847 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
848 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
850 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
853 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
854 cp $(top_srcdir)/test-suite/test_tools.cc .
856 # stock tools for unit tests - library independent versions of dlink_list
858 # globals.cc is needed by test_tools.cc.
859 # Neither of these should be disted from here.
866 tests/testBoilerplate \
867 tests/testCacheManager \
868 tests/testCharacterSet \
871 tests/testEnumIterator \
873 tests/testEventLoop \
874 tests/test_http_range \
875 tests/testTokenizer \
876 tests/testHttp1Parser \
877 tests/testHttpReply \
878 tests/testHttpRequest \
880 tests/testIpAddress \
886 tests/testConfigParser \
888 tests/testLookupTable \
892 check_PROGRAMS += tests/testRock
895 check_PROGRAMS += tests/testUfs
898 ## NP: required to run the above list. check_PROGRAMS only builds the binaries...
899 TESTS += $(check_PROGRAMS)
901 ### Template for new Unit Test Program
902 ## - add tests/testX to check_PROGRAMS above.
903 ## - copy template below and substitue X for class name
904 ## - add other component .(h|cc) files needed to link and run tests
906 ##NP: (TESTSOURCES) defines stub debugs() and new/delete for testing
908 #tests_testX_SOURCES=\
913 #nodist_tests_testX_SOURCES=\
914 # tests/stubs_as_needed.cc\
916 #tests_testX_LDFLAGS = $(LIBADD_DL)
918 # $(SQUID_CPPUNIT_LIBS) \
919 # $(SQUID_CPPUNIT_LA) \
922 # - add other component .(h|cc) files needed to link and run tests
923 tests_testHttpReply_SOURCES=\
929 tests/stub_fatal.cc \
932 HttpHeaderFieldStat.h \
936 HttpHdrContRange.cc \
946 HttpHeaderFieldInfo.h \
965 tests/stub_SBufDetailedStats.cc \
970 tests/stub_access_log.cc \
972 tests/stub_cache_cf.cc \
973 tests/stub_cache_manager.cc \
975 tests/stub_debug.cc \
976 tests/stub_errorpage.cc \
977 tests/stub_event.cc \
979 tests/stub_HelperChildConfig.cc \
980 tests/stub_libformat.cc \
981 tests/stub_libauth.cc \
982 tests/stub_libcomm.cc \
983 tests/stub_libmgr.cc \
984 tests/stub_libsecurity.cc \
985 tests/stub_libsslsquid.cc \
989 tests/stub_StatHist.cc \
991 tests/stub_store.cc \
992 tests/stub_store_stats.cc \
994 tests/stub_tools.cc \
995 tests/stub_HttpRequest.cc \
996 tests/testHttpReply.cc \
997 tests/testHttpReply.h \
1002 nodist_tests_testHttpReply_SOURCES=\
1004 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
1005 tests_testHttpReply_LDADD=\
1008 parser/libparser.la \
1018 $(top_builddir)/lib/libmisccontainers.la \
1019 $(top_builddir)/lib/libmiscencoding.la \
1020 $(top_builddir)/lib/libmiscutil.la \
1021 $(SQUID_CPPUNIT_LIBS) \
1022 $(SQUID_CPPUNIT_LA) \
1028 tests_testACLMaxUserIP_SOURCES= \
1031 tests/stub_CollapsedForwarding.cc \
1034 tests/stub_ETag.cc \
1037 tests/stub_fatal.cc \
1043 HttpHeaderFieldInfo.h \
1045 HttpHeaderTools.cc \
1046 HttpHdrContRange.cc \
1048 HttpHeaderFieldStat.h \
1053 HttpHdrScTarget.cc \
1065 tests/stub_libsecurity.cc \
1072 tests/stub_StatHist.cc \
1074 tests/stub_SBufDetailedStats.cc \
1077 tests/stub_StoreMeta.cc \
1078 StoreMetaUnpacker.cc \
1079 StoreSwapLogData.cc \
1084 tests/stub_SwapDir.cc \
1087 tests/stub_access_log.cc \
1089 tests/stub_cache_cf.cc \
1090 tests/stub_client_side.cc \
1091 tests/stub_debug.cc \
1092 tests/stub_DelayId.cc \
1093 tests/stub_errorpage.cc \
1096 tests/stub_HttpRequest.cc \
1097 tests/stub_HttpReply.cc \
1098 tests/stub_ipc_TypedMsgHdr.cc \
1099 tests/stub_libauth.cc \
1100 tests/stub_libcomm.cc \
1101 tests/stub_libdiskio.cc \
1102 tests/stub_libformat.cc \
1103 tests/stub_libmem.cc \
1104 tests/stub_libsslsquid.cc \
1105 tests/stub_MemObject.cc \
1106 tests/stub_MemStore.cc \
1108 tests/stub_mime.cc \
1109 tests/stub_pconn.cc \
1110 tests/stub_Port.cc \
1112 tests/stub_store.cc \
1113 tests/stub_store_client.cc \
1115 tests/stub_store_rebuild.cc \
1116 tests/stub_store_stats.cc \
1117 tests/stub_store_swapout.cc \
1119 tests/stub_tools.cc \
1120 tests/stub_cache_manager.cc \
1121 tests/stub_UdsOp.cc \
1122 tests/testACLMaxUserIP.cc \
1123 tests/testACLMaxUserIP.h \
1124 tests/stub_time.cc \
1130 nodist_tests_testACLMaxUserIP_SOURCES= \
1132 tests_testACLMaxUserIP_LDADD= \
1134 helper/libhelper.la \
1136 parser/libparser.la \
1149 $(top_builddir)/lib/libmisccontainers.la \
1150 $(top_builddir)/lib/libmiscencoding.la \
1151 $(top_builddir)/lib/libmiscutil.la \
1154 $(SQUID_CPPUNIT_LIBS) \
1158 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1160 ## a demonstration test that does nothing but shows the salient points
1161 ## involved in writing tests.
1162 tests_testBoilerplate_SOURCES = \
1163 tests/testBoilerplate.cc \
1164 tests/testBoilerplate.h \
1165 tests/stub_debug.cc \
1166 tests/stub_libmem.cc \
1168 nodist_tests_testBoilerplate_SOURCES = \
1169 tests/stub_cbdata.cc \
1170 tests/stub_MemBuf.cc \
1172 tests_testBoilerplate_LDADD= \
1173 $(SQUID_CPPUNIT_LIBS) \
1174 $(SQUID_CPPUNIT_LA) \
1179 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1181 ## Tests of base/libbase.la objects
1182 tests_testCharacterSet_SOURCES = \
1183 tests/testCharacterSet.cc \
1184 tests/testCharacterSet.h
1185 nodist_tests_testCharacterSet_SOURCES = \
1186 base/CharacterSet.h \
1188 tests/stub_cbdata.cc \
1189 tests/stub_debug.cc \
1190 tests/stub_libmem.cc \
1191 tests/stub_MemBuf.cc
1192 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
1193 tests_testCharacterSet_LDADD= \
1196 $(SQUID_CPPUNIT_LA) \
1197 $(SQUID_CPPUNIT_LIBS) \
1200 ## Tests of the CacheManager module.
1201 tests_testCacheManager_SOURCES = \
1208 tests/testCacheManager.cc \
1209 tests/testCacheManager.h \
1210 tests/stub_main_cc.cc \
1211 tests/stub_HttpControlMsg.cc \
1212 tests/stub_ipc_Forwarder.cc \
1213 tests/stub_store_stats.cc \
1214 tests/stub_EventLoop.cc \
1225 tests/stub_CacheDigest.cc \
1227 tests/stub_carp.cc \
1233 client_side_reply.cc \
1234 client_side_request.cc \
1237 tests/stub_CollapsedForwarding.cc \
1244 $(DELAY_POOL_SOURCE) \
1251 tests/stub_ETag.cc \
1254 ExternalACLEntry.cc \
1256 tests/stub_fatal.cc \
1277 HttpHeaderFieldInfo.h \
1279 HttpHeaderTools.cc \
1280 HttpHeaderFieldStat.h \
1284 HttpHdrContRange.cc \
1287 HttpHdrScTarget.cc \
1299 tests/stub_libsecurity.cc \
1320 peer_proxy_negotiate_auth.h \
1321 peer_proxy_negotiate_auth.cc \
1324 peer_sourcehash.cc \
1332 tests/stub_redirect.cc \
1336 tests/stub_SBufDetailedStats.cc \
1348 tests/stub_libauth_acls.cc \
1349 tests/stub_libauth.cc \
1350 tests/stub_libdiskio.cc \
1351 tests/stub_StatHist.cc \
1357 tests/stub_store_digest.cc \
1369 StoreFileSystem.cc \
1371 tests/stub_StoreMeta.cc \
1372 StoreMetaUnpacker.cc \
1373 StoreSwapLogData.cc \
1377 tests/stub_tunnel.cc \
1378 tests/stub_SwapDir.cc \
1385 tests/stub_wccp2.cc \
1387 tests/stub_whois.cc \
1392 nodist_tests_testCacheManager_SOURCES = \
1394 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
1395 tests_testCacheManager_LDADD = \
1397 clients/libclients.la \
1398 servers/libservers.la \
1400 helper/libhelper.la \
1402 parser/libparser.la \
1415 format/libformat.la \
1417 $(ADAPTATION_LIBS) \
1427 $(top_builddir)/lib/libmisccontainers.la \
1428 $(top_builddir)/lib/libmiscencoding.la \
1429 $(top_builddir)/lib/libmiscutil.la \
1432 $(SQUID_CPPUNIT_LIBS) \
1433 $(SQUID_CPPUNIT_LA) \
1438 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
1440 tests_testDiskIO_SOURCES = \
1442 tests/stub_CacheDigest.cc \
1446 tests/stub_CollapsedForwarding.cc \
1449 $(DELAY_POOL_SOURCE) \
1452 tests/stub_ETag.cc \
1456 tests/stub_fatal.cc \
1465 HttpHeaderFieldStat.h \
1469 HttpHdrContRange.cc \
1471 HttpHdrScTarget.cc \
1473 HttpHeaderFieldInfo.h \
1475 HttpHeaderTools.cc \
1497 tests/stub_libsecurity.cc \
1501 tests/stub_StatHist.cc \
1503 tests/stub_SBufDetailedStats.cc \
1504 StoreFileSystem.cc \
1506 tests/stub_StoreMeta.cc \
1507 StoreMetaUnpacker.cc \
1508 StoreSwapLogData.cc \
1519 tests/stub_SwapDir.cc \
1522 tests/stub_access_log.cc \
1525 tests/stub_cache_cf.cc \
1526 tests/stub_cache_manager.cc \
1527 tests/stub_client_db.cc \
1528 client_side_request.h \
1529 tests/stub_client_side_request.cc \
1530 tests/stub_debug.cc \
1531 tests/stub_errorpage.cc \
1532 tests/stub_helper.cc \
1533 tests/stub_HelperChildConfig.cc \
1534 tests/stub_HttpRequest.cc \
1535 tests/stub_http.cc \
1538 tests/stub_internal.cc \
1540 tests/stub_ipcache.cc \
1541 tests/stub_libauth_acls.cc \
1542 tests/stub_libauth.cc \
1543 tests/stub_libeui.cc \
1544 tests/stub_libformat.cc \
1545 tests/stub_libicmp.cc \
1546 tests/stub_MemStore.cc \
1548 tests/stub_mime.cc \
1549 tests/stub_neighbors.cc \
1550 tests/stub_pconn.cc \
1551 tests/stub_Port.cc \
1552 tests/stub_stat.cc \
1553 tests/stub_store_client.cc \
1554 tests/stub_store_stats.cc \
1556 tests/stub_store_rebuild.cc \
1557 tests/stub_UdsOp.cc \
1558 tests/testDiskIO.cc \
1559 tests/testDiskIO.h \
1560 tests/testStoreSupport.cc \
1561 tests/testStoreSupport.h \
1562 tests/stub_time.cc \
1570 nodist_tests_testDiskIO_SOURCES= \
1575 tests_testDiskIO_LDADD = \
1578 parser/libparser.la \
1589 DiskIO/libdiskio.la \
1600 $(top_builddir)/lib/libmisccontainers.la \
1601 $(top_builddir)/lib/libmiscencoding.la \
1602 $(top_builddir)/lib/libmiscutil.la \
1605 $(SQUID_CPPUNIT_LIBS) \
1609 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1610 tests_testDiskIO_DEPENDENCIES = \
1611 DiskIO/libdiskio.la \
1615 tests_testDns_SOURCES= \
1616 tests/testRFC1035.cc \
1618 nodist_tests_testDns_SOURCES= \
1619 tests/stub_debug.cc \
1620 tests/stub_libmem.cc \
1621 tests/stub_SBuf.cc \
1623 tests_testDns_LDADD= \
1626 $(top_builddir)/lib/libmiscutil.la \
1629 $(SQUID_CPPUNIT_LA) \
1630 $(SQUID_CPPUNIT_LIBS)
1631 tests_testDns_LDFLAGS= $(LIBADD_DL)
1633 tests_testEvent_SOURCES = \
1637 tests/stub_CacheDigest.cc \
1646 tests/stub_carp.cc \
1652 client_side_reply.cc \
1653 client_side_request.cc \
1656 tests/stub_CollapsedForwarding.cc \
1664 $(DELAY_POOL_SOURCE) \
1671 tests/stub_ETag.cc \
1676 ExternalACLEntry.cc \
1679 tests/stub_fatal.cc \
1697 tests/stub_HttpControlMsg.cc \
1700 HttpHeaderFieldInfo.h \
1702 HttpHeaderTools.cc \
1703 HttpHeaderFieldStat.h \
1707 HttpHdrContRange.cc \
1710 HttpHdrScTarget.cc \
1727 tests/stub_libsecurity.cc \
1732 tests/stub_libmem.cc \
1749 peer_proxy_negotiate_auth.h \
1750 peer_proxy_negotiate_auth.cc \
1753 peer_sourcehash.cc \
1759 tests/stub_redirect.cc \
1765 tests/stub_SBufDetailedStats.cc \
1781 tests/stub_store_digest.cc \
1793 StoreFileSystem.cc \
1795 tests/stub_StoreMeta.cc \
1796 StoreMetaUnpacker.cc \
1797 StoreSwapLogData.cc \
1799 tests/stub_SwapDir.cc \
1800 tests/CapturingStoreEntry.h \
1801 tests/testEvent.cc \
1803 tests/stub_main_cc.cc \
1804 tests/stub_ipc_Forwarder.cc \
1805 tests/stub_libauth_acls.cc \
1806 tests/stub_libauth.cc \
1807 tests/stub_libdiskio.cc \
1808 tests/stub_libeui.cc \
1809 tests/stub_store_stats.cc \
1814 tests/stub_tunnel.cc \
1821 tests/stub_wccp2.cc \
1823 tests/stub_whois.cc \
1827 nodist_tests_testEvent_SOURCES = \
1829 tests_testEvent_LDADD = \
1831 clients/libclients.la \
1832 servers/libservers.la \
1834 helper/libhelper.la \
1836 parser/libparser.la \
1849 format/libformat.la \
1851 $(ADAPTATION_LIBS) \
1854 $(top_builddir)/lib/libmisccontainers.la \
1855 $(top_builddir)/lib/libmiscencoding.la \
1856 $(top_builddir)/lib/libmiscutil.la \
1864 $(SQUID_CPPUNIT_LIBS) \
1865 $(SQUID_CPPUNIT_LA) \
1870 tests_testEvent_LDFLAGS = $(LIBADD_DL)
1872 ## Tests of the EventLoop module.
1873 tests_testEventLoop_SOURCES = \
1877 tests/stub_CacheDigest.cc \
1886 tests/stub_carp.cc \
1892 client_side_reply.cc \
1893 client_side_request.cc \
1896 tests/stub_CollapsedForwarding.cc \
1904 $(DELAY_POOL_SOURCE) \
1911 tests/stub_ETag.cc \
1916 ExternalACLEntry.cc \
1919 tests/stub_fatal.cc \
1937 tests/stub_HttpControlMsg.cc \
1940 HttpHeaderFieldInfo.h \
1942 HttpHeaderTools.cc \
1943 HttpHeaderFieldStat.h \
1947 HttpHdrContRange.cc \
1950 HttpHdrScTarget.cc \
1973 tests/stub_libmem.cc \
1988 peer_proxy_negotiate_auth.h \
1989 peer_proxy_negotiate_auth.cc \
1992 peer_sourcehash.cc \
1999 tests/stub_redirect.cc \
2002 tests/stub_SBufDetailedStats.cc \
2018 tests/stub_store_digest.cc \
2030 StoreFileSystem.cc \
2032 tests/stub_StoreMeta.cc \
2033 StoreMetaUnpacker.cc \
2034 StoreSwapLogData.cc \
2038 tests/stub_SwapDir.cc \
2039 tests/testEventLoop.cc \
2040 tests/testEventLoop.h \
2041 tests/stub_main_cc.cc \
2042 tests/stub_ipc_Forwarder.cc \
2043 tests/stub_libauth_acls.cc \
2044 tests/stub_libauth.cc \
2045 tests/stub_libdiskio.cc \
2046 tests/stub_libeui.cc \
2047 tests/stub_libsecurity.cc \
2048 tests/stub_store_stats.cc \
2053 tests/stub_tunnel.cc \
2060 tests/stub_wccp2.cc \
2062 tests/stub_whois.cc \
2066 nodist_tests_testEventLoop_SOURCES = \
2068 tests_testEventLoop_LDADD = \
2070 clients/libclients.la \
2071 servers/libservers.la \
2073 helper/libhelper.la \
2075 parser/libparser.la \
2088 format/libformat.la \
2090 $(ADAPTATION_LIBS) \
2093 $(top_builddir)/lib/libmisccontainers.la \
2094 $(top_builddir)/lib/libmiscencoding.la \
2095 $(top_builddir)/lib/libmiscutil.la \
2103 $(SQUID_CPPUNIT_LIBS) \
2104 $(SQUID_CPPUNIT_LA) \
2109 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2111 tests_test_http_range_SOURCES = \
2122 tests/stub_CacheDigest.cc \
2124 tests/stub_carp.cc \
2130 client_side_reply.cc \
2131 client_side_request.cc \
2134 tests/stub_CollapsedForwarding.cc \
2142 $(DELAY_POOL_SOURCE) \
2149 tests/stub_ETag.cc \
2153 tests/stub_libauth.cc \
2154 tests/stub_fatal.cc \
2172 tests/stub_HttpControlMsg.cc \
2173 HttpHeaderFieldStat.h \
2177 HttpHdrContRange.cc \
2180 HttpHdrScTarget.cc \
2183 HttpHeaderFieldInfo.h \
2185 HttpHeaderTools.cc \
2208 tests/stub_libmem.cc \
2222 peer_proxy_negotiate_auth.h \
2223 peer_proxy_negotiate_auth.cc \
2226 peer_sourcehash.cc \
2233 tests/stub_redirect.cc \
2237 tests/stub_SBufDetailedStats.cc \
2253 tests/stub_store_digest.cc \
2265 StoreFileSystem.cc \
2267 tests/stub_StoreMeta.cc \
2268 StoreMetaUnpacker.cc \
2269 StoreSwapLogData.cc \
2273 tests/stub_SwapDir.cc \
2275 tests/test_http_range.cc \
2276 tests/stub_external_acl.cc \
2277 tests/stub_ipc_Forwarder.cc \
2278 tests/stub_libdiskio.cc \
2279 tests/stub_libeui.cc \
2280 tests/stub_libsecurity.cc \
2281 tests/stub_main_cc.cc \
2282 tests/stub_MemStore.cc \
2283 tests/stub_store_stats.cc \
2284 tests/stub_EventLoop.cc \
2288 tests/stub_tunnel.cc \
2294 tests/stub_wccp2.cc \
2296 tests/stub_whois.cc \
2300 nodist_tests_test_http_range_SOURCES = \
2302 tests_test_http_range_LDADD = \
2304 clients/libclients.la \
2305 servers/libservers.la \
2307 helper/libhelper.la \
2309 parser/libparser.la \
2314 parser/libparser.la \
2321 format/libformat.la \
2323 $(ADAPTATION_LIBS) \
2333 $(top_builddir)/lib/libmisccontainers.la \
2334 $(top_builddir)/lib/libmiscencoding.la \
2335 $(top_builddir)/lib/libmiscutil.la \
2338 $(SQUID_CPPUNIT_LIBS) \
2339 $(SQUID_CPPUNIT_LA) \
2344 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
2346 ## Tests of parser/* objects
2347 tests_testTokenizer_SOURCES = \
2348 tests/testTokenizer.h \
2349 tests/testTokenizer.cc
2350 nodist_tests_testTokenizer_SOURCES = \
2351 parser/Tokenizer.h \
2355 tests/stub_debug.cc \
2356 tests/stub_libmem.cc \
2357 tests/stub_time.cc \
2358 tests/stub_SBufDetailedStats.cc
2359 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
2360 tests_testTokenizer_LDADD = \
2361 parser/libparser.la \
2364 $(top_builddir)/lib/libmiscutil.la \
2366 $(SQUID_CPPUNIT_LA) \
2367 $(SQUID_CPPUNIT_LIBS) \
2370 tests_testHttp1Parser_SOURCES = \
2374 tests/stub_MemObject.cc \
2379 tests/stub_SBufDetailedStats.cc \
2380 tests/stub_cache_cf.cc \
2381 tests/stub_cache_manager.cc \
2382 tests/stub_comm.cc \
2383 tests/stub_cbdata.cc \
2384 tests/stub_debug.cc \
2385 tests/stub_event.cc \
2386 tests/stub_HelperChildConfig.cc \
2387 tests/stub_libmem.cc \
2388 tests/stub_libsecurity.cc \
2389 tests/stub_stmem.cc \
2390 tests/stub_store.cc \
2391 tests/stub_store_stats.cc \
2393 tests/stub_tools.cc \
2394 tests/testHttp1Parser.cc \
2395 tests/testHttp1Parser.h \
2396 tests/stub_time.cc \
2399 nodist_tests_testHttp1Parser_SOURCES = \
2401 tests_testHttp1Parser_LDADD= \
2403 parser/libparser.la \
2409 $(top_builddir)/lib/libmiscutil.la \
2410 $(SQUID_CPPUNIT_LIBS) \
2411 $(SQUID_CPPUNIT_LA) \
2415 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2417 ## Tests of the HttpRequest module.
2418 tests_testHttpRequest_SOURCES = \
2423 tests/stub_libmem.cc \
2425 tests/testHttpRequest.h \
2426 tests/testHttpRequest.cc \
2427 tests/testHttpRequestMethod.h \
2428 tests/testHttpRequestMethod.cc \
2429 tests/stub_libauth.cc \
2430 tests/stub_main_cc.cc \
2431 tests/stub_ipc_Forwarder.cc \
2432 tests/stub_libdiskio.cc \
2433 tests/stub_libeui.cc \
2434 tests/stub_store_stats.cc \
2435 tests/stub_EventLoop.cc \
2445 tests/stub_CacheDigest.cc \
2449 tests/stub_carp.cc \
2455 client_side_reply.cc \
2456 client_side_request.cc \
2459 tests/stub_CollapsedForwarding.cc \
2466 $(DELAY_POOL_SOURCE) \
2473 tests/stub_ETag.cc \
2475 ExternalACLEntry.cc \
2477 tests/stub_fatal.cc \
2493 tests/stub_HttpControlMsg.cc \
2496 HttpHeaderFieldInfo.h \
2498 HttpHeaderTools.cc \
2499 HttpHeaderFieldStat.h \
2503 HttpHdrContRange.cc \
2506 HttpHdrScTarget.cc \
2518 tests/stub_libsecurity.cc \
2539 peer_proxy_negotiate_auth.h \
2540 peer_proxy_negotiate_auth.cc \
2543 peer_sourcehash.cc \
2551 tests/stub_libauth_acls.cc \
2552 tests/stub_redirect.cc \
2556 tests/stub_SBufDetailedStats.cc \
2572 tests/stub_store_digest.cc \
2584 StoreFileSystem.cc \
2586 tests/stub_StoreMeta.cc \
2587 StoreMetaUnpacker.cc \
2588 StoreSwapLogData.cc \
2595 tests/stub_tunnel.cc \
2596 tests/stub_SwapDir.cc \
2602 tests/stub_wccp2.cc \
2604 tests/stub_whois.cc \
2609 nodist_tests_testHttpRequest_SOURCES = \
2611 tests_testHttpRequest_LDADD = \
2613 clients/libclients.la \
2614 servers/libservers.la \
2615 helper/libhelper.la \
2622 parser/libparser.la \
2627 parser/libparser.la \
2636 format/libformat.la \
2640 $(ADAPTATION_LIBS) \
2642 $(top_builddir)/lib/libmisccontainers.la \
2643 $(top_builddir)/lib/libmiscencoding.la \
2644 $(top_builddir)/lib/libmiscutil.la \
2647 $(SQUID_CPPUNIT_LIBS) \
2648 $(SQUID_CPPUNIT_LA) \
2653 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2655 ## Tests for icmp/* objects
2656 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2657 tests_testIcmp_SOURCES = \
2660 nodist_tests_testIcmp_SOURCES = \
2663 tests/stub_debug.cc \
2664 tests/stub_libmem.cc \
2667 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2668 tests_testIcmp_LDADD=\
2669 icmp/libicmpcore.la \
2673 $(SQUID_CPPUNIT_LA) \
2674 $(SQUID_CPPUNIT_LIBS) \
2677 ## Tests for ip/* objects
2678 tests_testIpAddress_SOURCES= \
2679 tests/testAddress.cc \
2681 nodist_tests_testIpAddress_SOURCES= \
2683 tests/stub_debug.cc \
2684 tests/stub_libmem.cc \
2686 tests_testIpAddress_LDADD= \
2690 $(SQUID_CPPUNIT_LA) \
2691 $(SQUID_CPPUNIT_LIBS) \
2693 tests_testIpAddress_LDFLAGS= $(LIBADD_DL)
2695 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
2696 ## first line - what we are testing.
2697 tests_testStore_SOURCES= \
2699 tests/stub_CacheDigest.cc \
2702 tests/stub_CollapsedForwarding.cc \
2705 $(DELAY_POOL_SOURCE) \
2712 tests/stub_fatal.cc \
2715 HttpHeaderFieldStat.h \
2719 HttpHdrContRange.cc \
2722 HttpHdrScTarget.cc \
2723 HttpHeaderFieldInfo.h \
2725 HttpHeaderTools.cc \
2756 tests/stub_StoreMeta.cc \
2757 StoreMetaUnpacker.cc \
2758 StoreSwapLogData.cc \
2761 tests/stub_SBufDetailedStats.cc \
2765 tests/CapturingStoreEntry.h \
2767 tests/stub_access_log.cc \
2770 tests/stub_cache_cf.cc \
2771 tests/stub_cache_manager.cc \
2772 tests/stub_client_side_request.cc \
2773 tests/stub_comm.cc \
2774 tests/stub_debug.cc \
2775 tests/stub_errorpage.cc \
2779 tests/stub_helper.cc \
2780 tests/stub_HelperChildConfig.cc \
2781 tests/stub_http.cc \
2782 tests/stub_libauth.cc \
2783 tests/stub_libeui.cc \
2784 tests/stub_libdiskio.cc \
2785 tests/stub_libformat.cc \
2786 tests/stub_libsecurity.cc \
2787 tests/stub_libsslsquid.cc \
2790 tests/stub_HttpReply.cc \
2791 tests/stub_HttpRequest.cc \
2792 tests/stub_libcomm.cc \
2793 tests/stub_MemStore.cc \
2795 tests/stub_mime.cc \
2796 tests/stub_Port.cc \
2797 tests/stub_stat.cc \
2798 tests/stub_store_client.cc \
2799 tests/stub_store_stats.cc \
2801 tests/stub_store_rebuild.cc \
2802 tests/stub_store_swapout.cc \
2805 tests/stub_tools.cc \
2806 tests/stub_UdsOp.cc \
2807 tests/testPackableStream.cc \
2808 tests/testPackableStream.h \
2809 tests/testStore.cc \
2811 tests/testStoreController.cc \
2812 tests/testStoreController.h \
2813 tests/testStoreHashIndex.cc \
2814 tests/testStoreHashIndex.h \
2815 tests/testStoreSupport.cc \
2816 tests/testStoreSupport.h \
2817 tests/TestSwapDir.cc \
2818 tests/TestSwapDir.h \
2819 tests/stub_time.cc \
2824 nodist_tests_testStore_SOURCES= \
2830 tests_testStore_LDADD= \
2833 parser/libparser.la \
2848 DiskIO/libdiskio.la \
2849 $(top_builddir)/lib/libmisccontainers.la \
2850 $(top_builddir)/lib/libmiscencoding.la \
2851 $(top_builddir)/lib/libmiscutil.la \
2854 $(SQUID_CPPUNIT_LIBS) \
2855 $(SQUID_CPPUNIT_LA) \
2860 tests_testStore_LDFLAGS = $(LIBADD_DL)
2862 ## string needs mem.cc.
2863 ## mem.cc needs ClientInfo.h
2864 ## libsquid pulls in SquidConfig and children. stub them.
2865 tests_testString_SOURCES = \
2869 tests/stub_SBufDetailedStats.cc \
2870 tests/testString.cc \
2871 tests/testString.h \
2873 tests/stub_cache_cf.cc \
2874 tests/stub_cache_manager.cc \
2875 tests/stub_cbdata.cc \
2876 tests/stub_debug.cc \
2877 tests/stub_HelperChildConfig.cc \
2878 tests/stub_libmem.cc \
2880 tests/stub_tools.cc \
2881 tests/stub_time.cc \
2884 nodist_tests_testString_SOURCES = \
2886 tests_testString_LDADD = \
2891 $(top_builddir)/lib/libmiscutil.la \
2893 $(SQUID_CPPUNIT_LIBS) \
2894 $(SQUID_CPPUNIT_LA) \
2898 tests_testString_LDFLAGS = $(LIBADD_DL)
2910 DiskIO/libdiskio.la \
2916 tests_testUfs_SOURCES = \
2919 tests/stub_cache_manager.cc \
2920 tests/stub_client_db.cc \
2921 tests/stub_CollapsedForwarding.cc \
2922 tests/stub_HelperChildConfig.cc \
2925 tests/stub_ipcache.cc \
2926 tests/stub_libeui.cc \
2927 tests/stub_libicmp.cc \
2928 tests/stub_MemStore.cc \
2929 tests/stub_neighbors.cc \
2930 tests/stub_pconn.cc \
2931 tests/stub_Port.cc \
2932 tests/stub_UdsOp.cc \
2934 tests/stub_internal.cc \
2935 tests/stub_libformat.cc \
2936 tests/stub_libsecurity.cc \
2937 tests/stub_stat.cc \
2939 tests/stub_store_rebuild.cc \
2940 tests/stub_store_stats.cc \
2942 tests/stub_fatal.cc \
2967 StoreSwapLogData.cc \
2969 StoreMetaUnpacker.cc \
2970 $(STOREMETA_SOURCE) \
2971 StoreFileSystem.cc \
2978 $(DELAY_POOL_SOURCE) \
2980 tests/stub_CacheDigest.cc \
2993 tests/stub_cache_cf.cc \
2994 tests/stub_helper.cc \
2996 tests/stub_SBufDetailedStats.cc \
2998 tests/stub_debug.cc \
2999 tests/stub_client_side_request.cc \
3000 tests/stub_http.cc \
3001 tests/stub_libauth.cc \
3005 tests/stub_mime.cc \
3006 HttpHeaderFieldInfo.h \
3008 HttpHeaderTools.cc \
3013 HttpHdrContRange.cc \
3014 HttpHeaderFieldStat.h \
3019 HttpHdrScTarget.cc \
3029 tests/stub_errorpage.cc \
3030 tests/stub_HttpRequest.cc \
3032 tests/stub_access_log.cc \
3035 tests/stub_store_client.cc \
3037 tests/stub_tools.cc \
3038 tests/testStoreSupport.cc \
3039 tests/testStoreSupport.h \
3044 nodist_tests_testUfs_SOURCES = \
3049 tests_testUfs_LDADD = \
3051 parser/libparser.la \
3063 DiskIO/libdiskio.la \
3075 $(top_builddir)/lib/libmisccontainers.la \
3076 $(top_builddir)/lib/libmiscencoding.la \
3077 $(top_builddir)/lib/libmiscutil.la \
3080 $(SQUID_CPPUNIT_LIBS) \
3084 tests_testUfs_LDFLAGS = $(LIBADD_DL)
3085 tests_testUfs_DEPENDENCIES = \
3088 check_PROGRAMS += testRefCount
3089 testRefCount_SOURCES= \
3092 tests/stub_cbdata.cc \
3093 tests/stub_debug.cc \
3094 tests/stub_libmem.cc \
3095 tests/stub_MemBuf.cc \
3096 tests/testRefCount.cc
3097 testRefCount_LDADD = \
3099 $(top_builddir)/lib/libmiscutil.la \
3103 tests_testRock_SOURCES = \
3106 CollapsedForwarding.h \
3107 CollapsedForwarding.cc \
3108 tests/stub_CacheDigest.cc \
3124 HttpHeaderFieldStat.h \
3128 HttpHdrContRange.cc \
3131 HttpHdrScTarget.cc \
3134 HttpHeaderFieldInfo.h \
3136 HttpHeaderTools.cc \
3157 tests/stub_StatHist.cc \
3160 tests/stub_stat.cc \
3162 StoreFileSystem.cc \
3164 StoreMetaUnpacker.cc \
3165 $(STOREMETA_SOURCE) \
3166 StoreSwapLogData.cc \
3172 tests/stub_SBufDetailedStats.cc \
3180 tests/testStoreSupport.cc \
3181 tests/testStoreSupport.h \
3183 tests/stub_access_log.cc \
3185 tests/stub_cache_cf.cc \
3187 tests/stub_cache_manager.cc \
3188 tests/stub_client_db.cc \
3189 tests/stub_client_side_request.cc \
3190 tests/stub_debug.cc \
3191 tests/stub_errorpage.cc \
3192 tests/stub_HelperChildConfig.cc \
3193 tests/stub_http.cc \
3194 tests/stub_HttpRequest.cc \
3195 tests/stub_libauth.cc \
3198 tests/stub_ipcache.cc \
3199 tests/stub_libeui.cc \
3200 tests/stub_libformat.cc \
3201 tests/stub_libicmp.cc \
3202 tests/stub_libmgr.cc \
3203 tests/stub_libsecurity.cc \
3204 tests/stub_MemStore.cc \
3206 tests/stub_mime.cc \
3207 tests/stub_neighbors.cc \
3208 tests/stub_Port.cc \
3209 tests/stub_pconn.cc \
3210 tests/stub_store_client.cc \
3212 tests/stub_store_rebuild.cc \
3213 tests/stub_store_stats.cc \
3215 tests/stub_tools.cc \
3220 $(DELAY_POOL_SOURCE) \
3222 nodist_tests_testRock_SOURCES = \
3227 tests_testRock_LDADD = \
3229 parser/libparser.la \
3236 DiskIO/libdiskio.la \
3248 $(top_builddir)/lib/libmisccontainers.la \
3249 $(top_builddir)/lib/libmiscencoding.la \
3250 $(top_builddir)/lib/libmiscutil.la \
3253 $(SQUID_CPPUNIT_LIBS) \
3257 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
3258 tests_testRock_DEPENDENCIES = \
3261 ## Tests of the URL module.
3262 ## TODO: Trim this down once the insanity is over.
3263 tests_testURL_SOURCES = \
3270 tests/stub_cache_manager.cc \
3272 tests/stub_CacheDigest.cc \
3276 tests/stub_carp.cc \
3282 client_side_reply.cc \
3283 client_side_request.cc \
3286 tests/stub_CollapsedForwarding.cc \
3293 $(DELAY_POOL_SOURCE) \
3303 ExternalACLEntry.cc \
3305 tests/stub_fatal.cc \
3323 tests/stub_HttpControlMsg.cc \
3324 HttpHeaderFieldStat.h \
3328 HttpHdrContRange.cc \
3331 HttpHdrScTarget.cc \
3334 HttpHeaderFieldInfo.h \
3336 HttpHeaderTools.cc \
3352 tests/stub_libeui.cc \
3374 peer_proxy_negotiate_auth.h \
3375 peer_proxy_negotiate_auth.cc \
3378 peer_sourcehash.cc \
3384 tests/stub_redirect.cc \
3388 tests/stub_SBufDetailedStats.cc \
3398 tests/stub_StatHist.cc \
3404 tests/stub_store_digest.cc \
3416 StoreFileSystem.cc \
3418 tests/stub_StoreMeta.cc \
3419 StoreMetaUnpacker.cc \
3420 StoreSwapLogData.cc \
3425 tests/stub_SwapDir.cc \
3427 tests/stub_debug.cc \
3428 tests/stub_libauth_acls.cc \
3429 tests/stub_libauth.cc \
3430 tests/stub_libdiskio.cc \
3431 tests/stub_libmem.cc \
3432 tests/stub_libsecurity.cc \
3433 tests/stub_main_cc.cc \
3434 tests/stub_ipc_Forwarder.cc \
3435 tests/stub_store_stats.cc \
3438 tests/testUriScheme.cc \
3439 tests/testUriScheme.h \
3440 tests/stub_time.cc \
3441 tests/stub_EventLoop.cc \
3444 tests/stub_tunnel.cc \
3449 tests/stub_wccp2.cc \
3451 tests/stub_whois.cc \
3456 nodist_tests_testURL_SOURCES = \
3458 tests_testURL_LDADD = \
3460 clients/libclients.la \
3461 servers/libservers.la \
3462 helper/libhelper.la \
3465 parser/libparser.la \
3483 format/libformat.la \
3488 $(ADAPTATION_LIBS) \
3490 $(top_builddir)/lib/libmisccontainers.la \
3491 $(top_builddir)/lib/libmiscencoding.la \
3492 $(top_builddir)/lib/libmiscutil.la \
3495 $(SQUID_CPPUNIT_LIBS) \
3496 $(SQUID_CPPUNIT_LA) \
3501 tests_testURL_LDFLAGS = $(LIBADD_DL)
3503 tests_testSBuf_SOURCES= \
3506 tests/SBufFindTest.h \
3507 tests/SBufFindTest.cc \
3508 tests/stub_SBufDetailedStats.cc \
3509 tests/stub_time.cc \
3510 tests/stub_debug.cc \
3511 tests/stub_fatal.cc \
3512 tests/stub_libmem.cc
3513 nodist_tests_testSBuf_SOURCES=$(TESTSOURCES)
3514 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
3515 tests_testSBuf_LDADD= \
3518 $(SQUID_CPPUNIT_LIBS) \
3523 tests_testSBufList_SOURCES= \
3524 tests/testSBufList.h \
3525 tests/testSBufList.cc \
3526 tests/stub_SBufDetailedStats.cc \
3527 tests/stub_time.cc \
3528 tests/stub_debug.cc \
3529 tests/stub_fatal.cc \
3530 tests/stub_libmem.cc
3531 nodist_tests_testSBufList_SOURCES=$(TESTSOURCES)
3532 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
3533 tests_testSBufList_LDADD=\
3536 $(SQUID_CPPUNIT_LIBS) \
3541 tests_testConfigParser_SOURCES = \
3543 tests/stub_MemBuf.cc \
3544 tests/stub_time.cc \
3545 tests/stub_SBufDetailedStats.cc \
3549 tests/stub_fatal.cc \
3550 tests/testConfigParser.cc \
3551 tests/testConfigParser.h \
3553 tests/stub_cache_cf.cc \
3554 tests/stub_cbdata.cc \
3555 tests/stub_debug.cc \
3556 tests/stub_libmem.cc \
3557 tests/stub_HelperChildConfig.cc \
3559 tests/stub_tools.cc \
3562 nodist_tests_testConfigParser_SOURCES = \
3564 tests_testConfigParser_LDADD = \
3569 $(top_builddir)/lib/libmiscutil.la \
3571 $(SQUID_CPPUNIT_LIBS) \
3572 $(SQUID_CPPUNIT_LA) \
3576 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
3578 tests_testStatHist_SOURCES = \
3579 tests/stub_cbdata.cc \
3581 tests/stub_fatal.cc \
3582 tests/stub_MemBuf.cc \
3583 tests/stub_SBufDetailedStats.cc \
3587 tests/stub_cache_manager.cc \
3588 tests/stub_comm.cc \
3589 tests/stub_debug.cc \
3590 tests/stub_DelayId.cc \
3591 tests/stub_HelperChildConfig.cc \
3592 tests/stub_libmem.cc \
3593 tests/stub_MemObject.cc \
3595 tests/stub_mime.cc \
3596 tests/stub_pconn.cc \
3597 tests/stub_stmem.cc \
3599 tests/stub_store.cc \
3600 tests/stub_store_stats.cc \
3603 tests/stub_tools.cc \
3604 tests/testStatHist.cc \
3605 tests/testStatHist.h
3606 nodist_tests_testStatHist_SOURCES = \
3608 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
3609 tests_testStatHist_LDADD = \
3612 $(top_builddir)/lib/libmiscutil.la \
3613 $(top_builddir)/lib/libmisccontainers.la \
3614 $(SQUID_CPPUNIT_LIBS) \
3615 $(SQUID_CPPUNIT_LA) \
3618 tests_testLookupTable_SOURCES = \
3619 tests/testLookupTable.h \
3620 tests/testLookupTable.cc \
3621 tests/stub_debug.cc \
3622 tests/stub_libmem.cc \
3623 tests/stub_SBufDetailedStats.cc \
3625 nodist_tests_testLookupTable_SOURCES = $(TESTSOURCES)
3626 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
3627 tests_testLookupTable_LDADD = \
3630 $(SQUID_CPPUNIT_LIBS) \
3635 tests_testEnumIterator_SOURCES = \
3636 base/EnumIterator.h \
3637 tests/stub_debug.cc \
3638 tests/stub_libmem.cc \
3639 tests/testEnumIterator.h \
3640 tests/testEnumIterator.cc
3641 nodist_tests_testEnumIterator_SOURCES = \
3643 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
3644 tests_testEnumIterator_LDADD = \
3646 $(SQUID_CPPUNIT_LIBS) \
3648 $(SQUID_CPPUNIT_LA) \
3651 tests_testYesNoNone_SOURCES = \
3652 tests/testYesNoNone.cc \
3653 tests/testYesNoNone.h
3654 nodist_tests_testYesNoNone_SOURCES = \
3656 tests/stub_debug.cc \
3657 tests/stub_libmem.cc \
3659 tests_testYesNoNone_LDADD= \
3661 $(SQUID_CPPUNIT_LIBS) \
3664 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
3666 TESTS += testHeaders
3668 ## Special Universal .h dependency test script
3669 ## aborts if error encountered
3670 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
3671 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
3672 ## src/repl/ has no .h files and its own makefile.
3674 CLEANFILES += testHeaders