1850dab17SGregory Neil Shapiro# $FreeBSD$ 2850dab17SGregory Neil Shapiro 3e1fe3dbaSRuslan Ermilov.include <bsd.own.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 100c56527fSGregory Neil Shapiro 11e1fe3dbaSRuslan Ermilov.if ${MK_INET6_SUPPORT} != "no" 120c56527fSGregory Neil ShapiroCFLAGS+=-DNETINET6 130c56527fSGregory Neil Shapiro.endif 14850dab17SGregory Neil Shapiro 15850dab17SGregory Neil Shapiro# User customizations to the sendmail build environment 16850dab17SGregory Neil ShapiroCFLAGS+=${SENDMAIL_CFLAGS} 17850dab17SGregory Neil Shapiro 18850dab17SGregory Neil ShapiroLIB= sm 19850dab17SGregory Neil Shapiro 20850dab17SGregory Neil ShapiroSRCS+= sm_os.h 21850dab17SGregory Neil ShapiroSRCS+= assert.c debug.c errstring.c exc.c heap.c match.c rpool.c \ 22850dab17SGregory Neil Shapiro strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c \ 23850dab17SGregory Neil Shapiro fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c \ 24850dab17SGregory Neil Shapiro fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c \ 25850dab17SGregory Neil Shapiro fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c \ 26850dab17SGregory Neil Shapiro smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c \ 27850dab17SGregory Neil Shapiro vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c \ 28c3b29b3fSGregory Neil Shapiro wbuf.c wsetup.c string.c stringf.c \ 29850dab17SGregory Neil Shapiro xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c \ 303852b24cSGregory Neil Shapiro signal.c clock.c config.c sem.c shm.c mbdb.c strexit.c cf.c ldap.c \ 31850dab17SGregory Neil Shapiro niprop.c mpeix.c 32850dab17SGregory Neil ShapiroCLEANFILES+=sm_os.h 33850dab17SGregory Neil Shapiro 34a35d8893SRuslan ErmilovINTERNALLIB= 35850dab17SGregory Neil Shapiro 36850dab17SGregory Neil Shapirosm_os.h: 37850dab17SGregory Neil Shapiro ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 38850dab17SGregory Neil Shapiro 39850dab17SGregory Neil Shapiro.include <bsd.lib.mk> 40