diff options
author | csjp <csjp@FreeBSD.org> | 2006-12-13 06:13:32 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2006-12-13 06:13:32 +0000 |
commit | 1315da38ef063c63141ef76201707daea8140c63 (patch) | |
tree | 767fd550a2d64bab44f513680d367afa1a9f05ab /usr.bin/login/Makefile | |
parent | a6c5f77bf8c1acd4de1a629e577be8a67d9ec27f (diff) | |
download | FreeBSD-src-1315da38ef063c63141ef76201707daea8140c63.zip FreeBSD-src-1315da38ef063c63141ef76201707daea8140c63.tar.gz |
Teach login(1) about the make.conf NO_AUDIT variable. This allows us to
conditionally build in audit support.
Submitted by: bz
MFC after: 1 week
Diffstat (limited to 'usr.bin/login/Makefile')
-rw-r--r-- | usr.bin/login/Makefile | 13 |
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 |