diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2008-01-17 19:31:45 -0800 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2008-01-17 19:31:45 -0800 |
commit | e64aa18f6da831ec1b787a57822080fd3b8cc378 (patch) | |
tree | 2d9e68ba8c043d3ddb9d72f8c9fee5cad884fe98 | |
parent | df44db730f904c9fb1fdb83ab7f78abe8bd62844 (diff) | |
download | libcap-e64aa18f6da831ec1b787a57822080fd3b8cc378.tar.gz |
Make pam_cap compilation conditional.
Default is for make to guess if the user wants the module or not
user can override with
make PAM_CAP={yes|no}
Thanks to Chris Freidhoff for the suggestion and a first stab at a patch.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r-- | Make.Rules | 2 | ||||
-rw-r--r-- | Makefile | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -62,7 +62,7 @@ IPATH += -I$(topdir)/libcap/include -I$(KERNEL_HEADERS) INCS=$(topdir)/libcap/include/sys/capability.h LIBS=-L$(topdir)/libcap -lcap CFLAGS=-Dlinux $(WARNINGS) $(DEBUG) $(COPTFLAG) $(IPATH) - +PAM_CAP ?= $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi) # Global cleanup stuff LOCALCLEAN=rm -f *~ core @@ -10,7 +10,9 @@ include Make.Rules all install clean: %: %-here $(MAKE) -C libcap $(MAKE_DEFS) $@ +ifneq ($(PAM_CAP),no) $(MAKE) -C pam_cap $(MAKE_DEFS) $@ +endif $(MAKE) -C progs $(MAKE_DEFS) $@ $(MAKE) -C doc $(MAKE_DEFS) $@ |