Commit | Line | Data |
---|---|---|
593cc780 | 1 | # $Cambridge: exim/src/OS/Makefile-Default,v 1.5 2009/10/16 07:30:54 tom Exp $ |
61ec970d PH |
2 | |
3 | ################################################## | |
4 | # The Exim mail transport agent # | |
5 | ################################################## | |
6 | ||
7 | # Generic default make file containing settings that relate to the OS or | |
8 | # to selectable features within the OS. The configuration options for Exim | |
9 | # itself live in Local/Makefile, which is constructed by editing src/EDITME. | |
10 | ||
11 | # These settings are basic defaults which may be overridden, either by the | |
12 | # generic OS-specific files, or by site-specific files. Do not edit this file. | |
13 | # Instead, edit or create suitable OS-specific and/or site specific files. | |
14 | # See the manual for details. | |
15 | ||
16 | ||
17 | # MAKE_SHELL contains the name of the shell to be used for executing commands | |
18 | # from the make files. Normally /bin/sh should be used. | |
19 | ||
20 | MAKE_SHELL=/bin/sh | |
21 | ||
22 | ||
23 | # BASENAME_COMMAND contains the path to the "basename" command, which varies | |
24 | # from OS to OS. This is used when building the Exim monitor script only. (See | |
25 | # also HOSTNAME_COMMAND.) If BASENAME_COMMAND is set to "look_for_it" then the | |
26 | # script checks for /usr/bin/basename and /bin/basename, and if neither is | |
27 | # found, it uses /usr/ucb/basename. This copes with Solaris 2 and Linux, both | |
28 | # of which come in different versions. | |
29 | ||
30 | BASENAME_COMMAND=/usr/bin/basename | |
31 | ||
32 | ||
33 | # If you set STRIP_COMMAND to the path of the "strip" command, it will be run | |
34 | # on every binary that is built. It is left unset by default, which leaves | |
35 | # the binaries unstripped. | |
36 | ||
37 | # STRIP_COMMAND=/usr/bin/strip | |
38 | ||
39 | ||
40 | # Some of the following commands live in different places in different OS. We | |
41 | # include them all here for generality. | |
42 | ||
43 | CHOWN_COMMAND=/usr/bin/chown | |
44 | CHGRP_COMMAND=/usr/bin/chgrp | |
79c30dc9 | 45 | CHMOD_COMMAND=/usr/bin/chmod |
61ec970d PH |
46 | MV_COMMAND=/bin/mv |
47 | RM_COMMAND=/bin/rm | |
79c30dc9 | 48 | TOUCH_COMMAND=/usr/bin/touch |
61ec970d PH |
49 | |
50 | ||
51 | # Some operating systems have different ways of building libraries of | |
52 | # functions. This macro defines the command to do this, defaulting to | |
53 | # the "ar" command with options "cq". | |
54 | ||
55 | AR=ar cq | |
56 | ||
57 | ||
58 | # Not all operating systems have the iconv() function. Those that do have | |
59 | # | |
60 | # HAVE_ICONV=yes | |
61 | # | |
62 | # in their OS-specific Makefiles. On those that don't it is possible to | |
63 | # install an independent implementation of iconv(). If you've done this, | |
64 | # add "HAVE_ICONV=yes" to your Local/Makefile. | |
65 | ||
66 | ||
67 | # Perl is not necessary for running Exim itself, except when EXIM_PERL | |
68 | # is set to cause Perl embedding. However, some Perl utilities are provided | |
69 | # for processing the logs. Perl 5 is assumed. | |
70 | ||
71 | PERL_COMMAND=/usr/bin/perl | |
72 | ||
73 | ||
74 | # CC contains the name of the C compiler to be used. | |
75 | ||
76 | CC=gcc | |
77 | ||
78 | ||
79 | # CFLAGS contains flags to be passed to the compiler. Nothing is defaulted | |
80 | # here; instead each OS-dependent Makefile contains a default setting. | |
81 | ||
82 | # CFLAGS=-O | |
83 | ||
84 | ||
85 | # LFLAGS contains flags to be passed to the link editor. Nothing is defaulted | |
86 | # here; instead each OS-dependent Makefile contains a default setting if one | |
87 | # is needed. | |
88 | ||
89 | # LFLAGS= | |
90 | ||
91 | ||
8eb9f5bd NM |
92 | # PCRE_LIBS contains the library to be linked for PCRE |
93 | ||
593cc780 | 94 | PCRE_LIBS=-lpcre |
8eb9f5bd NM |
95 | |
96 | ||
61ec970d PH |
97 | # LIBS and EXTRALIBS contain library settings that are used on linking |
98 | # commands to build binaries. The OS-dependent Makefile may contain a default | |
99 | # setting for LIBS, leaving EXTRALIBS available for adding further libraries | |
100 | # that are required for optional extras. | |
101 | ||
102 | # LIBS= | |
103 | # EXTRALIBS= | |
104 | ||
105 | ||
106 | # LIBS_EXIM and EXTRALIBS_EXIM contain library settings that are used | |
107 | # only when linking the Exim binary. They are not used for other binaries. | |
108 | # One possible use is for the TCP wrappers library. | |
109 | ||
110 | # LIBS_EXIM= | |
111 | # EXTRALIBS_EXIM= | |
112 | ||
113 | ||
114 | # LIBS_EXIMON and EXTRALIBS_EXIMON contain library settings that are | |
115 | # used only when linking the Exim monitor binary. They are not used for | |
116 | # other binaries. | |
117 | ||
118 | # LIBS_EXIMON= | |
119 | # EXTRALIBS_EXIMON= | |
120 | ||
121 | ||
61ec970d PH |
122 | # The error name for quota exceeded varies among operating systems, and |
123 | # even, unfortunately, in different versions of the same operating system. | |
124 | # EDQUOT was not in Sys V, but is in SPEC 1170, apparently. It was used | |
125 | # in SunOS4, but got taken out for SunOS5, where ENOSPC was given if a quota | |
126 | # was exceeded. However, it got put back into SunOS5 with a patch to 5.4 in | |
127 | # order to comply with SPEC 1170. Thus even different patch levels of the same | |
128 | # system (SunOS5) may use different numbers. | |
129 | # | |
130 | # If you don't have quotas or are not interested in handling quota errors | |
131 | # specially, just set this variable to 0. If it is not set, it defaults to | |
132 | # EDQUOT if that is defined for the OS; otherwise it defaults to ENOSPC. | |
133 | ||
134 | # ERRNO_QUOTA=EDQUOT | |
135 | ||
136 | ||
137 | # The exiwhat utility script finds all the processes running Exim, and sends | |
138 | # them a SIGUSR1 signal to get them to write their status to a file. There are | |
139 | # two ways in which this can be done: | |
140 | # | |
141 | # (1) If the OS has a command to find processes and signal them, that can be | |
142 | # used. Linux has "killall"; Solaris has "pkill". (Note: "killall" on Solaris | |
143 | # does something very different - and disastrous.) The following are set in the | |
144 | # OS-specific Makefiles for those OS where this can be done: | |
145 | ||
146 | # EXIWHAT_MULTIKILL_CMD= | |
147 | # EXIWHAT_MULTIKILL_ARG= | |
148 | ||
149 | # (2) For other operating systems, exiwhat calls the ps command and egreps the | |
150 | # output in order to find all the processes running Exim. The arguments for the | |
151 | # various commands needed to do this vary from OS to OS. These defaults work on | |
152 | # Solaris 2, HPUX, and IRIX. The OS-specific Makefiles have different versions | |
153 | # for other systems, and you can override with your own requirements in your | |
154 | # private Makefiles in the Local directory. The most commonly found | |
155 | # alternatives are -ax instead of -e for the ps argument, and / instead of a | |
156 | # blank before the name exim for the egrep argument on systems whose ps output | |
157 | # shows the full path name. The quotes for the egrep argument are specified | |
158 | # here so that leading white space can be used. This value should always be | |
159 | # given in single quotes. | |
160 | ||
161 | EXIWHAT_PS_CMD=/bin/ps | |
162 | EXIWHAT_PS_ARG=-e | |
163 | EXIWHAT_EGREP_ARG=' exim( |$$|-)' | |
164 | ||
165 | # For both kinds of exiwhat usage, the next setting specifies the signal that | |
166 | # is sent. | |
167 | ||
168 | EXIWHAT_KILL_SIGNAL=-USR1 | |
169 | ||
170 | ||
e37dcd35 PH |
171 | # IPv6 is gradually spreading more and more widely. Most operating systems seem |
172 | # to support it nowadays. If you set this option, IPv6 support will be included | |
173 | # in the Exim binary. As well as the basic enabling option, there are | |
174 | # parameters for include and library directories that may be needed for IPv6 on | |
175 | # some systems, where the support is not yet in the standard library. | |
61ec970d PH |
176 | |
177 | # HAVE_IPV6=YES | |
178 | # IPV6_INCLUDE=-I /usr/ipv6/include | |
179 | # IPV6_LIBS=-L/usr/ipv6/libs -linet6 | |
180 | ||
61ec970d PH |
181 | # Exim uses the function getaddrinfo() for converting IPv6 addresses in text |
182 | # form to binary. Apparently some operating systems do not support this, or not | |
183 | # correctly, and require the use of the function inet_pton() instead. The | |
184 | # following setting enables this. Note, however, the inet_pton() has reduced | |
185 | # functionality compared with getaddrinfo(). In particular, it does not | |
186 | # recognize the percent convention for identifying scopes (interfaces) that is | |
187 | # used by some operating systems. | |
188 | ||
189 | # IPV6_USE_INET_PTON=yes | |
190 | ||
e37dcd35 PH |
191 | # Setting the next option brings in support for A6 DNS records for IPV6. These |
192 | # were at one time expected to supplant AAAA records, but were eventually | |
193 | # rejected. The code remains in Exim, but has not been compiled or tested for | |
194 | # quite some time. Do not set this unless you know what you are doing. | |
195 | ||
196 | # SUPPORT_A6=yes | |
197 | ||
61ec970d PH |
198 | |
199 | # HOSTNAME_COMMAND contains the path to the "hostname" command, which varies | |
200 | # from OS to OS. This is used when building the Exim monitor script only. (See | |
201 | # also BASENAME_COMMAND.) If HOSTNAME_COMMAND is set to "look_for_it" then the | |
202 | # script checks for /usr/bin/hostname and /bin/hostname, and if neither is | |
203 | # found, it uses /usr/ucb/basename. This copes with Solaris 2, which comes in | |
204 | # different versions. | |
205 | ||
206 | HOSTNAME_COMMAND=/bin/hostname | |
207 | ||
208 | ||
209 | # INCLUDE contains arbitrary include parameters that you may need to use | |
210 | # when building exim. It is added to every compile command. | |
211 | ||
212 | # INCLUDE=-I /some/special/include-directory | |
213 | ||
214 | ||
215 | # Some OS require a separate library to be quoted when linking programs that | |
216 | # call name resolver functions. This can be set in LIBRESOLV, which is left | |
217 | # unset here, but is set is some of the OS-specific Makefiles. | |
218 | ||
219 | # LIBRESOLV= | |
220 | ||
221 | ||
222 | # Additional libraries and include directories may be required for some | |
223 | # lookup styles, e.g. LDAP or SQL. LOOKUP_LIBS is included only on the | |
224 | # command for linking Exim itself, not on any auxiliary programs. You | |
225 | # don't need to set LOOKUP_INCLUDE if the relevant directories are already | |
226 | # specified in INCLUDE. | |
227 | ||
228 | # LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/sql/include | |
229 | # LOOKUP_LIBS=-L/usr/local/lib -lldap -llber | |
230 | ||
231 | ||
232 | # RANLIB should be set to something that does nothing on systems that do not | |
233 | # have the ranlib command or do not need to run it on library files. | |
234 | ||
235 | RANLIB=ranlib | |
236 | ||
237 | ||
238 | # EXIM_CHMOD is available to specify a command that is automatically applied | |
239 | # to the Exim binary immediately it is compiled. (I find this useful when | |
240 | # building test versions.) | |
241 | ||
242 | EXIM_CHMOD=@true | |
243 | ||
244 | ||
245 | # LOCAL_SCAN_SOURCE defines the file in which the function local_scan() is | |
246 | # defined. This provides the administrator with a hook for including C code | |
247 | # for scanning incoming mails. The path that is defined must be relative to | |
248 | # the Exim distribution directory. For example | |
249 | ||
250 | # LOCAL_SCAN_SOURCE=Local/local_scan.c | |
251 | ||
252 | # The default setting points to a template function that doesn't actually do | |
253 | # any scanning, but just accepts the message. | |
254 | ||
255 | LOCAL_SCAN_SOURCE=src/local_scan.c | |
256 | ||
257 | # If you want to specify options for your local_scan() that can be set from | |
258 | # the main Exim configuration file, you need to uncomment the following line, | |
259 | # and then provide a table of options in your local_scan() source, as described | |
260 | # in the reference manual. | |
261 | ||
262 | # LOCAL_SCAN_HAS_OPTIONS=yes | |
263 | ||
264 | ||
265 | ############################################################################# | |
266 | # The following are all concerned with configuring the way Exim handles its | |
267 | # database (hints) and other dbm files. | |
268 | ||
269 | # Some systems require a separate library to be supplied when linking programs | |
270 | # that make use of DBM library calls. This can be set in DBMLIB, which is unset | |
271 | # by default, but is set in some of the OS-specific Makefiles. Setting it in | |
272 | # your Local/Makefile will override any other setting. | |
273 | ||
274 | # DBMLIB= | |
275 | ||
276 | ||
277 | # When Exim is attempting to lock one of its database (hints) files, it | |
278 | # applies a timeout which can be altered here. | |
279 | ||
280 | # EXIMDB_LOCK_TIMEOUT=60 | |
281 | ||
282 | ||
283 | # By default, Exim uses traditional ndbm function calls to handle its indexed | |
284 | # hints databases. On systems that have Berkeley db installed, this still | |
285 | # works via the compatibility interface. However, by defining USE_DB you can | |
286 | # make it use native db function calls. | |
287 | ||
288 | # USE_DB=YES | |
289 | ||
290 | # Similarly, if you are using gdbm, Exim will by default use the ndbm | |
291 | # compatibility interface. However, by defining USE_GDBM you can make it | |
292 | # use the native gdbm function calls. | |
293 | ||
294 | # USE_GDBM=YES | |
295 | ||
296 | ||
297 | ############################################################################# | |
298 | # The following definitions are relevant only when compiling the Exim monitor | |
299 | # program, which requires an X11 display. See the varible EXIM_MONITOR in | |
300 | # src/EDITME for how to suppress this compilation. | |
301 | ||
302 | # X11 contains the location of the X11 libraries and include files. | |
303 | ||
304 | X11=/usr/X11R6 | |
305 | ||
306 | # XINCLUDE contains options for header inclusion when compiling functions | |
307 | # that call X11 functions. | |
308 | ||
309 | XINCLUDE=-I$(X11)/include | |
310 | ||
311 | # XLFLAGS contains flags to be passed to the linker when linking the monitor. | |
312 | ||
313 | XLFLAGS=-L$(X11)/lib | |
314 | ||
315 | # X11_LD_LIB contains the name of the X11 library that is to be added to | |
316 | # LD_LIBRARY_PATH when running the monitor program. | |
317 | ||
318 | X11_LD_LIB=$(X11)/lib | |
319 | ||
320 | # A modified version of the Athena TextPop module is supplied with Exim. The | |
321 | # modification is to remove the "replace" part of the "search and replace" | |
322 | # operation because it isn't wanted. TextPop is only one of a number of | |
323 | # modules that make up the Text widget. Some antique link editors cannot handle | |
324 | # the case of a replacement module for one of a set of modules. To allow | |
325 | # the monitor to be linked in such cases, set the value of EXIMON_TEXTPOP | |
326 | # to be empty. The search operations will then contain a useless "replace" | |
327 | # option, which is untidy, but does no harm. | |
328 | ||
329 | EXIMON_TEXTPOP=em_TextPop.o | |
330 | ||
331 | # End |