source: squid-ssl/trunk/fuentes/tools/Makefile.am @ 5502

Last change on this file since 5502 was 5502, checked in by Juanma, 4 years ago

Initial release

File size: 2.9 KB
Line 
1## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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##
7
8include $(top_srcdir)/src/Common.am
9
10## we need our local files too (but avoid -I. at all costs)
11AM_CPPFLAGS += -I$(srcdir)
12
13SUBDIRS = purge squidclient systemd sysvinit
14EXTRA_DIST =
15man_MANS =
16DISTCLEANFILES =
17
18LDADD= \
19        $(top_builddir)/src/ip/libip.la \
20        $(top_builddir)/lib/libmiscencoding.la \
21        $(top_builddir)/lib/libmiscutil.la \
22        $(COMPAT_LIB) \
23        $(NETTLELIB) \
24        $(KRB5LIBS) \
25        $(XTRA_LIBS)
26
27include $(top_srcdir)/doc/manuals/Substitute.am
28
29## Several files need to be shared but we cannot depend on the other
30## directories to be built.
31test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
32        cp $(top_srcdir)/test-suite/test_tools.cc .
33
34stub_debug.cc: $(top_srcdir)/src/tests/stub_debug.cc
35        cp $(top_srcdir)/src/tests/stub_debug.cc .
36
37MemBuf.cc: $(top_srcdir)/src/MemBuf.cc
38        cp $(top_srcdir)/src/MemBuf.cc $@
39
40time.cc: $(top_srcdir)/src/time.cc
41        cp $(top_srcdir)/src/time.cc .
42
43stub_cbdata.cc: $(top_srcdir)/src/tests/stub_cbdata.cc
44        cp $(top_srcdir)/src/tests/stub_cbdata.cc $@
45
46stub_mem.cc: $(top_srcdir)/src/tests/stub_mem.cc
47        cp $(top_srcdir)/src/tests/stub_mem.cc $@
48
49# stock tools for unit tests - library independent versions of dlink_list
50# etc.
51# globals.cc is needed by test_tools.cc.
52# Neither of these should be disted from here.
53TESTSOURCES= test_tools.cc
54CLEANFILES += test_tools.cc MemBuf.cc stub_debug.cc time.cc stub_cbdata.cc stub_mem.cc
55
56## ##### helper-mux #####
57
58libexec_SCRIPTS = helper-mux.pl
59EXTRA_DIST += helper-mux.pl helper-mux.README
60
61## Test Scripts
62EXTRA_DIST += helper-ok-dying.pl helper-ok.pl
63
64
65## ##### cachemgr.cgi  #####
66
67DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
68
69libexec_PROGRAMS = cachemgr$(CGIEXT)
70
71cachemgr__CGIEXT__SOURCES = cachemgr.cc \
72        MemBuf.cc \
73        stub_cbdata.cc \
74        stub_debug.cc \
75        stub_mem.cc \
76        test_tools.cc \
77        time.cc
78
79cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS)
80
81EXTRA_DIST += cachemgr.conf cachemgr.cgi.8 cachemgr.cgi.8.in
82CLEANFILES += cachemgr.cgi.8
83man_MANS += cachemgr.cgi.8
84
85cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile
86        $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@
87
88
89
90## Shared
91
92install-data-local:
93        $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default
94        @if test -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) ; then \
95                echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)" ; \
96        else \
97                echo "$(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)"; \
98                $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG); \
99        fi
100
101uninstall-local:
102        @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)
103        $(RM) -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default
Note: See TracBrowser for help on using the repository browser.