1850dab17SGregory Neil Shapiro# $FreeBSD$ 2850dab17SGregory Neil Shapiro 3c6063d0dSWarner Losh.include <src.opts.mk> 4e1fe3dbaSRuslan Ermilov 5850dab17SGregory Neil ShapiroSENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 6850dab17SGregory Neil Shapiro.PATH: ${SENDMAIL_DIR}/libsm 7850dab17SGregory Neil Shapiro 8850dab17SGregory Neil ShapiroCFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 90c56527fSGregory Neil ShapiroCFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL 10f37de12bSGregory Neil ShapiroCFLAGS+=-DHAVE_NANOSLEEP 110c56527fSGregory Neil Shapiro 12e1fe3dbaSRuslan Ermilov.if ${MK_INET6_SUPPORT} != "no" 130c56527fSGregory Neil ShapiroCFLAGS+=-DNETINET6 140c56527fSGregory Neil Shapiro.endif 15850dab17SGregory Neil Shapiro 16850dab17SGregory Neil Shapiro# User customizations to the sendmail build environment 17850dab17SGregory Neil ShapiroCFLAGS+=${SENDMAIL_CFLAGS} 18850dab17SGregory Neil Shapiro 19daaf5759SEd SchoutenWARNS?= 2 20daaf5759SEd Schouten 21850dab17SGregory Neil ShapiroLIB= sm 22850dab17SGregory Neil Shapiro 23850dab17SGregory Neil ShapiroSRCS+= sm_os.h 24850dab17SGregory Neil ShapiroSRCS+= assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \ 25850dab17SGregory Neil Shapiro strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c \ 26850dab17SGregory Neil Shapiro fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c \ 27850dab17SGregory Neil Shapiro fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c \ 28850dab17SGregory Neil Shapiro fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c \ 29850dab17SGregory Neil Shapiro smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c \ 30850dab17SGregory Neil Shapiro vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c \ 31c3b29b3fSGregory Neil Shapiro wbuf.c wsetup.c string.c stringf.c \ 322e6b47f2SGregory Neil Shapiro xtrap.c strto.c test.c strcasecmp.c strrevcmp.c \ 333852b24cSGregory Neil Shapiro signal.c clock.c config.c sem.c shm.c mbdb.c strexit.c cf.c ldap.c \ 347d9b9991SGregory Neil Shapiro niprop.c mpeix.c memstat.c util.c inet6_ntop.c 35850dab17SGregory Neil ShapiroCLEANFILES+=sm_os.h 36850dab17SGregory Neil Shapiro 37a35d8893SRuslan ErmilovINTERNALLIB= 38850dab17SGregory Neil Shapiro 39*b791fbe6SBryan Drewerysm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA 40*b791fbe6SBryan Drewery ln -sf ${.ALLSRC} ${.TARGET} 41850dab17SGregory Neil Shapiro 42850dab17SGregory Neil Shapiro.include <bsd.lib.mk> 43