1# $FreeBSD$ 2 3SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail 4.PATH: ${SENDMAIL_DIR}/vacation 5 6PROG= vacation 7SRCS= vacation.c 8CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 9CFLAGS+=-DNEWDB -DNOT_SENDMAIL 10CFLAGS+=-D_FFR_LISTDB -D_FFR_DEBUG 11 12WARNS?= 2 13 14# Unfortunately, clang gives warnings about sendmail code that cannot 15# be turned off yet. Since this is contrib code, and we don't really 16# care about the warnings, just make them non-fatal for now. 17NO_WERROR.clang= 18 19LIBSMDIR= ${.OBJDIR}/../../lib/libsm 20LIBSM= ${LIBSMDIR}/libsm.a 21 22LIBSMDBDIR= ${.OBJDIR}/../../lib/libsmdb 23LIBSMDB= ${LIBSMDBDIR}/libsmdb.a 24 25LIBSMUTILDIR= ${.OBJDIR}/../../lib/libsmutil 26LIBSMUTIL= ${LIBSMUTILDIR}/libsmutil.a 27 28DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 29LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 30 31SRCS+= sm_os.h 32CLEANFILES+=sm_os.h 33 34# User customizations to the sendmail build environment 35CFLAGS+=${SENDMAIL_CFLAGS} 36DPADD+=${SENDMAIL_DPADD} 37LDADD+=${SENDMAIL_LDADD} 38LDFLAGS+=${SENDMAIL_LDFLAGS} 39 40sm_os.h: 41 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 42 43.include <bsd.prog.mk> 44