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