]> git.ipfire.org Git - thirdparty/squid.git/blame - tools/Makefile.am
Source Format Enforcement (#665)
[thirdparty/squid.git] / tools / Makefile.am
CommitLineData
77b1029d 1## Copyright (C) 1996-2020 The Squid Software Foundation and contributors
5f623035
AJ
2##
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.
6##
94ab55b0 7
189f1e66 8include $(top_srcdir)/src/Common.am
94ab55b0 9
189f1e66 10## we need our local files too (but avoid -I. at all costs)
01a1acbc 11AM_CPPFLAGS += -I$(srcdir)
189f1e66 12
3d276e1d 13SUBDIRS= apparmor helper-mux purge squidclient systemd sysvinit
f4405bd3
AJ
14EXTRA_DIST=
15man_MANS=
16DISTCLEANFILES=
94ab55b0 17
f4405bd3 18LDADD= \
82b7abe3 19 $(top_builddir)/src/ip/libip.la \
25f98340
AJ
20 $(top_builddir)/lib/libmiscencoding.la \
21 $(top_builddir)/lib/libmiscutil.la \
82b7abe3 22 $(COMPAT_LIB) \
09cd7204 23 $(NETTLELIB) \
823d23e4 24 $(KRB5LIBS) \
473d1237 25 $(XTRA_LIBS)
94ab55b0 26
473d1237 27include $(top_srcdir)/doc/manuals/Substitute.am
94ab55b0 28
5b88dc7a
AJ
29## Several files need to be shared but we cannot depend on the other
30## directories to be built.
82b7abe3 31test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
598b2b0d 32 cp $(top_srcdir)/test-suite/test_tools.cc $@
82b7abe3 33
5b88dc7a 34stub_debug.cc: $(top_srcdir)/src/tests/stub_debug.cc
598b2b0d 35 cp $(top_srcdir)/src/tests/stub_debug.cc $@
5b88dc7a 36
ebaabe74
AR
37Here.cc: $(top_srcdir)/src/base/Here.cc
38 cp $(top_srcdir)/src/base/Here.cc $@
39
5cc4b155 40CharacterSet.cc: $(top_srcdir)/src/base/CharacterSet.cc
41 cp $(top_srcdir)/src/base/CharacterSet.cc $@
42
1f1eee3f
AJ
43MemBuf.cc: $(top_srcdir)/src/MemBuf.cc
44 cp $(top_srcdir)/src/MemBuf.cc $@
45
5b88dc7a 46time.cc: $(top_srcdir)/src/time.cc
598b2b0d 47 cp $(top_srcdir)/src/time.cc $@
ae72213d 48
1f1eee3f
AJ
49stub_cbdata.cc: $(top_srcdir)/src/tests/stub_cbdata.cc
50 cp $(top_srcdir)/src/tests/stub_cbdata.cc $@
51
598b2b0d
FC
52stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h
53 cp $(top_srcdir)/src/tests/stub_libmem.cc $@
5cc4b155 54
598b2b0d
FC
55STUB.h: $(top_srcdir)/src/tests/STUB.h
56 cp $(top_srcdir)/src/tests/STUB.h $@
5b88dc7a 57
82b7abe3
AJ
58# stock tools for unit tests - library independent versions of dlink_list
59# etc.
60# globals.cc is needed by test_tools.cc.
61# Neither of these should be disted from here.
62TESTSOURCES= test_tools.cc
5cc4b155 63CLEANFILES += test_tools.cc Here.cc CharacterSet.cc MemBuf.cc stub_debug.cc time.cc stub_cbdata.cc stub_libmem.cc STUB.h
94ab55b0 64
90891b32
AJ
65## Test Scripts
66EXTRA_DIST += helper-ok-dying.pl helper-ok.pl
e3d9712e 67
473d1237
AJ
68## ##### cachemgr.cgi #####
69
70DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
71
72libexec_PROGRAMS = cachemgr$(CGIEXT)
73
aa5639dc 74cachemgr__CGIEXT__SOURCES = \
5cc4b155 75 CharacterSet.cc \
ebaabe74 76 Here.cc \
1f1eee3f 77 MemBuf.cc \
aa5639dc 78 STUB.h \
79 cachemgr.cc \
1f1eee3f 80 stub_cbdata.cc \
5b88dc7a 81 stub_debug.cc \
ae72213d 82 stub_libmem.cc \
5b88dc7a
AJ
83 test_tools.cc \
84 time.cc
82b7abe3 85
bbfff290 86cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS)
94ab55b0 87
618249f5 88EXTRA_DIST += cachemgr.conf cachemgr.cgi.8 cachemgr.cgi.8.in
473d1237
AJ
89CLEANFILES += cachemgr.cgi.8
90man_MANS += cachemgr.cgi.8
91
92cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile
93 $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@
94
473d1237 95## Shared
94ab55b0 96
0b62f0f7 97install-data-local:
f884870a 98 $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default
94ab55b0 99 @if test -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) ; then \
100 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)" ; \
101 else \
102 echo "$(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)"; \
103 $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG); \
104 fi
105
106uninstall-local:
9e2ea0ce 107 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)
e2b88def 108 $(RM) -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default