1# @(#)Makefile 8.2 (Berkeley) 9/21/96
| 1# @(#)Makefile 8.2 (Berkeley) 9/21/96
|
2# $FreeBSD: head/usr.sbin/mailstats/Makefile 80029 2001-07-20 06:20:32Z obrien $
| 2# $FreeBSD: head/usr.sbin/mailstats/Makefile 90798 2002-02-17 22:05:07Z gshapiro $
|
3 4MAINTAINER= gshapiro@FreeBSD.org 5 6SENDMAIL_DIR= ${.CURDIR}/../../contrib/sendmail 7.PATH: ${SENDMAIL_DIR}/mailstats 8 9PROG= mailstats
| 3 4MAINTAINER= gshapiro@FreeBSD.org 5 6SENDMAIL_DIR= ${.CURDIR}/../../contrib/sendmail 7.PATH: ${SENDMAIL_DIR}/mailstats 8 9PROG= mailstats
|
| 10SRCS= mailstats.c
|
10MAN= mailstats.8 11
| 11MAN= mailstats.8 12
|
12CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -DNOT_SENDMAIL
| 13CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. 14CFLAGS+= -DNOT_SENDMAIL
|
13
| 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
|
14.if exists(${.OBJDIR}/../../lib/libsmutil) 15LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil 16.else 17LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR 18.endif 19LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a 20
| 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
|
21DPADD= ${LIBSMUTIL} 22LDADD= ${LIBSMUTIL}
| 30DPADD= ${LIBSMUTIL} ${LIBSM} 31LDADD= ${LIBSMUTIL} ${LIBSM}
|
23
| 32
|
| 33SRCS+= sm_os.h 34CLEANFILES+=sm_os.h 35
|
24# User customizations to the sendmail build environment 25CFLAGS+= ${SENDMAIL_CFLAGS} 26DPADD+= ${SENDMAIL_DPADD} 27LDADD+= ${SENDMAIL_LDADD} 28LDFLAGS+= ${SENDMAIL_LDFLAGS} 29
| 36# User customizations to the sendmail build environment 37CFLAGS+= ${SENDMAIL_CFLAGS} 38DPADD+= ${SENDMAIL_DPADD} 39LDADD+= ${SENDMAIL_LDADD} 40LDFLAGS+= ${SENDMAIL_LDFLAGS} 41
|
| 42sm_os.h: 43 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h 44
|
30.include <bsd.prog.mk>
| 45.include <bsd.prog.mk>
|