]> git.ipfire.org Git - thirdparty/squid.git/blob - src/Common.am
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / Common.am
1 ## Copyright (C) 1996-2018 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
8 ## Settings common to many Squid Makefiles
9
10 ## This file should be included first in all src/subdir/Makefile.am
11 ## so it must not contain stuff specific to or bad for some subdirectories.
12
13 ## Default variables
14 DEFAULT_HTTP_PORT = 3128
15 DEFAULT_ICP_PORT = 3130
16 DEFAULT_PREFIX = $(prefix)
17 DEFAULT_CONFIG_DIR = $(sysconfdir)
18 DEFAULT_CONFIG_FILE = $(DEFAULT_CONFIG_DIR)/squid.conf
19 DEFAULT_MIME_TABLE = $(DEFAULT_CONFIG_DIR)/mime.conf
20 DEFAULT_SSL_CRTD = $(libexecdir)/`echo security_file_certgen | sed '$(transform);s/$$/$(EXEEXT)/'`
21 DEFAULT_LOG_PREFIX = $(DEFAULT_LOG_DIR)
22 DEFAULT_CACHE_LOG = $(DEFAULT_LOG_PREFIX)/cache.log
23 DEFAULT_ACCESS_LOG = $(DEFAULT_LOG_PREFIX)/access.log
24 DEFAULT_STORE_LOG = $(DEFAULT_LOG_PREFIX)/store.log
25 DEFAULT_NETDB_FILE = $(DEFAULT_SWAP_DIR)/netdb.state
26 DEFAULT_SSL_DB_DIR = $(DEFAULT_SWAP_DIR)/ssl_db
27 DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
28 DEFAULT_UNLINKD = $(libexecdir)/`echo unlinkd | sed '$(transform);s/$$/$(EXEEXT)/'`
29 DEFAULT_LOGFILED = $(libexecdir)/`echo log_file_daemon | sed '$(transform);s/$$/$(EXEEXT)/'`
30 DEFAULT_DISKD = $(libexecdir)/`echo diskd | sed '$(transform);s/$$/$(EXEEXT)/'`
31 DEFAULT_ICON_DIR = $(datadir)/icons
32 DEFAULT_ERROR_DIR = $(datadir)/errors
33
34 ## TODO: make this set by configure?
35 AM_CFLAGS = $(SQUID_CFLAGS)
36 AM_CXXFLAGS = $(SQUID_CXXFLAGS)
37 DEFS = @DEFS@
38
39 ## so that others can always use += for these variables
40 CLEANFILES =
41 check_PROGRAMS =
42 TESTS =
43
44 AM_CPPFLAGS = \
45 -I$(top_srcdir) \
46 -I$(top_srcdir)/include \
47 -I$(top_srcdir)/lib \
48 -I$(top_srcdir)/src \
49 -I$(top_builddir)/include \
50 $(LIBCPPUNIT_CFLAGS)
51
52 ## Kerberos headers require their include path.
53 ## Because we use libcompat for comm_err.h header protections ...
54 AM_CPPFLAGS += $(KRB5INCS)
55
56 ## Loadable Modules requires LTDL include paths.
57 ## Because we need this to use the libray linking headers...
58 if ENABLE_LOADABLE_MODULES
59 AM_CPPFLAGS += $(INCLTDL)
60 endif
61
62 ## make all compiled sources depend on generated files
63 ## XXX: Do we really need this? Does auto-dependency tracking work?
64 $(OBJS): $(top_srcdir)/include/version.h $(top_builddir)/include/autoconf.h
65
66 ## Internal profiler is used even by some of the compat library stuff.
67 if ENABLE_XPROF_STATS
68 LIBPROFILER = $(top_builddir)/lib/profiler/libprofiler.la
69 else
70 LIBPROFILER=
71 endif
72
73 ## Because compatibility is almost universal. And the link order is important.
74 COMPAT_LIB = $(top_builddir)/compat/libcompatsquid.la $(LIBPROFILER)
75
76 ## Some helpers are written in Perl and need the local shell defined properly
77 subst_perlshell = sed -e 's,[@]PERL[@],$(PERL),g' <$(srcdir)/$@.pl.in >$@ || ($(RM) -f $@ ; exit 1)