2002-02-17 23:01:40 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 06:22:01 +02:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 19:54:44 +01:00
|
|
|
|
2016-02-08 19:41:46 +01:00
|
|
|
PACKAGE=sendmail
|
2017-01-20 05:35:36 +01:00
|
|
|
SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
|
2002-02-17 23:01:40 +01:00
|
|
|
.PATH: ${SENDMAIL_DIR}/libsm
|
|
|
|
|
|
|
|
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
2004-06-01 03:29:42 +02:00
|
|
|
CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
|
2010-03-04 06:53:06 +01:00
|
|
|
CFLAGS+=-DHAVE_NANOSLEEP
|
2004-06-01 03:29:42 +02:00
|
|
|
|
2006-03-17 19:54:44 +01:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
2004-06-01 03:29:42 +02:00
|
|
|
CFLAGS+=-DNETINET6
|
|
|
|
.endif
|
2002-02-17 23:01:40 +01:00
|
|
|
|
|
|
|
# User customizations to the sendmail build environment
|
|
|
|
CFLAGS+=${SENDMAIL_CFLAGS}
|
|
|
|
|
2010-01-02 10:58:07 +01:00
|
|
|
WARNS?= 2
|
|
|
|
|
2002-02-17 23:01:40 +01:00
|
|
|
LIB= sm
|
|
|
|
|
|
|
|
SRCS+= sm_os.h
|
|
|
|
SRCS+= assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \
|
|
|
|
strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c \
|
|
|
|
fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c \
|
|
|
|
fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c \
|
|
|
|
fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c \
|
|
|
|
smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c \
|
|
|
|
vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c \
|
2005-02-14 03:41:41 +01:00
|
|
|
wbuf.c wsetup.c string.c stringf.c \
|
2015-07-07 04:35:06 +02:00
|
|
|
xtrap.c strto.c test.c strcasecmp.c strrevcmp.c \
|
2005-06-07 06:18:25 +02:00
|
|
|
signal.c clock.c config.c sem.c shm.c mbdb.c strexit.c cf.c ldap.c \
|
2014-01-27 00:40:31 +01:00
|
|
|
niprop.c mpeix.c memstat.c util.c inet6_ntop.c
|
2002-02-17 23:01:40 +01:00
|
|
|
CLEANFILES+=sm_os.h
|
|
|
|
|
2004-10-24 17:33:08 +02:00
|
|
|
INTERNALLIB=
|
2002-02-17 23:01:40 +01:00
|
|
|
|
2015-11-25 20:44:43 +01:00
|
|
|
sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA
|
|
|
|
ln -sf ${.ALLSRC} ${.TARGET}
|
2002-02-17 23:01:40 +01:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|