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