2 # Makefile for the Squid Object Cache server
4 # Uncomment and customize the following to suit your needs:
7 include $(top_srcdir)/src/Common.am
9 AUTOMAKE_OPTIONS = subdir-objects
11 ## we need our local files too (but avoid -I. at all costs)
12 INCLUDES += -I$(srcdir)
20 $(top_builddir)/src/time.o \
21 $(top_builddir)/src/ip/libip.la \
25 include $(top_srcdir)/doc/manuals/Substitute.am
27 test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
28 cp $(top_srcdir)/test-suite/test_tools.cc .
30 # stock tools for unit tests - library independent versions of dlink_list
32 # globals.cc is needed by test_tools.cc.
33 # Neither of these should be disted from here.
34 TESTSOURCES= test_tools.cc
35 CLEANFILES += test_tools.cc
37 ## ##### helper-mux #####
39 libexec_SCRIPTS = helper-mux.pl
40 EXTRA_DIST += helper-mux.pl helper-mux.README
43 EXTRA_DIST += helper-ok-dying.pl helper-ok.pl
45 ## ##### squidclient #####
47 bin_PROGRAMS = squidclient
49 squidclient_SOURCES = squidclient.cc \
52 EXTRA_DIST += squidclient.1
53 man_MANS += squidclient.1
57 ## ##### cachemgr.cgi #####
59 DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf
61 libexec_PROGRAMS = cachemgr$(CGIEXT)
63 cachemgr__CGIEXT__SOURCES = cachemgr.cc \
66 cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS)
68 EXTRA_DIST += cachemgr.conf cachemgr.cgi.8 cachemgr.cgi.8.in
69 CLEANFILES += cachemgr.cgi.8
70 man_MANS += cachemgr.cgi.8
72 cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile
73 $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@
80 $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default
81 @if test -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) ; then \
82 echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)" ; \
84 echo "$(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)"; \
85 $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG); \
89 @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)
90 $(RM) -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default