1 ##################################################
2 # The Exim mail transport agent #
3 ##################################################
5 # Copyright (c) The Exim Maintainers 2022
6 # SPDX-License-Identifier: GPL-2.0-or-later
8 # Generic default make file containing settings that relate to the OS or
9 # to selectable features within the OS. The configuration options for Exim
10 # itself live in Local/Makefile, which is constructed by editing src/EDITME.
12 # These settings are basic defaults which may be overridden, either by the
13 # generic OS-specific files, or by site-specific files. Do not edit this file.
14 # Instead, edit or create suitable OS-specific and/or site specific files.
15 # See the manual for details.
18 # MAKE_SHELL contains the name of the shell to be used for executing commands
19 # from the make files. Normally /bin/sh should be used.
24 # BASENAME_COMMAND contains the path to the "basename" command, which varies
25 # from OS to OS. This is used when building the Exim monitor script only. (See
26 # also HOSTNAME_COMMAND.) If BASENAME_COMMAND is set to "look_for_it" then the
27 # script checks for /usr/bin/basename and /bin/basename, and if neither is
28 # found, it uses /usr/ucb/basename. This copes with Solaris 2 and Linux, both
29 # of which come in different versions.
31 BASENAME_COMMAND=/usr/bin/basename
34 # If you set STRIP_COMMAND to the path of the "strip" command, it will be run
35 # on every binary that is built. It is left unset by default, which leaves
36 # the binaries unstripped.
38 # STRIP_COMMAND=/usr/bin/strip
41 # Some of the following commands live in different places in different OS. We
42 # include them all here for generality.
44 CHOWN_COMMAND=/usr/bin/chown
45 CHGRP_COMMAND=/usr/bin/chgrp
46 CHMOD_COMMAND=/usr/bin/chmod
49 TOUCH_COMMAND=/usr/bin/touch
52 # Some operating systems have different ways of building libraries of
53 # functions. This macro defines the command to do this, defaulting to
54 # the "ar" command with options "cq".
59 # Not all operating systems have the iconv() function. Those that do have
63 # in their OS-specific Makefiles. On those that don't it is possible to
64 # install an independent implementation of iconv(). If you've done this,
65 # add "HAVE_ICONV=yes" to your Local/Makefile.
68 # Perl is not necessary for running Exim itself, except when EXIM_PERL
69 # is set to cause Perl embedding. However, some Perl utilities are provided
70 # for processing the logs. Perl 5 is assumed.
72 PERL_COMMAND=/usr/bin/perl
75 # CC contains the name of the C compiler to be used.
80 # CFLAGS contains flags to be passed to the compiler. Nothing is defaulted
81 # here; instead each OS-dependent Makefile contains a default setting.
86 # LFLAGS contains flags to be passed to the link editor. Nothing is defaulted
87 # here; instead each OS-dependent Makefile contains a default setting if one
93 # PCRE_LIBS contains the library to be linked for PCRE
98 # LIBS and EXTRALIBS contain library settings that are used on linking
99 # commands to build binaries. The OS-dependent Makefile may contain a default
100 # setting for LIBS, leaving EXTRALIBS available for adding further libraries
101 # that are required for optional extras.
107 # LIBS_EXIM and EXTRALIBS_EXIM contain library settings that are used
108 # only when linking the Exim binary. They are not used for other binaries.
109 # One possible use is for the TCP wrappers library.
115 # LIBS_EXIMON and EXTRALIBS_EXIMON contain library settings that are
116 # used only when linking the Exim monitor binary. They are not used for
123 # The error name for quota exceeded varies among operating systems, and
124 # even, unfortunately, in different versions of the same operating system.
125 # EDQUOT was not in Sys V, but is in SPEC 1170, apparently. It was used
126 # in SunOS4, but got taken out for SunOS5, where ENOSPC was given if a quota
127 # was exceeded. However, it got put back into SunOS5 with a patch to 5.4 in
128 # order to comply with SPEC 1170. Thus even different patch levels of the same
129 # system (SunOS5) may use different numbers.
131 # If you don't have quotas or are not interested in handling quota errors
132 # specially, just set this variable to 0. If it is not set, it defaults to
133 # EDQUOT if that is defined for the OS; otherwise it defaults to ENOSPC.
138 # The exiwhat utility script finds all the processes running Exim, and sends
139 # them a SIGUSR1 signal to get them to write their status to a file. There are
140 # two ways in which this can be done:
142 # (1) If the OS has a command to find processes and signal them, that can be
143 # used. Linux has "killall"; Solaris has "pkill". (Note: "killall" on Solaris
144 # does something very different - and disastrous.) The following are set in the
145 # OS-specific Makefiles for those OS where this can be done:
147 # EXIWHAT_MULTIKILL_CMD=
148 # EXIWHAT_MULTIKILL_ARG=
150 # (2) For other operating systems, exiwhat calls the ps command and greps the
151 # output in order to find all the processes running Exim. The arguments for the
152 # various commands needed to do this vary from OS to OS. These defaults work on
153 # Solaris 2, HPUX, and IRIX. The OS-specific Makefiles have different versions
154 # for other systems, and you can override with your own requirements in your
155 # private Makefiles in the Local directory. The most commonly found
156 # alternatives are -ax instead of -e for the ps argument, and / instead of a
157 # blank before the name exim for the grep argument on systems whose ps output
158 # shows the full path name. The quotes for the grep argument are specified
159 # here so that leading white space can be used. This value should always be
160 # given in single quotes.
162 EXIWHAT_PS_CMD=/bin/ps
164 EXIWHAT_EGREP_ARG=' exim( |$$|-)'
166 # For both kinds of exiwhat usage, the next setting specifies the signal that
169 EXIWHAT_KILL_SIGNAL=-USR1
172 # IPv6 is gradually spreading more and more widely. Most operating systems seem
173 # to support it nowadays. If you set this option, IPv6 support will be included
174 # in the Exim binary. As well as the basic enabling option, there are
175 # parameters for include and library directories that may be needed for IPv6 on
176 # some systems, where the support is not yet in the standard library.
179 # IPV6_INCLUDE=-I /usr/ipv6/include
180 # IPV6_LIBS=-L/usr/ipv6/libs -linet6
182 # Exim uses the function getaddrinfo() for converting IPv6 addresses in text
183 # form to binary. Apparently some operating systems do not support this, or not
184 # correctly, and require the use of the function inet_pton() instead. The
185 # following setting enables this. Note, however, the inet_pton() has reduced
186 # functionality compared with getaddrinfo(). In particular, it does not
187 # recognize the percent convention for identifying scopes (interfaces) that is
188 # used by some operating systems.
190 # IPV6_USE_INET_PTON=yes
192 # HOSTNAME_COMMAND contains the path to the "hostname" command, which varies
193 # from OS to OS. This is used when building the Exim monitor script only. (See
194 # also BASENAME_COMMAND.) If HOSTNAME_COMMAND is set to "look_for_it" then the
195 # script checks for /usr/bin/hostname and /bin/hostname, and if neither is
196 # found, it uses /usr/ucb/basename. This copes with Solaris 2, which comes in
197 # different versions.
199 HOSTNAME_COMMAND=/bin/hostname
202 # INCLUDE contains arbitrary include parameters that you may need to use
203 # when building exim. It is added to every compile command.
205 # INCLUDE=-I /some/special/include-directory
208 # Some OS require a separate library to be quoted when linking programs that
209 # call name resolver functions. This can be set in LIBRESOLV, which is left
210 # unset here, but is set is some of the OS-specific Makefiles.
215 # Additional libraries and include directories may be required for some
216 # lookup styles, e.g. LDAP or SQL. LOOKUP_LIBS is included only on the
217 # command for linking Exim itself, not on any auxiliary programs. You
218 # don't need to set LOOKUP_INCLUDE if the relevant directories are already
219 # specified in INCLUDE.
221 # LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/sql/include
222 # LOOKUP_LIBS=-L/usr/local/lib -lldap -llber
225 # RANLIB should be set to something that does nothing on systems that do not
226 # have the ranlib command or do not need to run it on library files.
231 # EXIM_CHMOD is available to specify a command that is automatically applied
232 # to the Exim binary immediately it is compiled. (I find this useful when
233 # building test versions.)
238 # If you want to use local_scan() at all, the support code must be included
239 # by uncommenting this line.
241 # HAVE_LOCAL_SCAN=yes
243 # LOCAL_SCAN_SOURCE defines the file in which the function local_scan() is
244 # defined. This provides the administrator with a hook for including C code
245 # for scanning incoming mails. The path that is defined must be relative to
246 # the Exim distribution directory. For example
248 # LOCAL_SCAN_SOURCE=Local/local_scan.c
250 # A very simple example points to a template function that doesn't actually do
251 # any scanning, but just accepts the message. A compilable file must be
252 # included in the build even if HAVE_LOCAL_SCAN is not defined.
254 LOCAL_SCAN_SOURCE=src/local_scan.c
256 # If you want to specify options for your local_scan() that can be set from
257 # the main Exim configuration file, you need to uncomment the following line,
258 # and then provide a table of options in your local_scan() source, as described
259 # in the reference manual.
261 # LOCAL_SCAN_HAS_OPTIONS=yes
264 #############################################################################
265 # The following are all concerned with configuring the way Exim handles its
266 # database (hints) and other dbm files.
268 # Some systems require a separate library to be supplied when linking programs
269 # that make use of DBM library calls. This can be set in DBMLIB, which is unset
270 # by default, but is set in some of the OS-specific Makefiles. Setting it in
271 # your Local/Makefile will override any other setting.
276 # When Exim is attempting to lock one of its database (hints) files, it
277 # applies a timeout which can be altered here.
279 # EXIMDB_LOCK_TIMEOUT=60
282 # By default, Exim uses traditional ndbm function calls to handle its indexed
283 # hints databases. On systems that have Berkeley db installed, this still
284 # works via the compatibility interface. However, by defining USE_DB you can
285 # make it use native db function calls.
289 # Similarly, if you are using gdbm, Exim will by default use the ndbm
290 # compatibility interface. However, by defining USE_GDBM you can make it
291 # use the native gdbm function calls.
296 #############################################################################
297 # The following definitions are relevant only when compiling the Exim monitor
298 # program, which requires an X11 display. See the variable EXIM_MONITOR in
299 # src/EDITME for how to suppress this compilation.
301 # X11 contains the location of the X11 libraries and include files.
305 # XINCLUDE contains options for header inclusion when compiling functions
306 # that call X11 functions.
308 XINCLUDE=-I$(X11)/include
310 # XLFLAGS contains flags to be passed to the linker when linking the monitor.
314 # X11_LD_LIB contains the name of the X11 library that is to be added to
315 # LD_LIBRARY_PATH when running the monitor program.
317 X11_LD_LIB=$(X11)/lib
319 # A modified version of the Athena TextPop module is supplied with Exim. The
320 # modification is to remove the "replace" part of the "search and replace"
321 # operation because it isn't wanted. TextPop is only one of a number of
322 # modules that make up the Text widget. Some antique link editors cannot handle
323 # the case of a replacement module for one of a set of modules. To allow
324 # the monitor to be linked in such cases, set the value of EXIMON_TEXTPOP
325 # to be empty. The search operations will then contain a useless "replace"
326 # option, which is untidy, but does no harm.
328 EXIMON_TEXTPOP=em_TextPop.o