summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/sendmail/Makefile.inc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-04-02 19:48:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-04-02 19:48:38 +0000
commit0273b8fbd6947b4b7e823ada965ae763cab5ac86 (patch)
treeae5e5293b5d1243eef968a7ebb13394550e92d3f /gnu/usr.sbin/sendmail/Makefile.inc
parent43225228859332051b0497d6732b906e2c753f85 (diff)
Remove sendmail's `Build' scaffolding and add real Makefiles
praliases should be in section 1, not 8 Use arc4random(3) instead of random(3) Add some sample OpenBSD .mc files
Diffstat (limited to 'gnu/usr.sbin/sendmail/Makefile.inc')
-rw-r--r--gnu/usr.sbin/sendmail/Makefile.inc43
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/usr.sbin/sendmail/Makefile.inc b/gnu/usr.sbin/sendmail/Makefile.inc
new file mode 100644
index 00000000000..0b5fd3e88ed
--- /dev/null
+++ b/gnu/usr.sbin/sendmail/Makefile.inc
@@ -0,0 +1,43 @@
+# $OpenBSD: Makefile.inc,v 1.1 2000/04/02 19:48:09 millert Exp $
+
+.include <bsd.own.mk>
+.include <bsd.obj.mk>
+
+ENVDEF= -DNEWDB -DMAP_REGEX
+# XXX - adding IPv6 support seems to break IPv4 support in OpenBSD
+#ENVDEF+= -DNETINET6 -DNEEDSGETIPNODE
+.if (${YP} == "yes")
+ENVDEF+=-DNIS
+.endif
+
+.if defined(WANT_LIBWRAP)
+.if (${TCP_WRAPPERS} == "yes")
+ENVDEF+=-DTCPWRAPPERS
+DPADD+= ${LIBWRAP}
+LDADD+= -lwrap
+.endif
+.endif
+
+.if defined(WANT_LIBSMDB)
+LDADD+= -lsmdb
+.if exists(${.CURDIR}/../libsmdb/${__objdir})
+DPADD+= ${.CURDIR}/../libsmdb/${__objdir}/libsmdb.a
+LDFLAGS+=-L${.CURDIR}/../libsmdb/${__objdir}
+.else
+DPADD+= ${.CURDIR}/../libsmdb/libsmdb.a
+LDFLAGS+=-L${.CURDIR}/../libsmdb
+.endif
+.endif
+
+.if defined(WANT_LIBSMUTIL)
+LDADD+= -lsmutil
+.if exists(${.CURDIR}/../libsmutil/${__objdir})
+DPADD+= ${.CURDIR}/../libsmutil/${__objdir}/libsmutil.a
+LDFLAGS+=-L${.CURDIR}/../libsmutil/${__objdir}
+.else
+DPADD+= ${.CURDIR}/../libsmutil/libsmutil.a
+LDFLAGS+=-L${.CURDIR}/../libsmutil
+.endif
+.endif
+
+CFLAGS+=${ENVDEF} -I${.CURDIR}/../sendmail -I${.CURDIR}/../include