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
12 CFLAGS
+= -I
${SENDMAIL_DIR}/sendmail
-I
${SENDMAIL_DIR}/include -I.
13 CFLAGS
+= -DNOT_SENDMAIL
15 .if exists
(${.OBJDIR
}/..
/..
/lib
/libsm
)
16 LIBSMDIR
:= ${.OBJDIR
}/..
/..
/lib
/libsm
18 LIBSMDIR
!= cd
${.CURDIR
}/..
/..
/lib
/libsm
; make
-V .OBJDIR
20 LIBSM
:= ${LIBSMDIR}/libsm.a
22 .if exists
(${.OBJDIR
}/..
/..
/lib
/libsmutil
)
23 LIBSMUTILDIR
:= ${.OBJDIR
}/..
/..
/lib
/libsmutil
25 LIBSMUTILDIR
!= cd
${.CURDIR
}/..
/..
/lib
/libsmutil
; make
-V .OBJDIR
27 LIBSMUTIL
:= ${LIBSMUTILDIR}/libsmutil.a
29 DPADD
= ${LIBSMUTIL} ${LIBSM}
30 LDADD
= ${LIBSMUTIL} ${LIBSM}
35 # User customizations to the sendmail build environment
36 CFLAGS
+=${SENDMAIL_CFLAGS}
37 DPADD
+=${SENDMAIL_DPADD}
38 LDADD
+=${SENDMAIL_LDADD}
39 LDFLAGS
+=${SENDMAIL_LDFLAGS}
42 ${LN} -sf
${SENDMAIL_DIR}/include/sm
/os
/sm_os_dragonfly.h sm_os.h
44 .
include <bsd.prog.mk
>