1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5SENDMAIL_DIR=${.CURDIR}/../../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 10 11.if ${MK_INET6_SUPPORT} != "no" 12CFLAGS+=-DNETINET6 13.endif 14 15# User customizations to the sendmail build environment 16CFLAGS+=${SENDMAIL_CFLAGS} 17 18LIB= sm 19 20SRCS+= sm_os.h 21SRCS+= assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \ 22 strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c \ 23 fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c \ 24 fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c \ 25 fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c \ 26 smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c \ 27 vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c \ 28 wbuf.c wsetup.c string.c stringf.c \ 29 xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c \ 30 signal.c clock.c config.c sem.c shm.c mbdb.c strexit.c cf.c ldap.c \ 31 niprop.c mpeix.c memstat.c util.c 32CLEANFILES+=sm_os.h 33 34INTERNALLIB= 35 36sm_os.h: 37 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 38 39.include <bsd.lib.mk> 40