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