1 ## Copyright (C) 1996-2023 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
13 LOADABLE_MODULES_SOURCES = \
19 SUBDIRS = mem time debug base anyp helper dns ftp parser comm error eui acl format clients sbuf servers fs repl store DiskIO proxyp
23 AUTH_LIBS= auth/libauth.la
24 AUTH_ACL_LIBS= auth/libacls.la
27 SUBDIRS += http ip icmp ident log ipc mgr
45 SNMP_SOURCE = $(SNMP_ALL_SOURCE)
47 SNMP_LIBS = snmp/libsnmp.la $(SNMPLIB)
60 $(top_builddir)/lib/libTrie/libTrie.a \
67 DELAY_POOL_ALL_SOURCE = \
94 MessageDelayPools.cc \
96 ClientDelayConfig.cc \
100 DELAY_POOL_SOURCE = $(DELAY_POOL_ALL_SOURCE)
106 HTCPSOURCE = htcp.cc htcp.h
110 UNLINKDSOURCE = unlinkd.h unlinkd.cc
113 UNLINKDSOURCE = unlinkd.h
122 if ENABLE_WIN32SPECIFIC
123 WIN32_SOURCE = win32.cc
124 WINSVC_SOURCE = WinSvc.cc
131 IPC_SOURCE = SquidIpc.h ipc_win32.cc
133 IPC_SOURCE = SquidIpc.h ipc.cc
136 noinst_LTLIBRARIES = libsquid.la
141 ## cfgen is used when building squid
153 cf_gen_SOURCES = cf_gen.cc
154 nodist_cf_gen_HEADER = cf_gen_defines.cci
155 ## cf_gen must be stand-alone executable. It is a purely build-time executable.
157 cf_gen.$(OBJEXT): cf_gen_defines.cci
159 ## cf_gen.cc needs src/cf_gen_defines.cci
160 AM_CPPFLAGS += -I$(top_builddir)/src
163 ACL_REGISTRATION_SOURCES = \
167 # common library for all the binaries and tests. This is kindof a catch all
168 # and smaller libraries split from this are encouraged. Using lt convenience
169 # libraries, dependencies should not be a problem either.
170 libsquid_la_SOURCES = \
181 $(ACL_REGISTRATION_SOURCES) \
182 $(DELAY_POOL_SOURCE) \
203 ClientRequestContext.h \
204 CollapsedForwarding.cc \
205 CollapsedForwarding.h \
206 CollapsingHistory.h \
225 ExternalACLEntry.cc \
235 HierarchyLogEntry.h \
242 HttpHdrContRange.cc \
251 HttpHeaderFieldInfo.h \
252 HttpHeaderFieldStat.h \
262 HttpUpgradeProtocolAccess.cc \
263 HttpUpgradeProtocolAccess.h \
278 NeighborTypeDomainList.h \
315 StoreSwapLogData.cc \
323 XactionInitiator.cc \
335 clientStreamForward.h \
340 client_side_reply.cc \
341 client_side_reply.h \
342 client_side_request.cc \
343 client_side_request.h \
394 peer_proxy_negotiate_auth.cc \
395 peer_proxy_negotiate_auth.h \
407 sbuf/StringConvert.h \
443 EXTRA_squid_SOURCES = \
444 $(DELAY_POOL_ALL_SOURCE) \
445 $(LOADABLE_MODULES_SOURCES) \
448 $(WIN32_ALL_SOURCE) \
470 CLEANFILES += $(BUILT_SOURCES)
472 nodist_squid_SOURCES = \
482 clients/libclients.la \
483 servers/libservers.la \
485 helper/libhelper.la \
492 DiskIO/libdiskio.la \
495 security/libsecurity.la \
500 proxyp/libproxyp.la \
501 parser/libparser.la \
505 format/libformat.la \
518 $(top_builddir)/lib/libmisccontainers.la \
519 $(top_builddir)/lib/libmiscencoding.la \
520 $(top_builddir)/lib/libmiscutil.la \
531 if ENABLE_LOADABLE_MODULES
532 squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
533 squid_LDADD += -L$(top_builddir) $(LIBLTDL)
534 squid_LDFLAGS = -export-dynamic -dlopen force
535 ## when static module linking is supported and enabled:
536 ## squid_LDFLAGS = -all-static -dlopen self
538 ## LTDL headers require their local include path...
539 AM_CPPFLAGS += $(INCLTDL)
542 ## Kerberos libraries require their include path...
543 AM_CPPFLAGS += $(KRB5INCS)
546 unlinkd_SOURCES = unlinkd_daemon.cc
553 squid.conf.documented \
578 include $(srcdir)/tests/Stub.am
586 mk-string-arrays.awk \
593 snmp_core.o snmp_agent.o: ../lib/snmplib/libsnmplib.la $(top_srcdir)/include/cache_snmp.h
595 globals.cc: globals.h mk-globals-c.awk
596 $(AWK) -f $(srcdir)/mk-globals-c.awk < $(srcdir)/globals.h > $@ || ($(RM) -f $@ && exit 1)
598 ## Generate files containing string arrays for various enums....
599 hier_code.cc: hier_code.h mk-string-arrays.awk
600 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/hier_code.h > $@ || ($(RM) -f $@ && exit 1)
602 lookup_t.cc: lookup_t.h mk-string-arrays.awk
603 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/lookup_t.h > $@ || ($(RM) -f $@ && exit 1)
605 icp_opcode.cc: icp_opcode.h mk-string-arrays.awk
606 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/icp_opcode.h > $@ || ($(RM) -f $@ && exit 1)
608 swap_log_op.cc: swap_log_op.h mk-string-arrays.awk
609 $(AWK) -f $(srcdir)/mk-string-arrays.awk < $(srcdir)/swap_log_op.h > $@ || ($(RM) -f $@ && exit 1)
612 ## other generated files...
614 test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key_md5.o
615 $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
617 ## If autodependency works well this is not needed anymore
618 cache_cf.o: cf_parser.cci
620 # cf_gen builds the configuration files.
621 cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
622 $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
624 # squid.conf.default is built by cf_gen when making cf_parser.cci
625 squid.conf.default squid.conf.documented: cf_parser.cci
628 cf_parser.cci: cf.data cf_gen$(EXEEXT)
629 ./cf_gen$(EXEEXT) cf.data $(srcdir)/cf.data.depend
631 # The cf_gen_defines.cci is auto-generated and does not exist when the
632 # dependencies computed. We need to add its include files (autoconf.h) here
633 cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre $(top_builddir)/include/autoconf.h
634 $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
637 ## TODO: generate a sed command file from configure. Then this doesn't
638 ## depend on the Makefile.
639 cf.data: cf.data.pre Makefile
641 -e "s%[@]DEFAULT_HTTP_PORT[@]%$(DEFAULT_HTTP_PORT)%g" \
642 -e "s%[@]DEFAULT_ICP_PORT[@]%$(DEFAULT_ICP_PORT)%g" \
643 -e "s%[@]DEFAULT_CACHE_EFFECTIVE_USER[@]%$(CACHE_EFFECTIVE_USER)%g" \
644 -e "s%[@]DEFAULT_MIME_TABLE[@]%$(DEFAULT_MIME_TABLE)%g" \
645 -e "s%[@]DEFAULT_SSL_CRTD[@]%$(DEFAULT_SSL_CRTD)%g" \
646 -e "s%[@]DEFAULT_UNLINKD[@]%$(DEFAULT_UNLINKD)%g" \
647 -e "s%[@]DEFAULT_PINGER[@]%$(DEFAULT_PINGER)%g" \
648 -e "s%[@]DEFAULT_DISKD[@]%$(DEFAULT_DISKD)%g" \
649 -e "s%[@]DEFAULT_LOGFILED[@]%$(DEFAULT_LOGFILED)%g;" \
650 -e "s%[@]DEFAULT_CACHE_LOG[@]%$(DEFAULT_CACHE_LOG)%g" \
651 -e "s%[@]DEFAULT_ACCESS_LOG[@]%$(DEFAULT_ACCESS_LOG)%g" \
652 -e "s%[@]DEFAULT_STORE_LOG[@]%$(DEFAULT_STORE_LOG)%g" \
653 -e "s%[@]DEFAULT_PID_FILE[@]%$(DEFAULT_PID_FILE)%g" \
654 -e "s%[@]DEFAULT_NETDB_FILE[@]%$(DEFAULT_NETDB_FILE)%g" \
655 -e "s%[@]DEFAULT_SWAP_DIR[@]%$(DEFAULT_SWAP_DIR)%g" \
656 -e "s%[@]DEFAULT_SSL_DB_DIR[@]%$(DEFAULT_SSL_DB_DIR)%g" \
657 -e "s%[@]DEFAULT_ICON_DIR[@]%$(DEFAULT_ICON_DIR)%g" \
658 -e "s%[@]DEFAULT_CONFIG_DIR[@]%$(DEFAULT_CONFIG_DIR)%g" \
659 -e "s%[@]DEFAULT_ERROR_DIR[@]%$(DEFAULT_ERROR_DIR)%g" \
660 -e "s%[@]DEFAULT_PREFIX[@]%$(DEFAULT_PREFIX)%g" \
661 -e "s%[@]DEFAULT_HOSTS[@]%$(DEFAULT_HOSTS)%g" \
662 -e "s%[@]SQUID[@]%SQUID\ $(VERSION)%g" \
663 -f $(srcdir)/cf.data.sed \
664 < $(srcdir)/cf.data.pre >$@
666 repl_modules.cc: repl_modules.sh Makefile
667 $(SHELL) $(srcdir)/repl_modules.sh $(REPL_POLICIES) > repl_modules.cc
669 include $(top_srcdir)/doc/manuals/Substitute.am
671 squid.8: $(srcdir)/squid.8.in Makefile
672 $(SUBSTITUTE) < $(srcdir)/squid.8.in > $@
675 EXTRA_DIST += squid.8.in
676 CLEANFILES += squid.8
678 install-data-local: install-sysconfDATA install-dataDATA
679 @if test -f $(DESTDIR)$(DEFAULT_MIME_TABLE) ; then \
680 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_MIME_TABLE)" ; \
682 echo "$(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE)" ;\
683 $(INSTALL_DATA) $(srcdir)/mime.conf.default $(DESTDIR)$(DEFAULT_MIME_TABLE); \
685 @if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \
686 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \
688 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE)"; \
689 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
691 echo "$(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default"; \
692 $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \
693 echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \
694 $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \
695 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \
696 $(mkinstalldirs) $(DESTDIR)$(DEFAULT_SWAP_DIR); \
697 $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PID_FILE)`
699 uninstall-local: squid.conf.default
700 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
701 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
703 CLEANFILES += cf.data squid.conf.default squid.conf.documented \
706 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
707 cp $(top_srcdir)/test-suite/test_tools.cc .
709 # stock tools for unit tests - library independent versions of dlink_list
711 # globals.cc is needed by test_tools.cc.
712 # Neither of these should be disted from here.
718 ### Template for new Unit Test Program
719 ## - copy template below and substitute X for class name
720 ## - place code being tested in _SOURCES
721 ## - place stubs etc. requiredd to link in nodist_*_SOURCES
722 ## - add other component .(h|cc) files needed to link and run tests
724 #check_PROGRAMS += tests/testX
725 #tests_testX_SOURCES= \
728 #nodist_tests_testX_SOURCES= \
730 # tests/stubs_as_needed.cc
732 # $(LIBCPPUNIT_LIBS) \
735 #tests_testX_LDFLAGS = $(LIBADD_DL)
737 ## A demonstration test that does nothing but shows the salient points
738 ## involved in writing tests.
739 check_PROGRAMS += tests/testBoilerplate
740 tests_testBoilerplate_SOURCES = \
741 tests/testBoilerplate.cc \
742 tests/testBoilerplate.h
743 nodist_tests_testBoilerplate_SOURCES = \
745 tests_testBoilerplate_LDADD= \
749 tests_testBoilerplate_LDFLAGS = $(LIBADD_DL)
751 # Unit Tests are listed below by sub-directory with order matching the SUBDIRS
752 # dependency-based list so that simpler code is tested before more complex code
755 ## Tests of SquidMath.h
756 check_PROGRAMS += tests/testMath
757 tests_testMath_SOURCES = \
759 nodist_tests_testMath_SOURCES = \
761 tests_testMath_LDADD = \
765 tests_testMath_LDFLAGS = $(LIBADD_DL)
767 ## Tests of RandomUuid.h
768 check_PROGRAMS += tests/testRandomUuid
769 tests_testRandomUuid_SOURCES = \
770 tests/testRandomUuid.cc
771 nodist_tests_testRandomUuid_SOURCES = \
773 tests/stub_debug.cc \
775 tests_testRandomUuid_LDADD = \
782 tests_testRandomUuid_LDFLAGS = $(LIBADD_DL)
786 check_PROGRAMS += tests/testMem
787 tests_testMem_SOURCES = \
789 nodist_tests_testMem_SOURCES = \
790 tests/stub_libtime.cc
791 tests_testMem_LDADD = \
793 $(top_builddir)/lib/libmiscutil.la \
797 tests_testMem_LDFLAGS = $(LIBADD_DL)
801 check_PROGRAMS += tests/testCharacterSet
802 tests_testCharacterSet_SOURCES = \
803 tests/testCharacterSet.cc
804 nodist_tests_testCharacterSet_SOURCES = \
806 tests_testCharacterSet_LDADD = \
811 tests_testCharacterSet_LDFLAGS = $(LIBADD_DL)
813 check_PROGRAMS += tests/testClpMap
814 tests_testClpMap_SOURCES = \
816 nodist_tests_testClpMap_SOURCES = \
817 tests/stub_HelperChildConfig.cc \
819 tests/stub_libip.cc \
820 tests/stub_libtime.cc
821 tests_testClpMap_LDADD = \
827 check_PROGRAMS += tests/testEnumIterator
828 tests_testEnumIterator_SOURCES = \
829 tests/testEnumIterator.cc
830 nodist_tests_testEnumIterator_SOURCES = \
832 tests_testEnumIterator_LDADD = \
836 tests_testEnumIterator_LDFLAGS = $(LIBADD_DL)
838 check_PROGRAMS += tests/testLookupTable
839 tests_testLookupTable_SOURCES = \
840 tests/testLookupTable.cc
841 nodist_tests_testLookupTable_SOURCES = \
843 tests/stub_debug.cc \
845 tests_testLookupTable_LDADD = \
851 tests_testLookupTable_LDFLAGS = $(LIBADD_DL)
853 check_PROGRAMS += tests/testRefCount
854 tests_testRefCount_SOURCES = \
855 tests/testRefCount.cc
856 nodist_tests_testRefCount_SOURCES = \
858 tests_testRefCount_LDADD = \
862 tests_testRefCount_LDFLAGS = $(LIBADD_DL)
864 check_PROGRAMS += tests/testYesNoNone
865 tests_testYesNoNone_SOURCES = \
866 tests/testYesNoNone.cc
867 nodist_tests_testYesNoNone_SOURCES = \
871 tests_testYesNoNone_LDADD = \
876 tests_testYesNoNone_LDFLAGS = $(LIBADD_DL)
880 check_PROGRAMS += tests/testURL
881 tests_testURL_SOURCES = \
883 tests/testUriScheme.cc
884 nodist_tests_testURL_SOURCES = \
885 tests/stub_HelperChildConfig.cc \
886 tests/stub_HttpHeader.cc \
887 tests/stub_HttpRequest.cc \
888 tests/stub_StatHist.cc \
890 tests/stub_access_log.cc \
893 tests/stub_cbdata.cc \
894 tests/stub_debug.cc \
895 tests/stub_libhttp.cc \
897 tests_testURL_LDADD = \
900 parser/libparser.la \
904 $(top_builddir)/lib/libmiscencoding.la \
908 tests_testURL_LDFLAGS = $(LIBADD_DL)
912 check_PROGRAMS += tests/testDns
913 tests_testDns_SOURCES = \
915 nodist_tests_testDns_SOURCES=
916 tests_testDns_LDADD = \
921 tests_testDns_LDFLAGS = $(LIBADD_DL)
925 check_PROGRAMS += tests/testTokenizer
926 tests_testTokenizer_SOURCES = \
927 tests/testTokenizer.cc
928 nodist_tests_testTokenizer_SOURCES = \
929 tests/stub_StatHist.cc \
930 tests/stub_debug.cc \
931 tests/stub_libmem.cc \
933 tests_testTokenizer_LDADD = \
934 parser/libparser.la \
940 tests_testTokenizer_LDFLAGS = $(LIBADD_DL)
942 ## Tests of sbuf/* and String handling objects
944 check_PROGRAMS += tests/testSBuf
945 tests_testSBuf_SOURCES = \
947 tests/SBufFindTest.cc \
949 nodist_tests_testSBuf_SOURCES = \
950 tests/stub_StatHist.cc \
951 tests/stub_debug.cc \
953 tests_testSBuf_LDADD = \
959 tests_testSBuf_LDFLAGS = $(LIBADD_DL)
961 check_PROGRAMS += tests/testSBufList
962 tests_testSBufList_SOURCES = \
963 tests/testSBufList.cc
964 nodist_tests_testSBufList_SOURCES = \
965 tests/stub_StatHist.cc \
966 tests/stub_debug.cc \
968 tests_testSBufList_LDADD = \
974 tests_testSBufList_LDFLAGS = $(LIBADD_DL)
976 check_PROGRAMS += tests/testString
977 tests_testString_SOURCES = \
979 nodist_tests_testString_SOURCES = \
982 tests/stub_debug.cc \
983 tests/stub_event.cc \
985 tests_testString_LDADD = \
990 tests_testString_LDFLAGS = $(LIBADD_DL)
995 check_PROGRAMS += tests/testRock
996 tests_testRock_SOURCES = \
997 $(DELAY_POOL_SOURCE) \
1001 tests/stub_CacheDigest.cc \
1003 tests/stub_CachePeer.cc \
1004 CollapsedForwarding.cc \
1005 CollapsedForwarding.h \
1012 tests/stub_HelperChildConfig.cc \
1016 HttpHdrContRange.cc \
1019 HttpHdrScTarget.cc \
1022 HttpHeaderFieldInfo.h \
1023 HttpHeaderFieldStat.h \
1024 HttpHeaderTools.cc \
1027 tests/stub_HttpRequest.cc \
1037 tests/stub_Port.cc \
1046 tests/stub_StatHist.cc \
1048 StoreFileSystem.cc \
1050 tests/testStoreSupport.cc \
1051 tests/testStoreSupport.h \
1052 StoreSwapLogData.cc \
1058 tests/stub_access_log.cc \
1059 tests/stub_cache_cf.cc \
1061 tests/stub_cache_manager.cc \
1063 tests/stub_client_db.cc \
1064 tests/stub_client_side.cc \
1065 tests/stub_client_side_request.cc \
1066 tests/stub_debug.cc \
1067 tests/stub_errorpage.cc \
1076 tests/stub_fqdncache.cc \
1079 tests/stub_http.cc \
1084 tests/stub_ipcache.cc \
1085 tests/stub_libanyp.cc \
1086 tests/stub_libauth.cc \
1087 tests/stub_liberror.cc \
1088 tests/stub_libeui.cc \
1089 tests/stub_libformat.cc \
1090 tests/stub_libicmp.cc \
1091 tests/stub_libip.cc \
1092 tests/stub_liblog.cc \
1093 tests/stub_libmgr.cc \
1094 tests/stub_libsecurity.cc \
1097 tests/stub_mime.cc \
1099 tests/stub_neighbors.cc \
1100 tests/stub_pconn.cc \
1102 tests/stub_stat.cc \
1105 tests/stub_store_client.cc \
1109 tests/stub_store_rebuild.cc \
1111 tests/stub_store_stats.cc \
1113 tests/stub_tools.cc \
1117 nodist_tests_testRock_SOURCES = \
1123 tests_testRock_LDADD = \
1125 parser/libparser.la \
1131 DiskIO/libdiskio.la \
1142 $(ADAPTATION_LIBS) \
1145 $(top_builddir)/lib/libmisccontainers.la \
1146 $(top_builddir)/lib/libmiscencoding.la \
1147 $(top_builddir)/lib/libmiscutil.la \
1150 $(LIBCPPUNIT_LIBS) \
1154 tests_testRock_LDFLAGS = $(AM_CPPFLAGS) $(LIBADD_DL)
1158 tests/testStoreSupport.cc \
1159 tests/testStoreSupport.h
1163 check_PROGRAMS += tests/testUfs
1164 tests_testUfs_SOURCES = \
1165 $(DELAY_POOL_SOURCE) \
1170 tests/stub_CacheDigest.cc \
1172 tests/stub_CachePeer.cc \
1174 tests/stub_CollapsedForwarding.cc \
1181 tests/stub_HelperChildConfig.cc \
1186 HttpHdrContRange.cc \
1189 HttpHdrScTarget.cc \
1192 HttpHeaderFieldInfo.h \
1193 HttpHeaderFieldStat.h \
1194 HttpHeaderTools.cc \
1197 tests/stub_HttpRequest.cc \
1207 tests/stub_Port.cc \
1215 StoreFileSystem.cc \
1217 tests/testStoreSupport.cc \
1218 tests/testStoreSupport.h \
1219 StoreSwapLogData.cc \
1224 tests/stub_UdsOp.cc \
1226 tests/stub_access_log.cc \
1227 tests/stub_cache_cf.cc \
1229 tests/stub_cache_manager.cc \
1231 tests/stub_client_db.cc \
1233 tests/stub_client_side.cc \
1234 tests/stub_client_side_request.cc \
1235 tests/stub_debug.cc \
1236 tests/stub_errorpage.cc \
1238 tests/stub_fatal.cc \
1245 tests/stub_fqdncache.cc \
1248 tests/stub_helper.cc \
1249 tests/stub_http.cc \
1253 tests/stub_internal.cc \
1256 tests/stub_ipcache.cc \
1257 tests/stub_libanyp.cc \
1258 tests/stub_libauth.cc \
1259 tests/stub_liberror.cc \
1260 tests/stub_libeui.cc \
1261 tests/stub_libformat.cc \
1262 tests/stub_libicmp.cc \
1263 tests/stub_libip.cc \
1264 tests/stub_liblog.cc \
1265 tests/stub_libsecurity.cc \
1268 tests/stub_mime.cc \
1270 tests/stub_neighbors.cc \
1271 tests/stub_pconn.cc \
1275 tests/stub_stat.cc \
1278 tests/stub_store_client.cc \
1282 tests/stub_store_rebuild.cc \
1284 tests/stub_store_stats.cc \
1286 tests/stub_tools.cc \
1290 nodist_tests_testUfs_SOURCES = \
1296 tests_testUfs_LDADD = \
1298 parser/libparser.la \
1309 DiskIO/libdiskio.la \
1319 $(ADAPTATION_LIBS) \
1322 $(top_builddir)/lib/libmisccontainers.la \
1323 $(top_builddir)/lib/libmiscencoding.la \
1324 $(top_builddir)/lib/libmiscutil.la \
1327 $(LIBCPPUNIT_LIBS) \
1331 tests_testUfs_LDFLAGS = $(LIBADD_DL)
1337 ## Tests of store/* and Store objects
1339 check_PROGRAMS += tests/testStore
1340 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
1341 ## first line - what we are testing.
1342 tests_testStore_SOURCES = \
1343 $(DELAY_POOL_SOURCE) \
1344 tests/stub_CacheDigest.cc \
1346 tests/stub_CachePeer.cc \
1348 tests/stub_CollapsedForwarding.cc \
1354 tests/stub_HelperChildConfig.cc \
1359 HttpHdrContRange.cc \
1362 HttpHdrScTarget.cc \
1365 HttpHeaderFieldInfo.h \
1366 HttpHeaderFieldStat.h \
1367 HttpHeaderTools.cc \
1369 tests/stub_HttpReply.cc \
1370 tests/stub_HttpRequest.cc \
1378 tests/testPackableStream.cc \
1380 tests/stub_Port.cc \
1388 tests/testStore.cc \
1390 tests/testStoreController.cc \
1391 StoreFileSystem.cc \
1392 tests/testStoreHashIndex.cc \
1394 tests/testStoreSupport.cc \
1395 tests/testStoreSupport.h \
1396 StoreSwapLogData.cc \
1401 tests/stub_UdsOp.cc \
1402 tests/stub_access_log.cc \
1403 tests/stub_cache_cf.cc \
1405 tests/stub_cache_manager.cc \
1407 tests/stub_client_side.cc \
1408 tests/stub_client_side_request.cc \
1409 tests/stub_comm.cc \
1410 tests/stub_debug.cc \
1411 tests/stub_errorpage.cc \
1413 tests/stub_fatal.cc \
1421 tests/stub_helper.cc \
1422 tests/stub_http.cc \
1425 tests/stub_libanyp.cc \
1426 tests/stub_libauth.cc \
1427 tests/stub_libcomm.cc \
1428 tests/stub_libdiskio.cc \
1429 tests/stub_liberror.cc \
1430 tests/stub_libeui.cc \
1431 tests/stub_libformat.cc \
1432 tests/stub_libsecurity.cc \
1433 tests/stub_libsslsquid.cc \
1436 tests/stub_mime.cc \
1438 tests/stub_neighbors.cc \
1442 tests/stub_stat.cc \
1445 tests/stub_store_client.cc \
1449 tests/stub_store_rebuild.cc \
1451 tests/stub_store_stats.cc \
1453 tests/CapturingStoreEntry.h \
1454 tests/TestSwapDir.cc \
1455 tests/TestSwapDir.h \
1456 tests/stub_tools.cc \
1460 nodist_tests_testStore_SOURCES = \
1464 tests/stub_libtime.cc \
1466 tests_testStore_LDADD= \
1469 parser/libparser.la \
1483 DiskIO/libdiskio.la \
1485 $(top_builddir)/lib/libmisccontainers.la \
1486 $(top_builddir)/lib/libmiscencoding.la \
1487 $(top_builddir)/lib/libmiscutil.la \
1491 $(LIBCPPUNIT_LIBS) \
1495 tests_testStore_LDFLAGS = $(LIBADD_DL)
1497 ## Tests of DiskIO/*
1499 check_PROGRAMS += tests/testDiskIO
1500 tests_testDiskIO_SOURCES = \
1501 $(DELAY_POOL_SOURCE) \
1506 tests/stub_CacheDigest.cc \
1508 tests/stub_CachePeer.cc \
1510 tests/stub_CollapsedForwarding.cc \
1513 tests/testDiskIO.cc \
1514 tests/stub_ETag.cc \
1518 tests/stub_HelperChildConfig.cc \
1523 HttpHdrContRange.cc \
1526 HttpHdrScTarget.cc \
1529 HttpHeaderFieldInfo.h \
1530 HttpHeaderFieldStat.h \
1531 HttpHeaderTools.cc \
1534 tests/stub_HttpRequest.cc \
1540 tests/stub_MemStore.cc \
1544 tests/stub_Port.cc \
1552 tests/stub_StatHist.cc \
1554 StoreFileSystem.cc \
1556 tests/testStoreSupport.cc \
1557 tests/testStoreSupport.h \
1558 StoreSwapLogData.cc \
1563 tests/stub_UdsOp.cc \
1564 tests/stub_access_log.cc \
1565 tests/stub_cache_cf.cc \
1567 tests/stub_cache_manager.cc \
1569 tests/stub_client_db.cc \
1571 tests/stub_client_side.cc \
1572 tests/stub_client_side_request.cc \
1573 client_side_request.h \
1574 tests/stub_debug.cc \
1575 tests/stub_errorpage.cc \
1577 tests/stub_fatal.cc \
1584 tests/stub_fqdncache.cc \
1587 tests/stub_helper.cc \
1588 tests/stub_http.cc \
1592 tests/stub_internal.cc \
1595 tests/stub_ipcache.cc \
1596 tests/stub_libanyp.cc \
1597 tests/stub_libauth.cc \
1598 tests/stub_libauth_acls.cc \
1599 tests/stub_liberror.cc \
1600 tests/stub_libeui.cc \
1601 tests/stub_libformat.cc \
1602 tests/stub_libicmp.cc \
1603 tests/stub_libip.cc \
1604 tests/stub_liblog.cc \
1605 tests/stub_libsecurity.cc \
1606 tests/stub_libstore.cc \
1609 tests/stub_mime.cc \
1611 tests/stub_neighbors.cc \
1612 tests/stub_pconn.cc \
1616 tests/stub_stat.cc \
1619 tests/stub_store_client.cc \
1623 tests/stub_store_rebuild.cc \
1625 tests/stub_store_stats.cc \
1627 tests/stub_tools.cc \
1631 nodist_tests_testDiskIO_SOURCES = \
1636 tests/stub_libtime.cc \
1638 tests_testDiskIO_LDADD = \
1641 parser/libparser.la \
1651 $(ADAPTATION_LIBS) \
1652 DiskIO/libdiskio.la \
1662 $(top_builddir)/lib/libmisccontainers.la \
1663 $(top_builddir)/lib/libmiscencoding.la \
1664 $(top_builddir)/lib/libmiscutil.la \
1667 $(LIBCPPUNIT_LIBS) \
1671 tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
1676 check_PROGRAMS += tests/testACLMaxUserIP
1677 tests_testACLMaxUserIP_SOURCES = \
1678 tests/testACLMaxUserIP.cc
1679 nodist_tests_testACLMaxUserIP_SOURCES = \
1680 tests/stub_CachePeer.cc \
1682 tests/stub_HelperChildConfig.cc \
1683 tests/stub_HttpHeader.cc \
1684 tests/stub_HttpRequest.cc \
1685 tests/stub_MemBuf.cc \
1687 tests/stub_StatHist.cc \
1689 tests/stub_access_log.cc \
1690 tests/stub_cache_cf.cc \
1691 tests/stub_cbdata.cc \
1692 tests/stub_client_side.cc \
1693 tests/stub_debug.cc \
1695 tests/stub_errorpage.cc \
1696 tests/stub_fatal.cc \
1698 tests/stub_libauth.cc \
1699 tests/stub_libcomm.cc \
1700 tests/stub_libhttp.cc \
1701 tests/stub_libmem.cc \
1702 tests/stub_libsecurity.cc \
1703 tests/stub_neighbors.cc
1704 tests_testACLMaxUserIP_LDADD = \
1711 parser/libparser.la \
1715 $(LIBCPPUNIT_LIBS) \
1718 tests_testACLMaxUserIP_LDFLAGS = $(LIBADD_DL)
1721 tests/testACLMaxUserIP.cc
1724 ## Tests of http/* and HTTP Protocol objects
1726 check_PROGRAMS += tests/test_http_range
1727 tests_test_http_range_SOURCES = \
1728 $(DELAY_POOL_SOURCE) \
1738 tests/stub_CacheDigest.cc \
1743 tests/stub_CollapsedForwarding.cc \
1750 tests/stub_ETag.cc \
1751 tests/stub_EventLoop.cc \
1756 HappyConnOpener.cc \
1760 tests/stub_HttpControlMsg.cc \
1763 HttpHdrContRange.cc \
1766 HttpHdrScTarget.cc \
1769 HttpHeaderFieldInfo.h \
1770 HttpHeaderFieldStat.h \
1771 HttpHeaderTools.cc \
1775 tests/stub_HttpUpgradeProtocolAccess.cc \
1777 tests/stub_IpcIoFile.cc \
1783 tests/stub_MemStore.cc \
1803 StoreFileSystem.cc \
1805 StoreSwapLogData.cc \
1810 tests/test_http_range.cc \
1811 tests/stub_cache_cf.cc \
1814 tests/stub_carp.cc \
1818 tests/stub_client_db.cc \
1821 client_side_reply.cc \
1822 client_side_request.cc \
1827 tests/stub_external_acl.cc \
1828 tests/stub_fatal.cc \
1847 tests/stub_ipc_Forwarder.cc \
1849 tests/stub_libauth.cc \
1850 tests/stub_libdiskio.cc \
1851 tests/stub_liberror.cc \
1852 tests/stub_libeui.cc \
1853 tests/stub_libmem.cc \
1854 tests/stub_libsecurity.cc \
1855 tests/stub_libstore.cc \
1856 tests/stub_main_cc.cc \
1868 peer_proxy_negotiate_auth.cc \
1869 peer_proxy_negotiate_auth.h \
1871 peer_sourcehash.cc \
1875 tests/stub_redirect.cc \
1885 tests/stub_store_digest.cc \
1894 tests/stub_store_stats.cc \
1900 tests/stub_tunnel.cc \
1904 tests/stub_wccp2.cc \
1906 tests/stub_whois.cc \
1910 nodist_tests_test_http_range_SOURCES = \
1912 tests/stub_libtime.cc
1913 tests_test_http_range_LDADD = \
1915 clients/libclients.la \
1916 servers/libservers.la \
1918 helper/libhelper.la \
1920 parser/libparser.la \
1925 proxyp/libproxyp.la \
1926 parser/libparser.la \
1933 format/libformat.la \
1935 $(ADAPTATION_LIBS) \
1946 $(top_builddir)/lib/libmisccontainers.la \
1947 $(top_builddir)/lib/libmiscencoding.la \
1948 $(top_builddir)/lib/libmiscutil.la \
1953 $(LIBCPPUNIT_LIBS) \
1954 $(LIBSYSTEMD_LIBS) \
1958 tests_test_http_range_LDFLAGS = $(LIBADD_DL)
1960 check_PROGRAMS += tests/testHttp1Parser
1961 tests_testHttp1Parser_SOURCES = \
1962 tests/stub_HelperChildConfig.cc \
1963 tests/testHttp1Parser.cc \
1966 tests/stub_MemObject.cc \
1968 tests/stub_cache_cf.cc \
1970 tests/stub_cache_manager.cc \
1971 tests/stub_cbdata.cc \
1972 tests/stub_comm.cc \
1973 tests/stub_debug.cc \
1974 tests/stub_event.cc \
1975 tests/stub_libanyp.cc \
1976 tests/stub_libmem.cc \
1977 tests/stub_libsecurity.cc \
1980 tests/stub_stmem.cc \
1981 tests/stub_store.cc \
1982 tests/stub_store_stats.cc \
1983 tests/stub_tools.cc \
1987 nodist_tests_testHttp1Parser_SOURCES = \
1989 tests/stub_libtime.cc
1990 tests_testHttp1Parser_LDADD= \
1992 parser/libparser.la \
1998 $(top_builddir)/lib/libmiscutil.la \
2000 $(LIBCPPUNIT_LIBS) \
2003 tests_testHttp1Parser_LDFLAGS = $(LIBADD_DL)
2005 check_PROGRAMS += tests/testHttpReply
2006 tests_testHttpReply_SOURCES = \
2007 tests/stub_CachePeer.cc \
2009 tests/stub_ETag.cc \
2010 tests/stub_HelperChildConfig.cc \
2017 HttpHdrContRange.cc \
2018 HttpHdrContRange.h \
2022 HttpHdrScTarget.cc \
2026 HttpHeaderFieldInfo.h \
2027 HttpHeaderFieldStat.h \
2029 HttpHeaderTools.cc \
2032 tests/testHttpReply.cc \
2034 tests/stub_HttpRequest.cc \
2044 tests/stub_StatHist.cc \
2049 tests/stub_access_log.cc \
2050 tests/stub_cache_cf.cc \
2052 tests/stub_cache_manager.cc \
2055 tests/stub_client_side.cc \
2056 tests/stub_comm.cc \
2057 tests/stub_debug.cc \
2058 tests/stub_errorpage.cc \
2059 tests/stub_event.cc \
2060 tests/stub_fatal.cc \
2063 tests/stub_libanyp.cc \
2064 tests/stub_libauth.cc \
2065 tests/stub_libcomm.cc \
2066 tests/stub_liberror.cc \
2067 tests/stub_libformat.cc \
2068 tests/stub_libmem.cc \
2069 tests/stub_libmgr.cc \
2070 tests/stub_libsecurity.cc \
2071 tests/stub_libsslsquid.cc \
2075 tests/stub_neighbors.cc \
2077 tests/stub_store.cc \
2078 tests/stub_store_stats.cc \
2079 tests/stub_tools.cc \
2083 nodist_tests_testHttpReply_SOURCES = \
2086 tests/stub_libtime.cc
2087 tests_testHttpReply_LDADD=\
2090 parser/libparser.la \
2099 $(top_builddir)/lib/libmisccontainers.la \
2100 $(top_builddir)/lib/libmiscencoding.la \
2101 $(top_builddir)/lib/libmiscutil.la \
2103 $(LIBCPPUNIT_LIBS) \
2107 tests_testHttpReply_LDFLAGS = $(LIBADD_DL)
2109 check_PROGRAMS += tests/testHttpRequest
2110 tests_testHttpRequest_SOURCES = \
2111 $(DELAY_POOL_SOURCE) \
2120 tests/stub_CacheDigest.cc \
2125 tests/stub_CollapsedForwarding.cc \
2132 tests/stub_ETag.cc \
2133 tests/stub_EventLoop.cc \
2134 ExternalACLEntry.cc \
2138 HappyConnOpener.cc \
2142 tests/stub_HttpControlMsg.cc \
2145 HttpHdrContRange.cc \
2148 HttpHdrScTarget.cc \
2151 HttpHeaderFieldInfo.h \
2152 HttpHeaderFieldStat.h \
2153 HttpHeaderTools.cc \
2157 tests/testHttpRequest.cc \
2158 tests/testHttpRequestMethod.cc \
2159 tests/stub_HttpUpgradeProtocolAccess.cc \
2161 tests/stub_IpcIoFile.cc \
2187 StoreFileSystem.cc \
2189 StoreSwapLogData.cc \
2194 tests/stub_cache_cf.cc \
2197 tests/stub_carp.cc \
2201 tests/stub_client_db.cc \
2204 client_side_reply.cc \
2205 client_side_request.cc \
2211 tests/stub_fatal.cc \
2229 tests/stub_ipc_Forwarder.cc \
2231 tests/stub_libauth.cc \
2232 tests/stub_libauth_acls.cc \
2233 tests/stub_libdiskio.cc \
2234 tests/stub_liberror.cc \
2235 tests/stub_libeui.cc \
2236 tests/stub_libmem.cc \
2237 tests/stub_libsecurity.cc \
2238 tests/stub_libstore.cc \
2239 tests/stub_main_cc.cc \
2251 peer_proxy_negotiate_auth.cc \
2252 peer_proxy_negotiate_auth.h \
2254 peer_sourcehash.cc \
2258 tests/stub_redirect.cc \
2268 tests/stub_store_digest.cc \
2277 tests/stub_store_stats.cc \
2283 tests/stub_tunnel.cc \
2287 tests/stub_wccp2.cc \
2289 tests/stub_whois.cc \
2293 nodist_tests_testHttpRequest_SOURCES = \
2295 tests/stub_libtime.cc
2296 tests_testHttpRequest_LDADD = \
2298 clients/libclients.la \
2299 servers/libservers.la \
2300 helper/libhelper.la \
2307 parser/libparser.la \
2312 proxyp/libproxyp.la \
2313 parser/libparser.la \
2322 format/libformat.la \
2327 $(ADAPTATION_LIBS) \
2329 $(top_builddir)/lib/libmisccontainers.la \
2330 $(top_builddir)/lib/libmiscencoding.la \
2331 $(top_builddir)/lib/libmiscutil.la \
2336 $(LIBCPPUNIT_LIBS) \
2337 $(LIBSYSTEMD_LIBS) \
2341 tests_testHttpRequest_LDFLAGS = $(LIBADD_DL)
2345 check_PROGRAMS += tests/testIpAddress
2346 tests_testIpAddress_SOURCES = \
2347 tests/testIpAddress.cc
2348 nodist_tests_testIpAddress_SOURCES = \
2349 tests/stub_SBuf.cc \
2350 tests/stub_debug.cc \
2351 tests/stub_libmem.cc \
2353 tests_testIpAddress_LDADD = \
2356 $(LIBCPPUNIT_LIBS) \
2359 tests_testIpAddress_LDFLAGS = $(LIBADD_DL)
2363 check_PROGRAMS += tests/testIcmp
2364 # icmp/libicmpcore.la is used by pinger so SHOULD NOT require more dependancies! :-(
2365 tests_testIcmp_SOURCES = \
2367 nodist_tests_testIcmp_SOURCES = \
2368 tests/stub_SBuf.cc \
2369 tests/stub_debug.cc \
2371 tests/stub_libmem.cc \
2372 tests/stub_libtime.cc
2373 tests_testIcmp_LDADD=\
2374 icmp/libicmpcore.la \
2377 $(LIBCPPUNIT_LIBS) \
2380 tests_testIcmp_LDFLAGS = $(LIBADD_DL)
2382 check_PROGRAMS += tests/testNetDb
2383 tests_testNetDb_SOURCES = \
2385 nodist_tests_testNetDb_SOURCES = \
2386 tests/stub_SBuf.cc \
2387 tests/stub_debug.cc \
2388 tests/stub_libmem.cc \
2389 tests/stub_libtime.cc
2390 tests_testNetDb_LDADD = \
2394 $(top_builddir)/lib/libmisccontainers.la \
2395 $(LIBCPPUNIT_LIBS) \
2398 tests_testNetDb_LDFLAGS = $(LIBADD_DL)
2400 ## Tests of mgr/* and CacheManager objects
2402 check_PROGRAMS += tests/testCacheManager
2403 tests_testCacheManager_SOURCES = \
2404 $(DELAY_POOL_SOURCE) \
2414 tests/stub_CacheDigest.cc \
2416 tests/testCacheManager.cc \
2420 tests/stub_CollapsedForwarding.cc \
2427 tests/stub_ETag.cc \
2428 tests/stub_EventLoop.cc \
2429 ExternalACLEntry.cc \
2434 HappyConnOpener.cc \
2438 tests/stub_HttpControlMsg.cc \
2441 HttpHdrContRange.cc \
2444 HttpHdrScTarget.cc \
2447 HttpHeaderFieldInfo.h \
2448 HttpHeaderFieldStat.h \
2449 HttpHeaderTools.cc \
2453 tests/stub_HttpUpgradeProtocolAccess.cc \
2455 tests/stub_IpcIoFile.cc \
2479 tests/stub_StatHist.cc \
2481 StoreFileSystem.cc \
2483 StoreSwapLogData.cc \
2488 tests/stub_cache_cf.cc \
2491 tests/stub_carp.cc \
2495 tests/stub_client_db.cc \
2498 client_side_reply.cc \
2499 client_side_request.cc \
2505 tests/stub_fatal.cc \
2524 tests/stub_ipc_Forwarder.cc \
2526 tests/stub_libauth.cc \
2527 tests/stub_libauth_acls.cc \
2528 tests/stub_libdiskio.cc \
2529 tests/stub_liberror.cc \
2530 tests/stub_libsecurity.cc \
2531 tests/stub_libstore.cc \
2532 tests/stub_main_cc.cc \
2544 peer_proxy_negotiate_auth.cc \
2545 peer_proxy_negotiate_auth.h \
2547 peer_sourcehash.cc \
2551 tests/stub_redirect.cc \
2561 tests/stub_store_digest.cc \
2570 tests/stub_store_stats.cc \
2576 tests/stub_tunnel.cc \
2580 tests/stub_wccp2.cc \
2582 tests/stub_whois.cc \
2586 nodist_tests_testCacheManager_SOURCES = \
2588 tests/stub_libtime.cc
2589 # comm.cc only requires comm/libcomm.la until fdc_table is dead.
2590 tests_testCacheManager_LDADD = \
2592 clients/libclients.la \
2593 servers/libservers.la \
2595 helper/libhelper.la \
2597 proxyp/libproxyp.la \
2598 parser/libparser.la \
2611 format/libformat.la \
2613 $(ADAPTATION_LIBS) \
2624 $(top_builddir)/lib/libmisccontainers.la \
2625 $(top_builddir)/lib/libmiscencoding.la \
2626 $(top_builddir)/lib/libmiscutil.la \
2631 $(LIBCPPUNIT_LIBS) \
2632 $(LIBSYSTEMD_LIBS) \
2636 tests_testCacheManager_LDFLAGS = $(LIBADD_DL)
2638 check_PROGRAMS += tests/testStatHist
2639 tests_testStatHist_SOURCES = \
2640 tests/stub_DelayId.cc \
2641 tests/stub_HelperChildConfig.cc \
2642 tests/stub_MemBuf.cc \
2643 tests/stub_MemObject.cc \
2645 tests/testStatHist.cc \
2648 tests/stub_cache_manager.cc \
2649 tests/stub_cbdata.cc \
2650 tests/stub_comm.cc \
2651 tests/stub_debug.cc \
2652 tests/stub_fatal.cc \
2654 tests/stub_libmem.cc \
2655 tests/stub_mime.cc \
2657 tests/stub_pconn.cc \
2659 tests/stub_stmem.cc \
2660 tests/stub_store.cc \
2661 tests/stub_store_stats.cc \
2662 tests/stub_tools.cc \
2664 nodist_tests_testStatHist_SOURCES = \
2666 tests/stub_libtime.cc
2667 tests_testStatHist_LDADD = \
2670 $(top_builddir)/lib/libmiscutil.la \
2671 $(top_builddir)/lib/libmisccontainers.la \
2672 $(LIBCPPUNIT_LIBS) \
2674 tests_testStatHist_LDFLAGS = $(LIBADD_DL)
2676 ## Tests of ConfigParser
2678 check_PROGRAMS += tests/testConfigParser
2679 tests_testConfigParser_SOURCES = \
2680 tests/testConfigParser.cc
2681 nodist_tests_testConfigParser_SOURCES = \
2683 tests/stub_SBuf.cc \
2686 tests/stub_cache_cf.cc \
2687 tests/stub_debug.cc \
2688 tests/stub_fatal.cc \
2689 tests/stub_libmem.cc \
2690 tests/stub_neighbors.cc
2691 tests_testConfigParser_LDADD = \
2693 $(LIBCPPUNIT_LIBS) \
2696 tests_testConfigParser_LDFLAGS = $(LIBADD_DL)
2698 ## Tests of Event handling
2700 check_PROGRAMS += tests/testEvent
2701 tests_testEvent_SOURCES = \
2703 nodist_tests_testEvent_SOURCES = \
2705 tests/stub_SBuf.cc \
2706 tests/stub_cache_manager.cc \
2707 tests/stub_cbdata.cc \
2708 tests/stub_debug.cc \
2710 tests/stub_libmem.cc \
2711 tests/stub_libtime.cc \
2713 tests_testEvent_LDADD = \
2715 $(LIBCPPUNIT_LIBS) \
2718 tests_testEvent_LDFLAGS = $(LIBADD_DL)
2720 check_PROGRAMS += tests/testEventLoop
2721 tests_testEventLoop_SOURCES = \
2722 tests/testEventLoop.cc
2723 nodist_tests_testEventLoop_SOURCES = \
2725 tests/stub_SBuf.cc \
2726 tests/stub_debug.cc \
2727 tests/stub_fatal.cc \
2728 tests/stub_libtime.cc
2729 tests_testEventLoop_LDADD = \
2731 $(LIBCPPUNIT_LIBS) \
2734 tests_testEventLoop_LDFLAGS = $(LIBADD_DL)
2736 ## Run the unit tests. check_PROGRAMS only builds the binaries.
2737 TESTS += $(check_PROGRAMS) testHeaders
2739 ## Special Universal .h dependency test script
2740 ## aborts if error encountered
2741 testHeaders: $(srcdir)/*.h $(srcdir)/DiskIO/*.h $(srcdir)/DiskIO/*/*.h
2742 $(SHELL) $(top_srcdir)/test-suite/testheaders.sh "$(CXXCOMPILE)" $^ || exit 1
2743 ## src/repl/ has no .h files and its own makefile.
2745 CLEANFILES += testHeaders