top(1): Merge top.x and top.local.1 into one manual page.
[dragonfly.git] / usr.sbin / praliases / Makefile
blobd78466406ca7d0eba892d99860a73d2d98e5539e
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.9 2007/04/14 17:43:48 gshapiro Exp $
5 SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14
6 .PATH: ${SENDMAIL_DIR}/praliases
8 PROG= praliases
9 SRCS= praliases.c
10 MAN= praliases.8
11 WARNS?= 2
13 CFLAGS+=-I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I.
14 CFLAGS+=-DNEWDB -DNOT_SENDMAIL
16 .if exists(${.OBJDIR}/../../lib/libsm)
17 LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
18 .else
19 LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
20 .endif
21 LIBSM:= ${LIBSMDIR}/libsm.a
23 .if exists(${.OBJDIR}/../../lib/libsmdb)
24 LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb
25 .else
26 LIBSMDBDIR!= cd ${.CURDIR}/../../lib/libsmdb; make -V .OBJDIR
27 .endif
28 LIBSMDB:= ${LIBSMDBDIR}/libsmdb.a
30 .if exists(${.OBJDIR}/../../lib/libsmutil)
31 LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
32 .else
33 LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
34 .endif
35 LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
37 DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
38 LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
40 SRCS+= sm_os.h
41 CLEANFILES+=sm_os.h
43 # User customizations to the sendmail build environment
44 CFLAGS+=${SENDMAIL_CFLAGS}
45 DPADD+=${SENDMAIL_DPADD}
46 LDADD+=${SENDMAIL_LDADD}
47 LDFLAGS+=${SENDMAIL_LDFLAGS}
49 sm_os.h:
50 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
52 .include <bsd.prog.mk>