aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeraphim Mellos <mellos@ceid.upatras.gr>2008-07-23 12:53:11 +0300
committerSeraphim Mellos <mellos@ceid.upatras.gr>2008-07-23 12:53:11 +0300
commitfefa5a6cf8a6b8bf3199969956e3a604a59e5795 (patch)
treea5fcf166a92f0829803a9d423c43520685981a29
parentStarted pam_shells (diff)
downloadopenpam-modules-fefa5a6cf8a6b8bf3199969956e3a604a59e5795.tar.gz
openpam-modules-fefa5a6cf8a6b8bf3199969956e3a604a59e5795.tar.bz2
openpam-modules-fefa5a6cf8a6b8bf3199969956e3a604a59e5795.zip
Makefile corrections
-rw-r--r--modules/pam_shells/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/modules/pam_shells/Makefile b/modules/pam_shells/Makefile
new file mode 100644
index 0000000..0d736a5
--- /dev/null
+++ b/modules/pam_shells/Makefile
@@ -0,0 +1,40 @@
+#
+## Copyright (c) 2008 by Seraphim Mellos. See LICENSE.
+#
+
+include ../../Make.defs
+
+TITLE = pam_shells
+PAM_SO_SUFFIX =
+LIBSHARED = $(TITLE).so$(PAM_SO_SUFFIX)
+SHLIBMODE = 755
+MAN8 = $(TITLE).8
+MANMODE = 644
+#SECUREDIR = /lib/security
+#MANDIR = /usr/share/man
+#DESTDIR =
+
+
+
+PROJ = $(LIBSHARED)
+OBJS = pam_shells.o
+
+all:
+ case "`uname -s`" in \
+ Linux) $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
+ LDLIBS="$(LDLIBS)" $(PROJ);;\
+ *) echo "OS not supported.";;\
+ esac
+
+$(LIBSHARED): $(OBJS)
+ $(LD) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $(LIBSHARED)
+
+.c.o:
+ $(CC) $(CFLAGS) -c $*.c
+
+
+clean:
+ $(RM) $(PROJ) *.o
+
+
+