Put WARNS?=6 in usr.sbin/Makefile.inc (like in usr.bin/ etc.).
[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 $
e8b8add7 3# $DragonFly: src/usr.sbin/praliases/Makefile,v 1.9 2007/04/14 17:43:48 gshapiro Exp $
984263bc 4
e8b8add7 5SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14
984263bc
MD
6.PATH: ${SENDMAIL_DIR}/praliases
7
8PROG= praliases
9SRCS= praliases.c
10MAN= praliases.8
f746689a
SW
11WARNS?= 2
12
3181538d 13CFLAGS+=-I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I.
984263bc
MD
14CFLAGS+=-DNEWDB -DNOT_SENDMAIL
15
16.if exists(${.OBJDIR}/../../lib/libsm)
17LIBSMDIR:= ${.OBJDIR}/../../lib/libsm
18.else
19LIBSMDIR!= cd ${.CURDIR}/../../lib/libsm; make -V .OBJDIR
20.endif
21LIBSM:= ${LIBSMDIR}/libsm.a
22
23.if exists(${.OBJDIR}/../../lib/libsmdb)
24LIBSMDBDIR:= ${.OBJDIR}/../../lib/libsmdb
25.else
26LIBSMDBDIR!= cd ${.CURDIR}/../../lib/libsmdb; make -V .OBJDIR
27.endif
28LIBSMDB:= ${LIBSMDBDIR}/libsmdb.a
29
30.if exists(${.OBJDIR}/../../lib/libsmutil)
31LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
32.else
33LIBSMUTILDIR!= cd ${.CURDIR}/../../lib/libsmutil; make -V .OBJDIR
34.endif
35LIBSMUTIL:= ${LIBSMUTILDIR}/libsmutil.a
36
37DPADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
38LDADD= ${LIBSMDB} ${LIBSMUTIL} ${LIBSM}
39
40SRCS+= sm_os.h
41CLEANFILES+=sm_os.h
42
43# User customizations to the sendmail build environment
44CFLAGS+=${SENDMAIL_CFLAGS}
45DPADD+=${SENDMAIL_DPADD}
46LDADD+=${SENDMAIL_LDADD}
47LDFLAGS+=${SENDMAIL_LDFLAGS}
48
49sm_os.h:
3181538d 50 ${LN} -sf ${SENDMAIL_DIR}/include/sm/os/sm_os_dragonfly.h sm_os.h
984263bc
MD
51
52.include <bsd.prog.mk>