aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Make.Rules2
-rw-r--r--Makefile2
2 files changed, 3 insertions, 1 deletions
diff --git a/Make.Rules b/Make.Rules
index 0ffabe4..0bd3554 100644
--- a/Make.Rules
+++ b/Make.Rules
@@ -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
diff --git a/Makefile b/Makefile
index 14f0dce..52f7b42 100644
--- a/Makefile
+++ b/Makefile
@@ -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) $@