190796Sgshapiro# $FreeBSD$ 290796Sgshapiro 3156813Sru.include <bsd.own.mk> 4156813Sru 590796SgshapiroSENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 690796Sgshapiro.PATH: ${SENDMAIL_DIR}/libsm 790796Sgshapiro 890796SgshapiroCFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 9129912SgshapiroCFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL 10204691SgshapiroCFLAGS+=-DHAVE_NANOSLEEP 1190796Sgshapiro 12156813Sru.if ${MK_INET6_SUPPORT} != "no" 13129912SgshapiroCFLAGS+=-DNETINET6 14129912Sgshapiro.endif 15129912Sgshapiro 1690796Sgshapiro# User customizations to the sendmail build environment 1790796SgshapiroCFLAGS+=${SENDMAIL_CFLAGS} 1890796Sgshapiro 19201381SedWARNS?= 2 20201381Sed 2190796SgshapiroLIB= sm 2290796Sgshapiro 2390796SgshapiroSRCS+= sm_os.h 2490796SgshapiroSRCS+= assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \ 2590796Sgshapiro strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c \ 2690796Sgshapiro fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c \ 2790796Sgshapiro fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c \ 2890796Sgshapiro fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c \ 2990796Sgshapiro smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c \ 3090796Sgshapiro vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c \ 31141863Sgshapiro wbuf.c wsetup.c string.c stringf.c \ 3290796Sgshapiro xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c \ 33147082Sgshapiro signal.c clock.c config.c sem.c shm.c mbdb.c strexit.c cf.c ldap.c \ 34261364Sgshapiro niprop.c mpeix.c memstat.c util.c inet6_ntop.c 3590796SgshapiroCLEANFILES+=sm_os.h 3690796Sgshapiro 37136910SruINTERNALLIB= 3890796Sgshapiro 3990796Sgshapirosm_os.h: 4090796Sgshapiro ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 4190796Sgshapiro 4290796Sgshapiro.include <bsd.lib.mk> 43