]>
Commit | Line | Data |
---|---|---|
94ab55b0 | 1 | # |
2 | # Makefile for the Squid Object Cache server | |
3 | # | |
94ab55b0 | 4 | # Uncomment and customize the following to suit your needs: |
5 | # | |
6 | ||
189f1e66 | 7 | include $(top_srcdir)/src/Common.am |
94ab55b0 | 8 | |
9 | AUTOMAKE_OPTIONS = subdir-objects | |
10 | ||
189f1e66 AJ |
11 | ## we need our local files too (but avoid -I. at all costs) |
12 | INCLUDES += -I$(srcdir) | |
13 | ||
842cd45a | 14 | SUBDIRS = purge squidclient |
473d1237 AJ |
15 | EXTRA_DIST = |
16 | man_MANS = | |
17 | DISTCLEANFILES = | |
94ab55b0 | 18 | |
473d1237 | 19 | LDADD = \ |
82b7abe3 | 20 | $(top_builddir)/src/ip/libip.la \ |
25f98340 AJ |
21 | $(top_builddir)/lib/libmiscencoding.la \ |
22 | $(top_builddir)/lib/libmiscutil.la \ | |
82b7abe3 | 23 | $(COMPAT_LIB) \ |
09cd7204 | 24 | $(NETTLELIB) \ |
823d23e4 | 25 | $(KRB5LIBS) \ |
473d1237 | 26 | $(XTRA_LIBS) |
94ab55b0 | 27 | |
473d1237 | 28 | include $(top_srcdir)/doc/manuals/Substitute.am |
94ab55b0 | 29 | |
5b88dc7a AJ |
30 | ## Several files need to be shared but we cannot depend on the other |
31 | ## directories to be built. | |
82b7abe3 AJ |
32 | test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc |
33 | cp $(top_srcdir)/test-suite/test_tools.cc . | |
34 | ||
5b88dc7a AJ |
35 | stub_debug.cc: $(top_srcdir)/src/tests/stub_debug.cc |
36 | cp $(top_srcdir)/src/tests/stub_debug.cc . | |
37 | ||
38 | time.cc: $(top_srcdir)/src/time.cc | |
39 | cp $(top_srcdir)/src/time.cc . | |
40 | ||
82b7abe3 AJ |
41 | # stock tools for unit tests - library independent versions of dlink_list |
42 | # etc. | |
43 | # globals.cc is needed by test_tools.cc. | |
44 | # Neither of these should be disted from here. | |
45 | TESTSOURCES= test_tools.cc | |
3dc72a57 | 46 | CLEANFILES += test_tools.cc stub_debug.cc time.cc |
94ab55b0 | 47 | |
e3d9712e AJ |
48 | ## ##### helper-mux ##### |
49 | ||
50 | libexec_SCRIPTS = helper-mux.pl | |
90891b32 | 51 | EXTRA_DIST += helper-mux.pl helper-mux.README |
e3d9712e | 52 | |
90891b32 AJ |
53 | ## Test Scripts |
54 | EXTRA_DIST += helper-ok-dying.pl helper-ok.pl | |
e3d9712e | 55 | |
473d1237 AJ |
56 | |
57 | ## ##### cachemgr.cgi ##### | |
58 | ||
59 | DEFAULT_CACHEMGR_CONFIG = $(sysconfdir)/cachemgr.conf | |
60 | ||
61 | libexec_PROGRAMS = cachemgr$(CGIEXT) | |
62 | ||
82b7abe3 | 63 | cachemgr__CGIEXT__SOURCES = cachemgr.cc \ |
5b88dc7a AJ |
64 | stub_debug.cc \ |
65 | test_tools.cc \ | |
66 | time.cc | |
82b7abe3 | 67 | |
bbfff290 | 68 | cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS) |
94ab55b0 | 69 | |
618249f5 | 70 | EXTRA_DIST += cachemgr.conf cachemgr.cgi.8 cachemgr.cgi.8.in |
473d1237 AJ |
71 | CLEANFILES += cachemgr.cgi.8 |
72 | man_MANS += cachemgr.cgi.8 | |
73 | ||
74 | cachemgr.cgi.8: $(srcdir)/cachemgr.cgi.8.in Makefile | |
75 | $(SUBSTITUTE) < $(srcdir)/cachemgr.cgi.8.in > $@ | |
76 | ||
94ab55b0 | 77 | |
94ab55b0 | 78 | |
473d1237 | 79 | ## Shared |
94ab55b0 | 80 | |
0b62f0f7 | 81 | install-data-local: |
f884870a | 82 | $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default |
94ab55b0 | 83 | @if test -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) ; then \ |
84 | echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)" ; \ | |
85 | else \ | |
86 | echo "$(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG)"; \ | |
87 | $(INSTALL_DATA) $(srcdir)/cachemgr.conf $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG); \ | |
88 | fi | |
89 | ||
90 | uninstall-local: | |
9e2ea0ce | 91 | @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG) |
e2b88def | 92 | $(RM) -f $(DESTDIR)$(DEFAULT_CACHEMGR_CONFIG).default |