Makefile revision 228708
1# $FreeBSD: head/usr.bin/vacation/Makefile 228708 2011-12-19 13:38:28Z dim $ 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.if ${CC:T:Mclang} == "clang" 15# Unfortunately, clang gives warnings about sendmail code that cannot 16# be turned off yet. Since this is contrib code, and we don't really 17# care about the warnings, just make them non-fatal for now. 18NO_WERROR= 19.endif 20 21LIBSMDIR= ${.OBJDIR}/../../lib/libsm 22LIBSM= ${LIBSMDIR}/libsm.a 23 24LIBSMDBDIR= ${.OBJDIR}/../../lib/libsmdb 25LIBSMDB= ${LIBSMDBDIR}/libsmdb.a 26 27LIBSMUTILDIR= ${.OBJDIR}/../../lib/libsmutil 28LIBSMUTIL= ${LIBSMUTILDIR}/libsmutil.a 29 30DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 31LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM} 32 33SRCS+= sm_os.h 34CLEANFILES+=sm_os.h 35 36# User customizations to the sendmail build environment 37CFLAGS+=${SENDMAIL_CFLAGS} 38DPADD+=${SENDMAIL_DPADD} 39LDADD+=${SENDMAIL_LDADD} 40LDFLAGS+=${SENDMAIL_LDFLAGS} 41 42sm_os.h: 43 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 44 45.include <bsd.prog.mk> 46