1<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" 2 "https://www.w3.org/TR/html4/loose.dtd"> 3<html> <head> 4<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 5<link rel='stylesheet' type='text/css' href='postfix-doc.css'> 6<title> Postfix manual - makedefs(1) </title> 7</head> <body> <pre> 8MAKEDEFS(1) MAKEDEFS(1) 9 10<b><a name="name">NAME</a></b> 11 makedefs - Postfix makefile configuration utility 12 13<b><a name="synopsis">SYNOPSIS</a></b> 14 <b>make makefiles</b> <i>name=value...</i> 15 16<b><a name="description">DESCRIPTION</a></b> 17 The <b>makedefs</b> command identifies the compilation environment, and emits 18 macro definitions on the standard output stream that can be prepended 19 to template Makefiles. These macros implement an internal interface 20 and are subject to change without notice. 21 22<b>NAME=VALUE OVERRIDES</b> 23 Default settings can be overruled by specifying them as environment 24 variables (or as name=value pairs on the "make" command line). Use 25 quotes if variables contain whitespace or shell meta characters. 26 27 The command "<b>make makefiles name=value...</b>" will replace the string 28 <b>MAIL_VERSION</b> at the end of a value with the Postfix version 29 (<i>major.minor.patchlevel</i> for a stable release, <i>major.minor-date</i> for a 30 development release). Do not try to specify something like <b>$<a href="postconf.5.html#mail_version">mail_ver</a>-</b> 31 <b><a href="postconf.5.html#mail_version">sion</a></b>: that produces inconsistent results with different implementations 32 of the make(1) command. 33 34 <b>AUXLIBS=</b><i>object</i><b>_</b><i>library...</i> 35 Specifies one or more non-default object libraries. Postfix 3.0 36 and later specify some of their database library dependencies 37 with <a href="CDB_README.html">AUXLIBS_CDB</a>, <a href="LDAP_README.html">AUXLIBS_LDAP</a>, <a href="LMDB_README.html">AUXLIBS_LMDB</a>, <a href="MONGODB_README.html">AUXLIBS_MONGODB</a>, 38 <a href="MYSQL_README.html">AUXLIBS_MYSQL</a>, <a href="PCRE_README.html">AUXLIBS_PCRE</a>, <a href="PGSQL_README.html">AUXLIBS_PGSQL</a>, AUXLIBS_SDBM, and 39 <a href="SQLITE_README.html">AUXLIBS_SQLITE</a>, respectively. 40 41 <b>CC=</b><i>compiler</i><b>_</b><i>command</i> 42 Specifies a non-default compiler. On many systems, the default 43 is <b>gcc</b>. 44 45 <b>CCARGS=</b><i>compiler</i><b>_</b><i>arguments</i> 46 Specifies non-default compiler arguments, for example, a 47 non-default <i>include</i> directory. The following directives are 48 special: 49 50 <b>-DNO_CLOSEFROM</b> 51 Do not use the system closefom() implementation. 52 53 <b>-DNO_DB</b> 54 Do not build with Berkeley DB support. 55 56 <b>-DNO_DEVPOLL</b> 57 Do not build with Solaris /dev/poll support. By default, 58 /dev/poll support is compiled in on platforms that are 59 known to support it. 60 61 <b>-DNO_DNSSEC</b> 62 Do not build with DNSSEC support, even if the resolver 63 library appears to support it. 64 65 <b>-DNO_EPOLL</b> 66 Do not build with Linux EPOLL support. By default, EPOLL 67 support is compiled in on platforms that are known to 68 support it. 69 70 <b>-DNO_EAI</b> 71 Do not build with EAI (SMTPUTF8) support. By default, EAI 72 support is compiled in when the "pkgconf" or "pkg-config" 73 command are found, or the deprecated "icu-config" com- 74 mand. 75 76 <b>-DNO_INLINE</b> 77 Do not require support for C99 "inline" functions. 78 Instead, implement argument typechecks for 79 non-(printf/scanf)-like functions with ternary operators 80 and unreachable code. 81 82 <b>-DNO_IPV6</b> 83 Do not build with IPv6 support. By default, IPv6 support 84 is compiled in on platforms that are known to have IPv6 85 support. 86 87 Note: this directive is for debugging and testing only. 88 It is not guaranteed to work on all platforms. If you 89 don't want IPv6 support, set "<a href="postconf.5.html#inet_protocols">inet_protocols</a> = ipv4" in 90 <a href="postconf.5.html">main.cf</a>. 91 92 <b>-DNO_IP_CYRUS_SASL_AUTH</b> 93 Don't pass remote SMTP client and Postfix SMTP server IP 94 address and port information to the Cyrus SASL library. 95 This is compatible with Postfix < 3.2. 96 97 <b>-DNO_KQUEUE</b> 98 Do not build with FreeBSD/NetBSD/OpenBSD/MacOSX KQUEUE 99 support. By default, KQUEUE support is compiled in on 100 platforms that are known to support it. 101 102 <b>-DNO_NIS</b> 103 Do not build with NIS or NISPLUS support. Support for NIS 104 is unavailable on some recent Linux distributions. 105 106 <b>-DNO_NISPLUS</b> 107 Do not build with NISPLUS support. Support for NISPLUS is 108 unavailable on some recent Solaris distributions. 109 110 <b>-DNO_PCRE</b> 111 Do not build with PCRE support. By default, PCRE support 112 is compiled in when the <b>pcre2-config</b> or <b>pcre-config</b> util- 113 ity are installed. 114 115 <b>-DNO_POSIX_GETPW_R</b> 116 Disable support for POSIX getpwnam_r/getpwuid_r. 117 118 <b>-DNO_RES_NCALLS</b> 119 Do not build with the threadsafe resolver(5) API 120 (res_ninit() etc.). 121 122 <b>-DNO_SIGSETJMP</b> 123 Use setjmp()/longjmp() instead of sigsetjmp()/sig- 124 longjmp(). By default, Postfix uses sigsetjmp()/sig- 125 longjmp() when they appear to work. 126 127 <b>-DNO_SNPRINTF</b> 128 Use sprintf() instead of snprintf(). By default, Postfix 129 uses snprintf() except on ancient systems. 130 131 <b>DEBUG=</b><i>debug</i><b>_</b><i>level</i> 132 Specifies a non-default debugging level. The default is <b>-g</b>. 133 Specify <b>DEBUG=</b> to turn off debugging. 134 135 <b>OPT=</b><i>optimization</i><b>_</b><i>level</i> 136 Specifies a non-default optimization level. The default is <b>-O</b>. 137 Specify <b>OPT=</b> to turn off optimization. 138 139 <b>POSTFIX_INSTALL_OPTS=</b><i>-option...</i> 140 Specifies options for the postfix-install command, separated by 141 whitespace. Currently, the only supported option is 142 <b>-keep-build-mtime</b>. 143 144 <b>SHLIB_CFLAGS=</b><i>flags</i> 145 Override the compiler flags (typically, "-fPIC") for Postfix 146 dynamically-linked libraries and database plugins. 147 148 This feature was introduced with Postfix 3.0. 149 150 <b>SHLIB_RPATH=</b><i>rpath</i> 151 Override the runpath (typically, "'-Wl,-rpath,${SHLIB_DIR}'") 152 for Postfix dynamically-linked libraries. 153 154 This feature was introduced with Postfix 3.0. 155 156 <b>SHLIB_SUFFIX=</b><i>suffix</i> 157 Override the filename suffix (typically, ".so") for Postfix 158 dynamically-linked libraries and database plugins. 159 160 This feature was introduced with Postfix 3.0. 161 162 <b>shared=yes</b> 163 164 <b>shared=no</b> 165 Enable (disable) Postfix builds with dynamically-linked 166 libraries typically named $<a href="postconf.5.html#shlib_directory">shlib_directory</a>/libpostfix-*.so.*. 167 168 This feature was introduced with Postfix 3.0. 169 170 <b>dynamicmaps=yes</b> 171 172 <b>dynamicmaps=no</b> 173 Enable (disable) Postfix builds with the configuration file 174 $<a href="postconf.5.html#meta_directory">meta_directory</a>/dynamicmaps.cf and dynamically-loadable database 175 plugins typically named postfix-*.so.*. The setting "dynam- 176 icmaps=yes" implicitly enables Postfix dynamically-linked 177 libraries. 178 179 This feature was introduced with Postfix 3.0. 180 181 <b>pie=yes</b> 182 183 <b>pie=no</b> Enable (disable) Postfix builds with position-independent exe- 184 cutables, on platforms where this is supported. 185 186 This feature was introduced with Postfix 3.0. 187 188 <i>installation</i><b>_</b><i>parameter</i><b>=</b><i>value</i>... 189 Override the compiled-in default value of the specified instal- 190 lation parameter(s). The following parameters are supported in 191 this context: 192 193 <a href="postconf.5.html#command_directory">command_directory</a> <a href="postconf.5.html#config_directory">config_directory</a> <a href="postconf.5.html#daemon_directory">daemon_directory</a> <a href="postconf.5.html#data_directory">data_direc</a>- 194 <a href="postconf.5.html#data_directory">tory</a> <a href="postconf.5.html#default_database_type">default_database_type</a> <a href="postconf.5.html#html_directory">html_directory</a> <a href="postconf.5.html#mail_spool_directory">mail_spool_directory</a> 195 <a href="postconf.5.html#mailq_path">mailq_path</a> <a href="postconf.5.html#manpage_directory">manpage_directory</a> <a href="postconf.5.html#meta_directory">meta_directory</a> <a href="postconf.5.html#newaliases_path">newaliases_path</a> 196 <a href="postconf.5.html#queue_directory">queue_directory</a> <a href="postconf.5.html#readme_directory">readme_directory</a> <a href="postconf.5.html#sendmail_path">sendmail_path</a> <a href="postconf.5.html#shlib_directory">shlib_directory</a> 197 <a href="postconf.5.html#openssl_path">openssl_path</a> 198 199 See the <a href="postconf.5.html">postconf(5)</a> manpage for a description of these parame- 200 ters. 201 202 This feature was introduced with Postfix 3.0. 203 204 <b>WARN=</b><i>warning</i><b>_</b><i>flags</i> 205 Specifies non-default gcc compiler warning options for use when 206 "make" is invoked in a source subdirectory only. 207 208<b><a name="license">LICENSE</a></b> 209 The Secure Mailer license must be distributed with this software. 210 211<b>AUTHOR(S)</b> 212 Wietse Venema 213 IBM T.J. Watson Research 214 P.O. Box 704 215 Yorktown Heights, NY 10598, USA 216 217 Wietse Venema 218 Google, Inc. 219 111 8th Avenue 220 New York, NY 10011, USA 221 222 MAKEDEFS(1) 223</pre> </body> </html> 224