kernel NFS - Fix another deadlock in the readdirplus code
[dragonfly.git] / usr.sbin / editmap / Makefile
blob94b7736a90a59612457f4841e5a85b0cbd9f4173
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
7 PROG= editmap
8 SRCS= editmap.c
9 MAN= editmap.8
10 WARNS?= 2
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
17 .else
18 LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
19 .endif
20 LIBSM:= ${LIBSMDIR}/libsm.a
22 .if exists(${.OBJDIR}/../../lib/libsmdb)
23 LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb
24 .else
25 LIBSMDBDIR!= cd ${.CURDIR}/../../lib/libsmdb; make -V .OBJDIR
26 .endif
27 LIBSMDB:= ${LIBSMDBDIR}/libsmdb.a
29 .if exists(${.OBJDIR}/../../lib/libsmutil)
30 LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
31 .else
32 LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
33 .endif
34 LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
36 DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
37 LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
39 SRCS+= sm_os.h
40 CLEANFILES+=sm_os.h
42 # User customizations to the sendmail build environment
43 CFLAGS+=${SENDMAIL_CFLAGS}
44 DPADD+=${SENDMAIL_DPADD}
45 LDADD+=${SENDMAIL_LDADD}
46 LDFLAGS+=${SENDMAIL_LDFLAGS}
48 sm_os.h:
49 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
51 .include <bsd.prog.mk>