]>
Commit | Line | Data |
---|---|---|
ef57eb7b | 1 | ## Copyright (C) 1996-2016 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 | |
f4405bd3 AJ |
13 | SUBDIRS= helper-mux purge squidclient systemd sysvinit |
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 | |
5b88dc7a | 34 | stub_debug.cc: $(top_srcdir)/src/tests/stub_debug.cc |
598b2b0d | 35 | cp $(top_srcdir)/src/tests/stub_debug.cc $@ |
5b88dc7a AJ |
36 | |
37 | time.cc: $(top_srcdir)/src/time.cc | |
598b2b0d | 38 | cp $(top_srcdir)/src/time.cc $@ |
ae72213d | 39 | |
598b2b0d FC |
40 | stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h |
41 | cp $(top_srcdir)/src/tests/stub_libmem.cc $@ | |
ae72213d | 42 | |
598b2b0d FC |
43 | STUB.h: $(top_srcdir)/src/tests/STUB.h |
44 | cp $(top_srcdir)/src/tests/STUB.h $@ | |
5b88dc7a | 45 | |
82b7abe3 AJ |
46 | # stock tools for unit tests - library independent versions of dlink_list |
47 | # etc. | |
48 | # globals.cc is needed by test_tools.cc. | |
49 | # Neither of these should be disted from here. | |
50 | TESTSOURCES= test_tools.cc | |
ae72213d | 51 | CLEANFILES += test_tools.cc stub_debug.cc time.cc stub_libmem.cc STUB.h |
94ab55b0 | 52 | |
90891b32 AJ |
53 | ## Test Scripts |
54 | EXTRA_DIST += helper-ok-dying.pl helper-ok.pl | |
e3d9712e | 55 | |
473d1237 AJ |
56 | ## ##### cachemgr.cgi ##### |
57 | ||
58 | DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf | |
59 | ||
60 | libexec_PROGRAMS = cachemgr$(CGIEXT) | |
61 | ||
82b7abe3 | 62 | cachemgr__CGIEXT__SOURCES = cachemgr.cc \ |
5b88dc7a | 63 | stub_debug.cc \ |
ae72213d | 64 | stub_libmem.cc \ |
5b88dc7a | 65 | test_tools.cc \ |
ae72213d | 66 | STUB.h \ |
5b88dc7a | 67 | time.cc |
82b7abe3 | 68 | |
bbfff290 | 69 | cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS) |
94ab55b0 | 70 | |
618249f5 | 71 | EXTRA_DIST += cachemgr.conf cachemgr.cgi.8 cachemgr.cgi.8.in |
473d1237 AJ |
72 | CLEANFILES += cachemgr.cgi.8 |
73 | man_MANS += cachemgr.cgi.8 | |
74 | ||
75 | cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile | |
76 | $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@ | |
77 | ||
473d1237 | 78 | ## Shared |
94ab55b0 | 79 | |
0b62f0f7 | 80 | install-data-local: |
f884870a | 81 | $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default |
94ab55b0 | 82 | @if test -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) ; then \ |
83 | echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)" ; \ | |
84 | else \ | |
85 | echo "$(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)"; \ | |
86 | $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG); \ | |
87 | fi | |
88 | ||
89 | uninstall-local: | |
9e2ea0ce | 90 | @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) |
e2b88def | 91 | $(RM) -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default |