Initial import from FreeBSD RELENG_4:
[dragonfly.git] / usr.sbin / praliases / Makefile
CommitLineData
984263bc
MD
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
4MAINTAINER= gshapiro@FreeBSD.org
5
6SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
7.PATH: ${SENDMAIL_DIR}/praliases
8
9PROG= praliases
10SRCS= praliases.c
11MAN= praliases.8
12CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I.
13CFLAGS+=-DNEWDB -DNOT_SENDMAIL
14
15.if exists(${.OBJDIR}/../../lib/libsm)
16LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
17.else
18LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
19.endif
20LIBSM:= ${LIBSMDIR}/libsm.a
21
22.if exists(${.OBJDIR}/../../lib/libsmdb)
23LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb
24.else
25LIBSMDBDIR!= cd ${.CURDIR}/../../lib/libsmdb; make -V .OBJDIR
26.endif
27LIBSMDB:= ${LIBSMDBDIR}/libsmdb.a
28
29.if exists(${.OBJDIR}/../../lib/libsmutil)
30LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
31.else
32LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
33.endif
34LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
35
36DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
37LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
38
39SRCS+= sm_os.h
40CLEANFILES+=sm_os.h
41
42# User customizations to the sendmail build environment
43CFLAGS+=${SENDMAIL_CFLAGS}
44DPADD+=${SENDMAIL_DPADD}
45LDADD+=${SENDMAIL_LDADD}
46LDFLAGS+=${SENDMAIL_LDFLAGS}
47
48sm_os.h:
49 ln -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_freebsd.h sm_os.h
50
51.include <bsd.prog.mk>