Add PCICAP_{ID,NEXTPTR} to avoid using magic number
[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
11
3181538d 12CFLAGS+= -I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I.
984263bc
MD
13CFLAGS+= -DNOT_SENDMAIL
14
15.if exists(${.OBJDIR}/../../lib/libsm)
16LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
17.else
18LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
19.endif
20LIBSM:= ${LIBSMDIR}/libsm.a
21
22.if exists(${.OBJDIR}/../../lib/libsmutil)
23LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
24.else
25LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
26.endif
27LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
28
29DPADD= ${LIBSMUTIL} ${LIBSM}
30LDADD= ${LIBSMUTIL} ${LIBSM}
31
32SRCS+= sm_os.h
33CLEANFILES+=sm_os.h
34
35# User customizations to the sendmail build environment
36CFLAGS+=${SENDMAIL_CFLAGS}
37DPADD+=${SENDMAIL_DPADD}
38LDADD+=${SENDMAIL_LDADD}
39LDFLAGS+=${SENDMAIL_LDFLAGS}
40
41sm_os.h:
3181538d 42 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
984263bc
MD
43
44.include <bsd.prog.mk>