xref: /freebsd/usr.bin/vacation/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1SENDMAIL_DIR=${SRCTOP}/contrib/sendmail
2.PATH:	${SENDMAIL_DIR}/vacation
3
4PROG=	vacation
5SRCS=	vacation.c
6CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
7CFLAGS+=-DNEWDB -DNOT_SENDMAIL
8CFLAGS+=-D_FFR_LISTDB -D_FFR_DEBUG
9
10WARNS?=	2
11
12LIBADD=	smdb smutil sm
13
14SRCS+=	sm_os.h
15CLEANFILES+=sm_os.h
16
17# User customizations to the sendmail build environment
18CFLAGS+=${SENDMAIL_CFLAGS}
19DPADD+=${SENDMAIL_DPADD}
20LDADD+=${SENDMAIL_LDADD}
21LDFLAGS+=${SENDMAIL_LDFLAGS}
22
23sm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA
24	ln -sf ${.ALLSRC} ${.TARGET}
25
26.include <bsd.prog.mk>
27
28CWARNFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE}
29