2002-02-17 22:01:40 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2002-02-17 22:01:40 +00:00
|
|
|
SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
|
|
|
|
.PATH: ${SENDMAIL_DIR}/libsm
|
|
|
|
|
|
|
|
CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
|
2004-06-01 01:29:42 +00:00
|
|
|
CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
|
2010-03-04 05:53:06 +00:00
|
|
|
CFLAGS+=-DHAVE_NANOSLEEP
|
2004-06-01 01:29:42 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
2004-06-01 01:29:42 +00:00
|
|
|
CFLAGS+=-DNETINET6
|
|
|
|
.endif
|
2002-02-17 22:01:40 +00:00
|
|
|
|
|
|
|
# User customizations to the sendmail build environment
|
|
|
|
CFLAGS+=${SENDMAIL_CFLAGS}
|
|
|
|
|
2010-01-02 09:58:07 +00:00
|
|
|
WARNS?= 2
|
|
|
|
|
2002-02-17 22:01:40 +00: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 02:41:41 +00:00
|
|
|
wbuf.c wsetup.c string.c stringf.c \
|
2002-02-17 22:01:40 +00:00
|
|
|
xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c \
|
2005-06-07 04:18:25 +00:00
|
|
|
signal.c clock.c config.c sem.c shm.c mbdb.c strexit.c cf.c ldap.c \
|
2007-04-09 01:45:30 +00:00
|
|
|
niprop.c mpeix.c memstat.c util.c
|
2002-02-17 22:01:40 +00:00
|
|
|
CLEANFILES+=sm_os.h
|
|
|
|
|
2004-10-24 15:33:08 +00:00
|
|
|
INTERNALLIB=
|
2002-02-17 22:01:40 +00:00
|
|
|
|
|
|
|
sm_os.h:
|
|
|
|
ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|