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
10 ## we need our local files too (but avoid -I. at all costs)
11 AM_CPPFLAGS += -I$(srcdir)
13 SUBDIRS= helper-mux purge squidclient systemd sysvinit
19 $(top_builddir)/src/ip/libip.la \
20 $(top_builddir)/lib/libmiscencoding.la \
21 $(top_builddir)/lib/libmiscutil.la \
27 include $(top_srcdir)/doc/manuals/Substitute.am
29 ## Several files need to be shared but we cannot depend on the other
30 ## directories to be built.
31 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
32 cp $(top_srcdir)/test-suite/test_tools.cc $@
34 stub_debug.cc: $(top_srcdir)/src/tests/stub_debug.cc
35 cp $(top_srcdir)/src/tests/stub_debug.cc $@
37 MemBuf.cc: $(top_srcdir)/src/MemBuf.cc
38 cp $(top_srcdir)/src/MemBuf.cc $@
40 time.cc: $(top_srcdir)/src/time.cc
41 cp $(top_srcdir)/src/time.cc $@
43 stub_cbdata.cc: $(top_srcdir)/src/tests/stub_cbdata.cc
44 cp $(top_srcdir)/src/tests/stub_cbdata.cc $@
46 stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h
47 cp $(top_srcdir)/src/tests/stub_libmem.cc $@
49 STUB.h: $(top_srcdir)/src/tests/STUB.h
50 cp $(top_srcdir)/src/tests/STUB.h $@
52 # stock tools for unit tests - library independent versions of dlink_list
54 # globals.cc is needed by test_tools.cc.
55 # Neither of these should be disted from here.
56 TESTSOURCES= test_tools.cc
57 CLEANFILES += test_tools.cc MemBuf.cc stub_debug.cc time.cc stub_cbdata.cc stub_libmem.cc STUB.h
60 EXTRA_DIST += helper-ok-dying.pl helper-ok.pl
62 ## ##### cachemgr.cgi #####
64 DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
66 libexec_PROGRAMS = cachemgr$(CGIEXT)
68 cachemgr__CGIEXT__SOURCES = cachemgr.cc \
77 cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS)
79 EXTRA_DIST += cachemgr.conf cachemgr.cgi.8 cachemgr.cgi.8.in
80 CLEANFILES += cachemgr.cgi.8
81 man_MANS += cachemgr.cgi.8
83 cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile
84 $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@
89 $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default
90 @if test -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) ; then \
91 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)" ; \
93 echo "$(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)"; \
94 $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG); \
98 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)
99 $(RM) -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default