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