]>
Commit | Line | Data |
---|---|---|
f70aedc4 | 1 | ## Copyright (C) 1996-2021 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 | 8 | include $(top_srcdir)/src/Common.am |
94ab55b0 | 9 | |
189f1e66 | 10 | ## we need our local files too (but avoid -I. at all costs) |
01a1acbc | 11 | AM_CPPFLAGS += -I$(srcdir) |
189f1e66 | 12 | |
3d276e1d | 13 | SUBDIRS= apparmor helper-mux purge squidclient systemd sysvinit |
f4405bd3 AJ |
14 | EXTRA_DIST= |
15 | man_MANS= | |
16 | DISTCLEANFILES= | |
94ab55b0 | 17 | |
f4405bd3 | 18 | LDADD= \ |
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 | 27 | include $(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 | 31 | test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc |
598b2b0d | 32 | cp $(top_srcdir)/test-suite/test_tools.cc $@ |
82b7abe3 | 33 | |
44e802f4 | 34 | tests/stub_debug.cc: $(top_srcdir)/src/tests/stub_debug.cc |
598b2b0d | 35 | cp $(top_srcdir)/src/tests/stub_debug.cc $@ |
5b88dc7a | 36 | |
ebaabe74 AR |
37 | Here.cc: $(top_srcdir)/src/base/Here.cc |
38 | cp $(top_srcdir)/src/base/Here.cc $@ | |
39 | ||
5cc4b155 | 40 | CharacterSet.cc: $(top_srcdir)/src/base/CharacterSet.cc |
41 | cp $(top_srcdir)/src/base/CharacterSet.cc $@ | |
42 | ||
1f1eee3f AJ |
43 | MemBuf.cc: $(top_srcdir)/src/MemBuf.cc |
44 | cp $(top_srcdir)/src/MemBuf.cc $@ | |
45 | ||
5b88dc7a | 46 | time.cc: $(top_srcdir)/src/time.cc |
598b2b0d | 47 | cp $(top_srcdir)/src/time.cc $@ |
ae72213d | 48 | |
44e802f4 | 49 | tests/stub_cbdata.cc: $(top_srcdir)/src/tests/stub_cbdata.cc |
1f1eee3f AJ |
50 | cp $(top_srcdir)/src/tests/stub_cbdata.cc $@ |
51 | ||
44e802f4 | 52 | tests/stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc |
598b2b0d | 53 | cp $(top_srcdir)/src/tests/stub_libmem.cc $@ |
5cc4b155 | 54 | |
44e802f4 | 55 | tests/STUB.h: $(top_srcdir)/src/tests/STUB.h |
598b2b0d | 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. | |
62 | TESTSOURCES= test_tools.cc | |
44e802f4 | 63 | CLEANFILES += test_tools.cc Here.cc CharacterSet.cc MemBuf.cc tests/stub_debug.cc time.cc tests/stub_cbdata.cc tests/stub_libmem.cc tests/STUB.h |
94ab55b0 | 64 | |
90891b32 AJ |
65 | ## Test Scripts |
66 | EXTRA_DIST += helper-ok-dying.pl helper-ok.pl | |
e3d9712e | 67 | |
473d1237 AJ |
68 | ## ##### cachemgr.cgi ##### |
69 | ||
70 | DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf | |
71 | ||
72 | libexec_PROGRAMS = cachemgr$(CGIEXT) | |
73 | ||
aa5639dc | 74 | cachemgr__CGIEXT__SOURCES = \ |
5cc4b155 | 75 | CharacterSet.cc \ |
ebaabe74 | 76 | Here.cc \ |
1f1eee3f | 77 | MemBuf.cc \ |
aa5639dc | 78 | cachemgr.cc \ |
5b88dc7a AJ |
79 | test_tools.cc \ |
80 | time.cc | |
82b7abe3 | 81 | |
44e802f4 | 82 | nodist_cachemgr__CGIEXT__SOURCES = \ |
44e802f4 AJ |
83 | tests/stub_cbdata.cc \ |
84 | tests/stub_debug.cc \ | |
70ac5b29 | 85 | tests/stub_libmem.cc \ |
86 | tests/STUB.h | |
44e802f4 | 87 | |
bbfff290 | 88 | cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS) |
94ab55b0 | 89 | |
618249f5 | 90 | EXTRA_DIST += cachemgr.conf cachemgr.cgi.8 cachemgr.cgi.8.in |
473d1237 AJ |
91 | CLEANFILES += cachemgr.cgi.8 |
92 | man_MANS += cachemgr.cgi.8 | |
93 | ||
94 | cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile | |
95 | $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@ | |
96 | ||
473d1237 | 97 | ## Shared |
94ab55b0 | 98 | |
0b62f0f7 | 99 | install-data-local: |
f884870a | 100 | $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default |
94ab55b0 | 101 | @if test -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) ; then \ |
102 | echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)" ; \ | |
103 | else \ | |
104 | echo "$(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)"; \ | |
105 | $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG); \ | |
106 | fi | |
107 | ||
108 | uninstall-local: | |
9e2ea0ce | 109 | @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) |
e2b88def | 110 | $(RM) -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default |