1 # $FreeBSD: src/usr.sbin/editmap/Makefile,v 1.1.2.1 2002/03/25 21:29:58 gshapiro Exp $
2 # $DragonFly: src/usr.sbin/editmap/Makefile,v 1.9 2007/04/14 17:43:48 gshapiro Exp $
4 SENDMAIL_DIR
=${.CURDIR
}/..
/..
/contrib
/sendmail-8.14
5 .PATH
: ${SENDMAIL_DIR}/editmap
12 CFLAGS
+= -I
${SENDMAIL_DIR}/sendmail
-I
${SENDMAIL_DIR}/include -I.
13 CFLAGS
+= -DNEWDB
-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
/libsmdb
)
23 LIBSMDBDIR
:= ${.OBJDIR
}/..
/..
/lib
/libsmdb
25 LIBSMDBDIR
!= cd
${.CURDIR
}/..
/..
/lib
/libsmdb
; make
-V .OBJDIR
27 LIBSMDB
:= ${LIBSMDBDIR}/libsmdb.a
29 .if exists
(${.OBJDIR
}/..
/..
/lib
/libsmutil
)
30 LIBSMUTILDIR
:= ${.OBJDIR
}/..
/..
/lib
/libsmutil
32 LIBSMUTILDIR
!= cd
${.CURDIR
}/..
/..
/lib
/libsmutil
; make
-V .OBJDIR
34 LIBSMUTIL
:= ${LIBSMUTILDIR}/libsmutil.a
36 DPADD
= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
37 LDADD
= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
42 # User customizations to the sendmail build environment
43 CFLAGS
+=${SENDMAIL_CFLAGS}
44 DPADD
+=${SENDMAIL_DPADD}
45 LDADD
+=${SENDMAIL_LDADD}
46 LDFLAGS
+=${SENDMAIL_LDFLAGS}
49 ${LN} -sf
${SENDMAIL_DIR}/include/sm
/os
/sm_os_dragonfly.h sm_os.h
51 .
include <bsd.prog.mk
>