1 # $NetBSD: Makefile.inc,v 1.1 2009/06/23 15:02:51 tron Exp $
5 USE_FORT?= yes # network client and server
9 PFIX_DISTDIR= ${NETBSDSRCDIR}/external/ibm-public/postfix/dist
11 CPPFLAGS+= -DNETBSD4 -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" \
13 -I${PFIX_DISTDIR}/src/dns -I${PFIX_DISTDIR}/src/global \
14 -I${PFIX_DISTDIR}/src/master -I${PFIX_DISTDIR}/src/util \
15 -I${PFIX_DISTDIR}/src/tls -I${PFIX_DISTDIR}/src/milter \
16 -I${PFIX_DISTDIR}/src/xsasl
19 # code uses gcc-specific aggregate dynamic array
20 CPPFLAGS+= -DCANT_USE_SEND_RECV_MSG
24 .if ${MKCRYPTO} != "no"
29 .if ${MKINET6} == "no"
34 .if ${USE_LDAP} != "no"
37 # Automatically link in libldap for a program.
41 . if (${MKPIC} == "no" || (defined(LDSTATIC) && ${LDSTATIC} != ""))
44 . if ${MKCRYPTO} != "no"
45 DPADD+= ${LIBSSL} ${LIBCRYPTO}
46 LDADD+= -lssl -lcrypto
50 .endif # USE_LDAP != no
52 PFIX_SRCDIR= ${NETBSDSRCDIR}/external/ibm-public/postfix
53 PFIX_LIBSDIRS= dns dns masterlib master global global util util \
54 milter milter xsasl xsasl
56 .if ${MKCRYPTO} != "no"
57 PFIX_LIBSDIRS+= tls tls
60 .for _LD _LL in ${PFIX_LIBSDIRS}
61 .if !defined(POBJDIR.${_LL})
62 POBJDIR.${_LL}!=cd ${PFIX_SRCDIR}/lib/${_LD} && ${PRINTOBJDIR}
63 .MAKEOVERRIDES+=POBJDIR.${_LL}
65 LIBP${_LL:tu}= ${POBJDIR.${_LL}}/lib${_LL}.a
69 # Directories to install into.
71 PFIX_LIBEXECDIR=/usr/libexec/postfix
72 PFIX_ETCDIR= /etc/postfix
73 PFIX_EXAMPLEDIR=/usr/share/examples/postfix
74 PFIX_HTMLDIR= /usr/share/doc/html/postfix
75 PFIX_SBINDIR= /usr/sbin
77 # override defaults which are otherwise empty and/or so postconf is correct
78 CPPFLAGS+= -DDEF_HTML_DIR=\"${PFIX_HTMLDIR}\" \
79 -DDEF_README_DIR=\"${PFIX_EXAMPLEDIR}\" \
80 -DDEF_SAMPLE_DIR=\"${PFIX_EXAMPLEDIR}\" \
81 -DDEF_MANPAGE_DIR=\"${MANDIR}\"
83 # postfix check wants a lot of files to be owned by root