1
2.include <src.opts.mk>
3
4PACKAGE=sendmail
5SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
6.PATH:	${SENDMAIL_DIR}/libsm
7
8CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
9CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
10CFLAGS+=-DHAVE_NANOSLEEP
11
12.if ${MK_INET6_SUPPORT} != "no"
13CFLAGS+=-DNETINET6
14.endif
15
16# User customizations to the sendmail build environment
17CFLAGS+=${SENDMAIL_CFLAGS}
18
19WARNS?=	2
20
21LIB=	sm
22
23SRCS+=	sm_os.h
24SRCS+=	assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \
25	strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c \
26	fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c \
27	fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c \
28	fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c \
29	smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c \
30	vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c \
31	wbuf.c wsetup.c string.c stringf.c \
32	xtrap.c strto.c test.c strcasecmp.c strrevcmp.c \
33	signal.c clock.c config.c sem.c shm.c mbdb.c strexit.c cf.c ldap.c \
34	niprop.c mpeix.c memstat.c util.c inet6_ntop.c notify.c \
35	ilenx.c xleni.c utf8_valid.c uxtext_unquote.c lowercase.c strcaseeq.c
36CLEANFILES+=sm_os.h
37
38INTERNALLIB=
39
40sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA
41	ln -sf ${.ALLSRC} ${.TARGET}
42
43.include <bsd.lib.mk>
44
45CWARNFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE}
46