xref: /freebsd/usr.sbin/mailstats/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
164a0982bSEnji CooperSENDMAIL_DIR= ${SRCTOP}/contrib/sendmail
288c75941SGregory Neil Shapiro.PATH: ${SENDMAIL_DIR}/mailstats
3205c3be4SPeter Wemm
4205c3be4SPeter WemmPROG=	mailstats
5095dae9dSGregory Neil ShapiroSRCS=	mailstats.c
6345e52e7SRuslan ErmilovMAN=	mailstats.8
790e655eaSDavid E. O'Brien
8095dae9dSGregory Neil ShapiroCFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
9095dae9dSGregory Neil ShapiroCFLAGS+= -DNOT_SENDMAIL
10095dae9dSGregory Neil Shapiro
1171ccf092SEd SchoutenWARNS?=	2
1271ccf092SEd Schouten
13c6db8143SBaptiste DaroussinLIBADD=	sm smutil
14095dae9dSGregory Neil Shapiro
15095dae9dSGregory Neil ShapiroSRCS+=	sm_os.h
16095dae9dSGregory Neil ShapiroCLEANFILES+=sm_os.h
17205c3be4SPeter Wemm
18cf1fec42SGregory Neil Shapiro# User customizations to the sendmail build environment
19cf1fec42SGregory Neil ShapiroCFLAGS+= ${SENDMAIL_CFLAGS}
20cf1fec42SGregory Neil ShapiroDPADD+=	${SENDMAIL_DPADD}
21c6cc6025SGregory Neil ShapiroLDADD+=	${SENDMAIL_LDADD}
22c6cc6025SGregory Neil ShapiroLDFLAGS+= ${SENDMAIL_LDFLAGS}
23cf1fec42SGregory Neil Shapiro
24b791fbe6SBryan Drewerysm_os.h: ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h .NOMETA
25b791fbe6SBryan Drewery	ln -sf ${.ALLSRC} ${.TARGET}
26095dae9dSGregory Neil Shapiro
27205c3be4SPeter Wemm.include <bsd.prog.mk>
28*525438eaSJohn Baldwin
29*525438eaSJohn BaldwinCWARNFLAGS+= ${NO_WDEPRECATED_NON_PROTOTYPE}
30