2 # Makefile for the Squid Object Cache server
4 # $Id: Makefile.am,v 1.144 2006/05/11 01:36:57 hno Exp $
6 # Uncomment and customize the following to suit your needs:
10 AUTOMAKE_OPTIONS = subdir-objects
15 DNSSOURCE = dns_internal.cc
23 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
28 TESTS=$(check_PROGRAMS)
31 SUBDIRS = fs repl auth
33 DELAY_POOL_ALL_SOURCE = \
58 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
95 ESI_SOURCE = $(ESI_ALL_SOURCE)
100 if ENABLE_XPROF_STATS
101 XPROF_STATS_SOURCE = ProfStats.cc
107 HTCPSOURCE = htcp.cc htcp.h
111 LEAKFINDERSOURCE = LeakFinder.cc
117 UNLINKDSOURCE = unlinkd.cc
131 ACLCertificateData.cc \
132 ACLCertificateData.h \
138 SSL_SOURCE = $(SSL_ALL_SOURCE)
143 WIN32_ALL_SOURCE = win32.cc
144 if ENABLE_WIN32SPECIFIC
145 WIN32_SOURCE = $(WIN32_ALL_SOURCE)
150 IDENT_ALL_SOURCE = ACLIdent.cc ACLIdent.h ident.cc
152 IDENT_SOURCE = $(IDENT_ALL_SOURCE)
157 ARP_ACL_ALL_SOURCE = ACLARP.cc ACLARP.h
159 ARP_ACL_SOURCE = $(ARP_ACL_ALL_SOURCE)
164 AM_CFLAGS = @SQUID_CFLAGS@
165 AM_CXXFLAGS = @SQUID_CXXFLAGS@
167 EXTRA_LIBRARIES = libAIO.a libBlocking.a libDiskDaemon.a libDiskThreads.a ICAP/libicap.a
168 noinst_LIBRARIES = @DISK_LIBS@ @ICAP_LIBS@
170 INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib/libTrie/include
171 INCLUDES += @SQUID_CPPUNIT_INC@
174 DiskIO/DiskDaemon/diskd \
183 ## cfgen is used when building squid
184 ## ufsdump is a debug utility, it is possibly useful for end users with cache
185 ## corruption, but at this point we do not install it.
202 cf_gen_SOURCES = cf_gen.cc defines.h debug.cc time.cc
203 nodist_cf_gen_SOURCES = globals.cc
204 nodist_cf_gen_HEADER = cf_gen_defines.h
205 cf_gen.$(OBJEXT): cf_gen_defines.h
208 fs/aufs/StoreFSaufs.cc \
209 fs/coss/StoreFScoss.cc \
210 fs/diskd/StoreFSdiskd.cc \
211 fs/null/StoreFSnull.cc \
214 all_DISKIOMODULES = \
215 DiskIO/AIO/AIODiskIOModule.cc \
216 DiskIO/Blocking/BlockingDiskIOModule.cc \
217 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.cc \
218 DiskIO/DiskThreads/DiskThreadsDiskIOModule.cc
221 DiskIO/DiskIOModule.cc \
222 DiskIO/ReadRequest.cc \
223 DiskIO/ReadRequest.h \
224 DiskIO/WriteRequest.cc \
225 DiskIO/WriteRequest.h \
227 DiskIO/DiskIOStrategy.h \
228 DiskIO/IORequestor.h \
229 DiskIO/DiskIOModule.h \
233 auth/basic/basicScheme.cc \
234 auth/basic/basicScheme.h \
235 auth/digest/digestScheme.cc \
236 auth/digest/digestScheme.h \
237 auth/ntlm/ntlmScheme.cc \
238 auth/ntlm/ntlmScheme.h \
239 auth/negotiate/negotiateScheme.cc \
240 auth/negotiate/negotiateScheme.h
242 EXTRA_squid_SOURCES = \
244 $(all_DISKIOMODULES) \
246 $(ARP_ACL_ALL_SOURCE) \
248 $(DELAY_POOL_ALL_SOURCE) \
254 $(IDENT_ALL_SOURCE) \
268 ACLDestinationASN.h \
273 ACLDestinationDomain.cc \
274 ACLDestinationDomain.h \
275 ACLDestinationIP.cc \
287 ACLMaxConnection.cc \
309 ACLReplyHeaderStrategy.h \
310 ACLReplyMIMEType.cc \
312 ACLRequestHeaderStrategy.h \
313 ACLRequestMIMEType.cc \
314 ACLRequestMIMEType.h \
345 $(squid_ACLSOURCES) \
363 client_side_reply.cc \
364 client_side_reply.h \
365 client_side_request.cc \
366 client_side_request.h \
369 ClientRequestContext.h \
387 $(DELAY_POOL_SOURCE) \
399 ExternalACLEntry.cc \
414 HierarchyLogEntry.h \
426 HttpHdrContRange.cc \
440 HttpRequestMethod.cc \
441 HttpRequestMethod.h \
454 $(LEAKFINDERSOURCE) \
473 $(XPROF_STATS_SOURCE) \
520 StoreMetaUnpacker.cc \
521 StoreMetaUnpacker.h \
527 StoreSwapLogData.cc \
551 noinst_HEADERS = ACLChecklist.cci \
555 client_side_request.cci \
563 nodist_squid_SOURCES = \
589 squid_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a @STORE_OBJS@ @STORE_LINKOBJS@ \
597 ICAP_libicap_a_SOURCES = \
598 ICAP/ChunkedCodingParser.cc \
599 ICAP/ChunkedCodingParser.h \
602 ICAP/ICAPClientReqmodPrecache.cc \
603 ICAP/ICAPClientReqmodPrecache.h \
604 ICAP/ICAPClientRespmodPrecache.cc \
605 ICAP/ICAPClientRespmodPrecache.h \
608 ICAP/ICAPElements.cc \
609 ICAP/ICAPElements.h \
610 ICAP/ICAPModXact.cc \
612 ICAP/ICAPOptions.cc \
614 ICAP/ICAPOptXact.cc \
616 ICAP/ICAPServiceRep.cc \
617 ICAP/ICAPServiceRep.h \
618 ICAP/ICAPXaction.cc \
625 ICAP/MsgPipeSource.h \
626 ICAP/TextException.cc \
630 unlinkd_SOURCES = unlinkd.cc SquidNew.cc
631 unlinkd_CXXFLAGS = -DUNLINK_DAEMON
639 dnsserver_SOURCES = dnsserver.cc SquidNew.cc
640 recv_announce_SOURCES = recv-announce.cc SquidNew.cc
642 ## What requires what..
643 ## many things want ACLChecklist.cc
644 ## ACLChecklist.cc wants AuthUserRequest.cc
645 ## ACLChecklist.cc wants AuthScheme.cc
646 ## ACLChecklist.cc wants ACLProxyAuth.cc directly
647 ## ACLProxyAuth.cc wants ACLUserData
648 ## ACLProxyAuth.cc wants ACLRegexData
649 ## cache_cf.cc wants AuthConfig
650 ## cache_cf.cc wants Swapdir
651 ## client_side wants client_db
652 ## client_db wants SNMP_SOURCE
653 ## snmp_core wants ACLStringData
654 ## SwapDir wants ConfigOption
663 StoreMetaUnpacker.cc \
674 StoreSwapLogData.cc \
696 client_side_reply.cc \
697 client_side_request.cc \
698 client_side_request.h \
710 $(DELAY_POOL_SOURCE) \
719 ExternalACLEntry.cc \
737 HttpHdrContRange.cc \
744 HttpRequestMethod.cc \
754 $(LEAKFINDERSOURCE) \
769 $(XPROF_STATS_SOURCE) \
828 ufsdump_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a
829 nodist_ufsdump_SOURCES = \
835 nodist_pinger_SOURCES = \
852 LDADD = -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@
859 mk-string-arrays.pl \
860 mk-string-arrays.awk \
866 DiskIO/AIO/async_io.h \
867 DiskIO/AIO/AIODiskFile.cc \
868 DiskIO/AIO/AIODiskFile.h \
869 DiskIO/AIO/AIODiskIOStrategy.cc \
870 DiskIO/AIO/AIODiskIOStrategy.h \
871 DiskIO/AIO/AIODiskIOModule.h
873 libBlocking_a_SOURCES = \
874 DiskIO/Blocking/BlockingFile.cc \
875 DiskIO/Blocking/BlockingFile.h \
876 DiskIO/Blocking/BlockingIOStrategy.cc \
877 DiskIO/Blocking/BlockingIOStrategy.h \
878 DiskIO/Blocking/BlockingDiskIOModule.h
880 libDiskDaemon_a_SOURCES = \
881 DiskIO/DiskDaemon/DiskdFile.cc \
882 DiskIO/DiskDaemon/DiskdFile.h \
883 DiskIO/DiskDaemon/DiskdIOStrategy.cc \
884 DiskIO/DiskDaemon/DiskdIOStrategy.h \
885 DiskIO/DiskDaemon/diomsg.h \
886 DiskIO/DiskDaemon/DiskDaemonDiskIOModule.h
888 libDiskThreads_a_SOURCES = \
889 DiskIO/DiskThreads/aiops.cc \
890 DiskIO/DiskThreads/async_io.cc \
891 DiskIO/DiskThreads/DiskThreads.h \
892 DiskIO/DiskThreads/DiskThreadsDiskFile.cc \
893 DiskIO/DiskThreads/DiskThreadsDiskFile.h \
894 DiskIO/DiskThreads/DiskThreadsDiskIOModule.h \
895 DiskIO/DiskThreads/DiskThreadsIOStrategy.cc \
896 DiskIO/DiskThreads/DiskThreadsIOStrategy.h
898 DiskIO_DiskDaemon_diskd_SOURCES = DiskIO/DiskDaemon/diskd.cc
899 DiskIO_DiskDaemon_diskd_LDADD = $(top_builddir)/lib/libmiscutil.a @XTRA_LIBS@
902 DEFAULT_HTTP_PORT = @CACHE_HTTP_PORT@
903 DEFAULT_ICP_PORT = @CACHE_ICP_PORT@
904 DEFAULT_PREFIX = $(prefix)
905 DEFAULT_CONFIG_FILE = $(sysconfdir)/squid.conf
906 DEFAULT_MIME_TABLE = $(sysconfdir)/mime.conf
907 DEFAULT_DNSSERVER = $(libexecdir)/`echo dnsserver | sed '$(transform);s/$$/$(EXEEXT)/'`
908 DEFAULT_LOG_PREFIX = $(localstatedir)/logs
909 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
910 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
911 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
912 DEFAULT_PID_FILE = $(DEFAULT_LOG_PREFIX)/squid.pid
913 DEFAULT_SWAP_DIR = $(localstatedir)/cache
914 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
915 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
916 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
917 DEFAULT_ICON_DIR = $(datadir)/icons
918 DEFAULT_ERROR_DIR = $(datadir)/errors/@ERR_DEFAULT_LANGUAGE@
919 DEFAULT_MIB_PATH = $(datadir)/mib.txt
920 DEFAULT_HOSTS = @OPT_DEFAULT_HOSTS@
922 DEFS = @DEFS@ -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\"
924 $(OBJS): $(top_srcdir)/include/version.h ../include/autoconf.h
926 snmp_core.o snmp_agent.o: ../snmplib/libsnmp.a $(top_srcdir)/include/cache_snmp.h
928 globals.cc: globals.h mk-globals-c.pl
929 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@
931 string_arrays.c: enums.h mk-string-arrays.pl
932 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/enums.h > $@
934 cache_diff: cache_diff.o debug.o globals.o store_key_md5.o
935 $(CC) -o $@ $(LDFLAGS) $@.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
937 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
938 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
940 ## If autodependency works well this is not needed anymore
941 cache_cf.o: cf_parser.h
943 squid.conf.default: cf_parser.h
944 $(SHELL) -c "test -f squid.conf.default || ./cf_gen cf.data"
946 cf_parser.h: cf.data cf_gen$(EXEEXT)
949 cf_gen_defines.h: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
950 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >cf_gen_defines.h
953 ## FIXME: generate a sed command file from configure. Then this doesn't
954 ## depend on the Makefile.
955 cf.data: cf.data.pre Makefile
957 s%@DEFAULT_HTTP_PORT@%$(DEFAULT_HTTP_PORT)%g;\
958 s%@DEFAULT_ICP_PORT@%$(DEFAULT_ICP_PORT)%g;\
959 s%@DEFAULT_MIME_TABLE@%$(DEFAULT_MIME_TABLE)%g;\
960 s%@DEFAULT_DNSSERVER@%$(DEFAULT_DNSSERVER)%g;\
961 s%@DEFAULT_UNLINKD@%$(DEFAULT_UNLINKD)%g;\
962 s%@DEFAULT_PINGER@%$(DEFAULT_PINGER)%g;\
963 s%@DEFAULT_DISKD@%$(DEFAULT_DISKD)%g;\
964 s%@DEFAULT_CACHE_LOG@%$(DEFAULT_CACHE_LOG)%g;\
965 s%@DEFAULT_ACCESS_LOG@%$(DEFAULT_ACCESS_LOG)%g;\
966 s%@DEFAULT_STORE_LOG@%$(DEFAULT_STORE_LOG)%g;\
967 s%@DEFAULT_PID_FILE@%$(DEFAULT_PID_FILE)%g;\
968 s%@DEFAULT_SWAP_DIR@%$(DEFAULT_SWAP_DIR)%g;\
969 s%@DEFAULT_ICON_DIR@%$(DEFAULT_ICON_DIR)%g;\
970 s%@DEFAULT_MIB_PATH@%$(DEFAULT_MIB_PATH)%g;\
971 s%@DEFAULT_ERROR_DIR@%$(DEFAULT_ERROR_DIR)%g;\
972 s%@DEFAULT_PREFIX@%$(DEFAULT_PREFIX)%g;\
973 s%@DEFAULT_HOSTS@%$(DEFAULT_HOSTS)%g;\
974 s%@[V]ERSION@%$(VERSION)%g;"\
975 < $(srcdir)/cf.data.pre >$@
977 repl_modules.cc: repl_modules.sh Makefile
978 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
980 install-data-local: install-sysconfDATA install-dataDATA
981 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
982 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
984 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
985 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
987 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
988 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
990 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
991 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
993 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX)
996 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
997 echo "rm -f $(DESTDIR)$(DEFAULT_MIME_TABLE)"; \
998 $(RM) -f $(DESTDIR)$(DEFAULT_MIME_TABLE); \
1001 # Don't automatically uninstall config files
1002 # @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
1003 # echo "rm -f $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
1004 # $(RM) -f $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
1007 DISTCLEANFILES = cf_gen_defines.h cf.data cf_parser.h squid.conf.default \
1008 globals.cc string_arrays.c repl_modules.cc
1011 ## @f=$(PINGER_EXE); \
1012 ## if test -f $(libexecdir)/$$f; then \
1013 ## echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
1014 ## $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
1016 ## echo $(INSTALL_SUID) $$f $(libexecdir); \
1017 ## $(INSTALL_SUID) $$f $(libexecdir) || exit 1; \
1018 ## if test -f $(libexecdir)/-$$f; then \
1019 ## echo $(RM) -f $(libexecdir)/-$$f; \
1020 ## $(RM) -f $(libexecdir)/-$$f; \
1023 # stock tools for unit tests - library independent versions of dlink_list
1025 # globals.cc is needed by test_tools.cc
1027 ../test-suite/test_tools.cc \
1032 tests/testACLMaxUserIP \
1033 tests/testBoilerplate \
1035 tests/testHttpRequest \
1041 tests_testAuth_SOURCES= tests/testAuth.cc tests/testMain.cc tests/testAuth.h $(TESTSOURCES) \
1042 AuthScheme.cc authenticate.cc AuthUser.cc AuthUserRequest.cc AuthConfig.cc \
1044 tests/stub_acl.cc tests/stub_cache_cf.cc \
1045 tests/stub_helper.cc cbdata.cc String.cc tests/stub_cache_manager.cc \
1046 tests/stub_store.cc HttpHeaderTools.cc HttpHeader.cc acl.cc event.cc mem.cc \
1047 MemBuf.cc HttpHdrContRange.cc Packer.cc ACLChecklist.cc HttpHdrCc.cc HttpHdrSc.cc \
1048 HttpHdrScTarget.cc url.cc ACLProxyAuth.cc ACLRegexData.cc ACLUserData.cc \
1049 StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
1050 tests/stub_HttpRequest.cc tests/stub_DelayId.cc \
1051 tests/stub_MemObject.cc mem_node.cc \
1053 tests/stub_comm.cc \
1054 tests/stub_http.cc \
1056 HttpRequestMethod.cc \
1057 tests/stub_mime.cc \
1058 tests/stub_access_log.cc \
1062 ## acl.cc cache_cf.cc tools.cc \
1063 ## helper.cc String.cc cbdata.cc HttpHeaderTools.cc store.cc cache_manager.cc \
1064 ## HttpHeader.cc url.cc mem.cc HttpRequest.cc Packer.cc access_log.cc \
1065 ## MemBuf.cc StatHist.cc logfile.cc
1067 tests_testAuth_LDADD= \
1068 @AUTH_LINKOBJS@ @AUTH_OBJS@ \
1069 -L../lib -lmiscutil \
1071 @SQUID_CPPUNIT_LA@ \
1073 tests_testAuth_LDFLAGS = $(LIBADD_DL)
1074 tests_testAuth_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
1079 ## Tests for the ACLMaxUserIP class
1080 ## acl needs wordlist. wordlist needs MemBug
1081 ## MemBuf needs mem, MemBuf needs event,
1082 ## event needs cbdata.
1083 ## ACLMaxUserUP needs authenticate.cc
1084 ## authenticate.cc needs AuthUser, AuthScheme, AuthUserRequest, AuthConfig
1085 ## ACLMaxUserIP needs ACLChecklist
1086 ## AuthUser request needs HttpHeader, which brings in
1089 ## HttpHeaderTools.cc \
1090 ## HttpHdrContRange.cc \
1092 ## HttpHdrRange.cc \
1094 ## HttpHdrScTarget.cc \
1098 tests_testACLMaxUserIP_SOURCES= \
1108 AuthUserRequest.cc \
1115 HttpHeaderTools.cc \
1116 HttpHdrContRange.cc \
1120 HttpHdrScTarget.cc \
1126 tests/stub_cache_manager.cc \
1127 tests/stub_comm.cc \
1128 tests/stub_DelayId.cc \
1129 tests/stub_MemObject.cc \
1130 tests/stub_store.cc \
1131 tests/testACLMaxUserIP.cc \
1132 tests/testACLMaxUserIP.h \
1139 tests_testACLMaxUserIP_LDADD= \
1140 -L../lib -lmiscutil \
1142 @SQUID_CPPUNIT_LA@ \
1144 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1145 tests_testACLMaxUserIP_DEPENDENCIES = \
1148 ## a demonstration test that does nothing but shows the salient points
1149 ## involved in writing tests.
1150 tests_testBoilerplate_SOURCES = \
1151 tests/testBoilerplate.cc \
1153 tests/testBoilerplate.h \
1156 tests_testBoilerplate_LDADD= \
1157 -L../lib -lmiscutil \
1158 @SQUID_CPPUNIT_LA@ \
1160 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
1161 tests_testBoilerplate_DEPENDENCIES = \
1164 ## test headers checks that individual headers can be parsed with no dependencies.
1165 ## as such, it needs a new .cc file for each header it parses, so that they
1166 ## can be #included with no baggage. If the binary links, the test passed.
1167 ## We could write a script to pull out the compiler configuration from autoconf,
1168 ## but this is easier to understand and more robust against changes in autoconf.
1171 tests/testHeader_ACL.cc \
1172 tests/testHeader_ConfigParser.cc \
1173 tests/testHeader_client_side_request.cc \
1174 tests/testHeader_dlink.cc \
1175 tests/testHeader_HttpHeader.cc \
1176 tests/testHeader_HttpHeaderRange.cc \
1177 tests/testHeader_HttpReply.cc \
1178 tests/testHeader_HttpRequestMethod.cc \
1179 tests/testHeader_StoreEntryStream.cc \
1180 tests/testHeader_URL.cc \
1181 tests/testHeader_URLScheme.cc \
1182 tests/testHeader_wordlist.cc
1183 tests_testHeaders_SOURCES= tests/testMain.cc $(HEADERS_TO_TEST)
1184 tests_testHeaders_LDADD= \
1185 @SQUID_CPPUNIT_LA@ \
1187 tests_testHeaders_LDFLAGS = $(LIBADD_DL)
1188 tests_testHeaders_DEPENDENCIES = \
1192 ## Tests of the HttpRequest module.
1193 tests_testHttpRequest_SOURCES = \
1197 HttpRequestMethod.cc \
1200 tests/testHttpRequest.cc \
1201 tests/testHttpRequestMethod.cc \
1215 AuthUserRequest.cc \
1225 client_side_reply.cc \
1226 client_side_request.cc \
1235 $(DELAY_POOL_SOURCE) \
1243 ExternalACLEntry.cc \
1255 HttpHeaderTools.cc \
1257 HttpHdrContRange.cc \
1260 HttpHdrScTarget.cc \
1307 StoreFileSystem.cc \
1312 StoreMetaUnpacker.cc \
1315 StoreSwapLogData.cc \
1326 nodist_tests_testHttpRequest_SOURCES = \
1329 tests_testHttpRequest_LDADD = \
1334 -L../lib -lmiscutil \
1336 @SQUID_CPPUNIT_LA@ \
1338 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
1339 tests_testHttpRequest_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
1341 @SQUID_CPPUNIT_LA@ \
1345 # TODO:mime.cc drags in HttpReply.cc
1346 # delay pools need client_side_request.cc
1347 # store_key_md5 wants the method.
1348 STORE_TEST_SOURCES=\
1350 $(DELAY_POOL_SOURCE) \
1356 HttpRequestMethod.cc \
1362 AuthScheme.cc authenticate.cc AuthUser.cc AuthUserRequest.cc AuthConfig.cc \
1363 tests/stub_acl.cc tests/stub_cache_cf.cc \
1364 tests/stub_helper.cc cbdata.cc String.cc tests/stub_cache_manager.cc \
1365 tests/stub_comm.cc \
1366 tests/stub_client_side_request.cc \
1367 tests/stub_http.cc \
1370 tests/stub_mime.cc \
1371 HttpHeaderTools.cc HttpHeader.cc acl.cc event.cc mem.cc \
1373 MemBuf.cc HttpHdrContRange.cc Packer.cc ACLChecklist.cc HttpHdrCc.cc HttpHdrSc.cc \
1374 HttpHdrScTarget.cc url.cc ACLProxyAuth.cc ACLRegexData.cc ACLUserData.cc \
1375 StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
1376 tests/stub_HttpRequest.cc tests/stub_access_log.cc \
1378 tests/stub_store_client.cc \
1379 tests/stub_tools.cc \
1384 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
1385 ## first line - what we are testing.
1386 tests_testStore_SOURCES= \
1387 tests/stub_store_swapout.cc \
1389 tests/stub_MemObject.cc \
1390 tests/testStore.cc \
1392 tests/testStoreEntryStream.cc \
1393 tests/testStoreEntryStream.h \
1394 tests/testStoreController.cc \
1395 tests/testStoreController.h \
1396 tests/testStoreHashIndex.cc \
1397 tests/testStoreHashIndex.h \
1398 tests/TestSwapDir.cc \
1399 tests/TestSwapDir.h \
1401 tests/stub_HttpReply.cc \
1402 $(STORE_TEST_SOURCES)
1404 tests_testStore_LDADD= \
1405 -L../lib -lmiscutil \
1407 @SQUID_CPPUNIT_LA@ \
1409 tests_testStore_LDFLAGS = $(LIBADD_DL)
1410 tests_testStore_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
1413 # string needs mem.cc. mem.cc wants cache_manage
1414 tests_testString_SOURCES= \
1417 tests/stub_cache_manager.cc \
1419 tests/testString.cc \
1420 tests/testString.h \
1424 tests_testString_LDADD= \
1425 -L../lib -lmiscutil \
1427 @SQUID_CPPUNIT_LA@ \
1429 tests_testString_LDFLAGS = $(LIBADD_DL)
1430 tests_testString_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
1433 SWAP_TEST_SOURCES = \
1434 tests/stub_store_rebuild.cc \
1435 tests/stub_internal.cc \
1445 StoreSwapLogData.cc \
1450 StoreMetaUnpacker.cc \
1453 StoreFileSystem.cc \
1458 $(STORE_TEST_SOURCES) \
1462 DiskIO/Blocking/BlockingDiskIOModule.o \
1463 repl/lru/store_repl_lru.o \
1469 -L../lib -lmiscutil \
1472 $(top_builddir)/lib/libmiscutil.a \
1473 DiskIO/Blocking/BlockingDiskIOModule.o \
1474 repl/lru/store_repl_lru.o \
1482 tests_testUfs_SOURCES= tests/testUfs.cc \
1485 $(SWAP_TEST_SOURCES)
1486 tests_testUfs_LDADD= \
1487 $(SWAP_TEST_LDADD) \
1489 tests_testUfs_LDFLAGS = $(LIBADD_DL)
1490 tests_testUfs_DEPENDENCIES = \
1493 tests_testCoss_SOURCES= tests/testCoss.cc \
1496 $(SWAP_TEST_SOURCES)
1497 tests_testCoss_LDADD= \
1498 $(SWAP_TEST_LDADD) \
1500 tests_testCoss_LDFLAGS = $(LIBADD_DL)
1501 tests_testCoss_DEPENDENCIES = \
1504 tests_testNull_SOURCES= tests/testNull.cc \
1507 $(SWAP_TEST_SOURCES)
1508 tests_testNull_LDADD= \
1509 $(SWAP_TEST_LDADD) \
1511 tests_testNull_LDFLAGS = $(LIBADD_DL)
1512 tests_testNull_DEPENDENCIES = \
1515 ## Tests of the URL module.
1516 ## TODO: Trim this down once the insanity is over.
1517 tests_testURL_SOURCES = \
1523 HttpRequestMethod.cc \
1528 tests/testURLScheme.cc \
1529 tests/testURLScheme.h \
1543 AuthUserRequest.cc \
1553 client_side_reply.cc \
1554 client_side_request.cc \
1563 $(DELAY_POOL_SOURCE) \
1571 ExternalACLEntry.cc \
1583 HttpHeaderTools.cc \
1585 HttpHdrContRange.cc \
1588 HttpHdrScTarget.cc \
1634 StoreFileSystem.cc \
1639 StoreMetaUnpacker.cc \
1642 StoreSwapLogData.cc \
1650 nodist_tests_testURL_SOURCES = \
1653 tests_testURL_LDADD = \
1657 -L../lib -lmiscutil \
1659 @SQUID_CPPUNIT_LA@ \
1661 tests_testURL_LDFLAGS = $(LIBADD_DL)
1662 tests_testURL_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
1664 @SQUID_CPPUNIT_LA@ \