]>
Commit | Line | Data |
---|---|---|
f70aedc4 | 1 | ## Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
bbc27441 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 | ## | |
7 | ||
a2197d3a | 8 | ## Settings common to many Squid Makefiles |
4fcc4dab | 9 | |
a2197d3a AR |
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. | |
4fcc4dab | 12 | |
778bed98 MM |
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 | ||
a2197d3a | 34 | ## TODO: make this set by configure? |
ee9215a4 AJ |
35 | AM_CFLAGS = $(SQUID_CFLAGS) |
36 | AM_CXXFLAGS = $(SQUID_CXXFLAGS) | |
4fcc4dab AR |
37 | DEFS = @DEFS@ |
38 | ||
23cf13da AJ |
39 | # Make ./configure location settings above available to the code |
40 | DEFS += -DDEFAULT_CONFIG_FILE=\"$(DEFAULT_CONFIG_FILE)\" \ | |
41 | -DDEFAULT_SQUID_DATA_DIR=\"$(datadir)\" \ | |
42 | -DDEFAULT_SQUID_CONFIG_DIR=\"$(sysconfdir)\" | |
43 | ||
a2197d3a | 44 | ## so that others can always use += for these variables |
4fcc4dab | 45 | CLEANFILES = |
fe57027d AR |
46 | check_PROGRAMS = |
47 | TESTS = | |
4fcc4dab | 48 | |
01a1acbc | 49 | AM_CPPFLAGS = \ |
4fcc4dab AR |
50 | -I$(top_srcdir) \ |
51 | -I$(top_srcdir)/include \ | |
25f98340 | 52 | -I$(top_srcdir)/lib \ |
4fcc4dab | 53 | -I$(top_srcdir)/src \ |
ef7513ff | 54 | -I$(top_builddir)/include \ |
d93bf055 | 55 | $(LIBCPPUNIT_CFLAGS) |
4fcc4dab | 56 | |
a53ea9b8 AJ |
57 | ## Kerberos headers require their include path. |
58 | ## Because we use libcompat for comm_err.h header protections ... | |
01a1acbc | 59 | AM_CPPFLAGS += $(KRB5INCS) |
a53ea9b8 | 60 | |
064d26a2 AJ |
61 | ## Loadable Modules requires LTDL include paths. |
62 | ## Because we need this to use the libray linking headers... | |
cb5569cd | 63 | if ENABLE_LOADABLE_MODULES |
01a1acbc | 64 | AM_CPPFLAGS += $(INCLTDL) |
064d26a2 AJ |
65 | endif |
66 | ||
a2197d3a AR |
67 | ## make all compiled sources depend on generated files |
68 | ## XXX: Do we really need this? Does auto-dependency tracking work? | |
ef7513ff | 69 | $(OBJS): $(top_srcdir)/include/version.h $(top_builddir)/include/autoconf.h |
90e7860e | 70 | |
1b6ba7c8 | 71 | ## Because compatibility is almost universal. And the link order is important. |
ca3a08e2 | 72 | COMPAT_LIB = $(top_builddir)/compat/libcompatsquid.la $(LIBPROFILER) |
c2cf387f AJ |
73 | |
74 | ## Some helpers are written in Perl and need the local shell defined properly | |
0dfa283b | 75 | subst_perlshell = sed -e 's,[@]PERL[@],$(PERL),g' <$(srcdir)/$@.pl.in >$@ || ($(RM) -f $@ ; exit 1) |