summaryrefslogtreecommitdiffstats
path: root/usr.bin/login/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/login/Makefile')
-rw-r--r--usr.bin/login/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.bin/login/Makefile b/usr.bin/login/Makefile
index 8a2daa3..22c73b9 100644
--- a/usr.bin/login/Makefile
+++ b/usr.bin/login/Makefile
@@ -4,10 +4,17 @@
.include <bsd.own.mk>
PROG= login
-SRCS= login.c login_audit.c login_fbtab.c
+SRCS= login.c login_fbtab.c
CFLAGS+=-DLOGALL
-DPADD= ${LIBUTIL} ${LIBPAM} ${LIBBSM}
-LDADD= -lutil ${MINUSLPAM} -lbsm
+DPADD= ${LIBUTIL} ${LIBPAM}
+LDADD= -lutil ${MINUSLPAM}
+
+.if ${MK_AUDIT} != "no"
+SRCS+= login_audit.c
+CFLAGS+= -DUSE_BSM_AUDIT
+DPADD+= ${LIBBSM}
+LDADD+= -lbsm
+.endif
.if ${MK_SETUID_LOGIN} != "no"
BINOWN= root
OpenPOWER on IntegriCloud