xref: /freebsd/lib/libsmutil/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1.include <src.opts.mk>
2
3PACKAGE=lib${LIB}
4SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
5.PATH:	${SENDMAIL_DIR}/libsmutil
6
7CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
8CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL
9
10.if ${MK_OPENSSL} != "no"
11# STARTTLS support
12CFLAGS+=-DSTARTTLS
13.endif
14
15# User customizations to the sendmail build environment
16CFLAGS+=${SENDMAIL_CFLAGS}
17
18WARNS?=	2
19
20LIB=	smutil
21
22SRCS+=	sm_os.h
23SRCS+=	debug.c err.c lockfile.c safefile.c snprintf.c cf.c
24CLEANFILES+=sm_os.h
25
26INTERNALLIB=
27
28sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA
29	ln -sf ${.ALLSRC} ${.TARGET}
30
31.include <bsd.lib.mk>
32
33CWARNFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE}
34