---
name: "makedefs"
section: "1"
platform: "linux"
package: "postfix"
version: "3.10.13-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/makedefs"
---

# makedefs(1)

Postfix makefile configuration utility

## NAME

makedefs - Postfix makefile configuration utility

## SYNOPSIS

```
make makefiles name=value...
```

## DESCRIPTION

The **makedefs** command identifies the compilation environment, and emits macro definitions on the standard output stream that can be prepended to template Makefiles. These macros implement an internal interface and are subject to change without notice.

## NAME=VALUE OVERRIDES

```

```

Default settings can be overruled by specifying them as environment variables (or as name=value pairs on the "make" command line). Use quotes if variables contain whitespace or shell meta characters.

The command "**make makefiles name=value...**" will replace the string **MAIL\_VERSION** at the end of a value with the Postfix version (*major.minor.patchlevel* for a stable release, *major.minor-date* for a development release). Do not try to specify something like **$mail\_version**: that produces inconsistent results with different implementations of the [make(1)](/make/1.md) command.

- **AUXLIBS=***object\_library...*

  Specifies one or more non-default object libraries. Postfix 3.0 and later specify some of their database library dependencies with AUXLIBS\_CDB, AUXLIBS\_LDAP, AUXLIBS\_LMDB, AUXLIBS\_MONGODB, AUXLIBS\_MYSQL, AUXLIBS\_PCRE, AUXLIBS\_PGSQL, AUXLIBS\_SDBM, and AUXLIBS\_SQLITE, respectively.

- **CC=***compiler\_command*

  Specifies a non-default compiler. On many systems, the default is **gcc**.

- **CCARGS=***compiler\_arguments*

  Specifies non-default compiler arguments, for example, a non-default *include* directory. The following directives are special:

  - **-DNO\_CLOSEFROM**

    Do not use the system closefom() implementation.

  - **-DNO\_DB**

    Do not build with Berkeley DB support.

  - **-DNO\_DEVPOLL**

    Do not build with Solaris /dev/poll support. By default, /dev/poll support is compiled in on platforms that are known to support it.

  - **-DNO\_DNSSEC**

    Do not build with DNSSEC support, even if the resolver library appears to support it.

  - **-DNO\_EPOLL**

    Do not build with Linux EPOLL support. By default, EPOLL support is compiled in on platforms that are known to support it.

  - **-DNO\_EAI**

    Do not build with EAI (SMTPUTF8) support. By default, EAI support is compiled in when the "pkgconf" or "pkg-config" command are found, or the deprecated "icu-config" command.

  - **-DNO\_INLINE**

    Do not require support for C99 "inline" functions. Instead, implement argument typechecks for non-(printf/scanf)-like functions with ternary operators and unreachable code.

  - **-DNO\_IPV6**

    Do not build with IPv6 support. By default, IPv6 support is compiled in on platforms that are known to have IPv6 support.

    Note: this directive is for debugging and testing only. It is not guaranteed to work on all platforms. If you don't want IPv6 support, set "inet\_protocols = ipv4" in main.cf.

  - **-DNO\_IP\_CYRUS\_SASL\_AUTH**

    Don't pass remote SMTP client and Postfix SMTP server IP address and port information to the Cyrus SASL library. This is compatible with Postfix \< 3.2.

  - **-DNO\_KQUEUE**

    Do not build with FreeBSD/NetBSD/OpenBSD/MacOSX KQUEUE support. By default, KQUEUE support is compiled in on platforms that are known to support it.

  - **-DNO\_NIS**

    Do not build with NIS or NISPLUS support. Support for NIS is unavailable on some recent Linux distributions.

  - **-DNO\_NISPLUS**

    Do not build with NISPLUS support. Support for NISPLUS is unavailable on some recent Solaris distributions.

  - **-DNO\_PCRE**

    Do not build with PCRE support. By default, PCRE support is compiled in when the **pcre2-config** or **pcre-config** utility are installed.

  - **-DNO\_POSIX\_GETPW\_R**

    Disable support for POSIX getpwnam\_r/getpwuid\_r.

  - **-DNO\_RES\_NCALLS**

    Do not build with the threadsafe [resolver(5)](/resolver/5.md) API (res\_ninit() etc.).

  - **-DNO\_SIGSETJMP**

    Use setjmp()/longjmp() instead of sigsetjmp()/siglongjmp(). By default, Postfix uses sigsetjmp()/siglongjmp() when they appear to work.

  - **-DNO\_SNPRINTF**

    Use sprintf() instead of snprintf(). By default, Postfix uses snprintf() except on ancient systems.

- **DEBUG=***debug\_level*

  Specifies a non-default debugging level. The default is **-g**. Specify **DEBUG=** to turn off debugging.

- **OPT=***optimization\_level*

  Specifies a non-default optimization level. The default is **-O**. Specify **OPT=** to turn off optimization.

- **POSTFIX\_INSTALL\_OPTS=***-option...*

  Specifies options for the postfix-install command, separated by whitespace. Currently, the only supported option is **-keep-build-mtime**.

- **SHLIB\_CFLAGS=***flags*

  Override the compiler flags (typically, "-fPIC") for Postfix dynamically-linked libraries and database plugins.

  This feature was introduced with Postfix 3.0.

- **SHLIB\_RPATH=***rpath*

  Override the runpath (typically, "'-Wl,-rpath,${SHLIB\_DIR}'") for Postfix dynamically-linked libraries.

  This feature was introduced with Postfix 3.0.

- **SHLIB\_SUFFIX=***suffix*

  Override the filename suffix (typically, ".so") for Postfix dynamically-linked libraries and database plugins.

  This feature was introduced with Postfix 3.0.

- **shared=yes**

  - **shared=no**

  Enable (disable) Postfix builds with dynamically-linked libraries typically named $shlib\_directory/libpostfix-\*.so.\*.

  This feature was introduced with Postfix 3.0.

- **dynamicmaps=yes**

  - **dynamicmaps=no**

  Enable (disable) Postfix builds with the configuration file $meta\_directory/dynamicmaps.cf and dynamically-loadable database plugins typically named postfix-\*.so.\*.  The setting "dynamicmaps=yes" implicitly enables Postfix dynamically-linked libraries.

  This feature was introduced with Postfix 3.0.

- **pie=yes**

  - **pie=no**

  Enable (disable) Postfix builds with position-independent executables, on platforms where this is supported.

  This feature was introduced with Postfix 3.0.

- *installation\_parameter***=***value*...

  Override the compiled-in default value of the specified installation parameter(s). The following parameters are supported in this context:

  command\_directory config\_directory daemon\_directory data\_directory default\_database\_type html\_directory mail\_spool\_directory mailq\_path manpage\_directory meta\_directory newaliases\_path queue\_directory readme\_directory sendmail\_path shlib\_directory openssl\_path

  See the [postconf(5)](/postconf/5.md) manpage for a description of these parameters.

  This feature was introduced with Postfix 3.0.

- **WARN=***warning\_flags*

  Specifies non-default gcc compiler warning options for use when "make" is invoked in a source subdirectory only.

## LICENSE

```

```

The Secure Mailer license must be distributed with this software.

## AUTHOR(S)

```
Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
Yorktown Heights, NY 10598, USA
Wietse Venema
Google, Inc.
111 8th Avenue
New York, NY 10011, USA
```
