Update READMEs for latest import.
[dragonfly.git] / usr.sbin / praliases / Makefile
blob3fcea3885a1c5d2b18769cd72be2cb5145ad78df
1 # @(#)Makefile 8.2 (Berkeley) 9/21/96
2 # $FreeBSD: src/usr.sbin/praliases/Makefile,v 1.1.6.6 2002/03/25 21:31:46 gshapiro Exp $
3 # $DragonFly: src/usr.sbin/praliases/Makefile,v 1.8 2006/08/18 03:07:00 gshapiro Exp $
5 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.13.8
6 .PATH: ${SENDMAIL_DIR}/praliases
8 PROG= praliases
9 SRCS= praliases.c
10 MAN= praliases.8
11 CFLAGS+=-I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I.
12 CFLAGS+=-DNEWDB -DNOT_SENDMAIL
14 .if exists(${.OBJDIR}/../../lib/libsm)
15 LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
16 .else
17 LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
18 .endif
19 LIBSM:= ${LIBSMDIR}/libsm.a
21 .if exists(${.OBJDIR}/../../lib/libsmdb)
22 LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb
23 .else
24 LIBSMDBDIR!= cd ${.CURDIR}/../../lib/libsmdb; make -V .OBJDIR
25 .endif
26 LIBSMDB:= ${LIBSMDBDIR}/libsmdb.a
28 .if exists(${.OBJDIR}/../../lib/libsmutil)
29 LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
30 .else
31 LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
32 .endif
33 LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
35 DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
36 LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
38 SRCS+= sm_os.h
39 CLEANFILES+=sm_os.h
41 # User customizations to the sendmail build environment
42 CFLAGS+=${SENDMAIL_CFLAGS}
43 DPADD+=${SENDMAIL_DPADD}
44 LDADD+=${SENDMAIL_LDADD}
45 LDFLAGS+=${SENDMAIL_LDFLAGS}
47 sm_os.h:
48 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
50 .include <bsd.prog.mk>