HAMMER - Stabilize and refactor volume removal
[dragonfly.git] / usr.sbin / mailstats / Makefile
blob608fee4c6ab47d6de2d6dc74a7cc76c111e946fa
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 $
3 # $DragonFly: src/usr.sbin/mailstats/Makefile,v 1.9 2007/04/14 17:43:48 gshapiro Exp $
5 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14
6 .PATH: ${SENDMAIL_DIR}/mailstats
8 PROG= mailstats
9 SRCS= mailstats.c
10 MAN= mailstats.8
11 WARNS?= 2
13 CFLAGS+= -I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I.
14 CFLAGS+= -DNOT_SENDMAIL
16 .if exists(${.OBJDIR}/../../lib/libsm)
17 LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
18 .else
19 LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
20 .endif
21 LIBSM:= ${LIBSMDIR}/libsm.a
23 .if exists(${.OBJDIR}/../../lib/libsmutil)
24 LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
25 .else
26 LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
27 .endif
28 LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
30 DPADD= ${LIBSMUTIL} ${LIBSM}
31 LDADD= ${LIBSMUTIL} ${LIBSM}
33 SRCS+= sm_os.h
34 CLEANFILES+=sm_os.h
36 # User customizations to the sendmail build environment
37 CFLAGS+=${SENDMAIL_CFLAGS}
38 DPADD+=${SENDMAIL_DPADD}
39 LDADD+=${SENDMAIL_LDADD}
40 LDFLAGS+=${SENDMAIL_LDFLAGS}
42 sm_os.h:
43 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
45 .include <bsd.prog.mk>