Put WARNS?=6 in usr.sbin/Makefile.inc (like in usr.bin/ etc.).
[dragonfly.git] / usr.sbin / mailstats / Makefile
CommitLineData
984263bc
MD
1# @(#)Makefile 8.2 (Berkeley) 9/21/96
2# $FreeBSD: src/usr.sbin/mailstats/Makefile,v 1.1.6.6 2002/03/25 21:31:43 gshapiro Exp $
e8b8add7 3# $DragonFly: src/usr.sbin/mailstats/Makefile,v 1.9 2007/04/14 17:43:48 gshapiro Exp $
984263bc 4
e8b8add7 5SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14
984263bc
MD
6.PATH: ${SENDMAIL_DIR}/mailstats
7
8PROG= mailstats
9SRCS= mailstats.c
10MAN= mailstats.8
f746689a 11WARNS?= 2
984263bc 12
3181538d 13CFLAGS+= -I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I.
984263bc
MD
14CFLAGS+= -DNOT_SENDMAIL
15
16.if exists(${.OBJDIR}/../../lib/libsm)
17LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
18.else
19LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
20.endif
21LIBSM:= ${LIBSMDIR}/libsm.a
22
23.if exists(${.OBJDIR}/../../lib/libsmutil)
24LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
25.else
26LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
27.endif
28LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
29
30DPADD= ${LIBSMUTIL} ${LIBSM}
31LDADD= ${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:
3181538d 43 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
984263bc
MD
44
45.include <bsd.prog.mk>