summaryrefslogtreecommitdiff
path: root/Linux-PAM/modules/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Linux-PAM/modules/Makefile')
-rw-r--r--Linux-PAM/modules/Makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/Linux-PAM/modules/Makefile b/Linux-PAM/modules/Makefile
new file mode 100644
index 00000000..96b3a636
--- /dev/null
+++ b/Linux-PAM/modules/Makefile
@@ -0,0 +1,58 @@
+# $Id: Makefile,v 1.1.1.2 2002/09/15 20:08:43 hartmans Exp $
+#
+# Makefile
+#
+# This makefile controls the build process of shared and static PAM modules.
+#
+#
+
+include ../Make.Rules
+
+MODDIRS=$(shell /bin/ls -d pam_*)
+
+all:
+ @echo building the static modutil library
+ make -C pammodutil all
+ @echo modules sources available are:
+ @ls -d $(MODDIRS) 2>/dev/null ; echo :--------
+ @echo
+ifdef STATIC
+ rm -f ./_static_module_*
+endif
+ @for i in $(MODDIRS) ; do \
+ if [ -d $$i ]; then { \
+ $(MAKE) -C $$i all ; \
+ if [ $$? -ne 0 ]; then exit 1 ; fi ; \
+ } elif [ -f ./.$$i ]; then { \
+ cat ./.$$i ; \
+ } fi ; \
+ done
+
+download:
+ @./download-all
+
+install:
+ for i in $(MODDIRS) ; do \
+ if [ -d $$i ]; then { \
+ $(MAKE) -C $$i install ; \
+ if [ $$? -ne 0 ]; then exit 1 ; fi ; \
+ } fi ; \
+ done
+
+remove:
+ for i in $(MODDIRS) ; do \
+ if [ -d $$i ]; then { \
+ $(MAKE) -C $$i remove ; \
+ } fi ; \
+ done
+
+lclean:
+ rm -f _static_module_*
+
+clean: lclean
+ for i in $(MODDIRS) ; do \
+ if [ -d $$i ]; then { \
+ $(MAKE) -C $$i clean ; \
+ } fi ; \
+ done
+ make -C pammodutil clean