aboutsummaryrefslogtreecommitdiff
path: root/contrib/Makefile.standalone-0.95
diff options
context:
space:
mode:
authorCharl Botha <cpbotha@cpbotha.net>2003-07-07 15:09:41 +0000
committerCharl Botha <cpbotha@cpbotha.net>2003-07-07 15:09:41 +0000
commitdc44785e001a70bc4222bd8084fc4ee7191ef049 (patch)
tree8fbd7321bb7d76635567d6beeff1e08e81f00cc6 /contrib/Makefile.standalone-0.95
parent102f385da827867fcfc5719977c4d47dad70daeb (diff)
downloadlibpam-pwdfile-dc44785e001a70bc4222bd8084fc4ee7191ef049.tar.gz
Added new contributed Makefile.
Diffstat (limited to 'contrib/Makefile.standalone-0.95')
-rw-r--r--contrib/Makefile.standalone-0.9526
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/Makefile.standalone-0.95 b/contrib/Makefile.standalone-0.95
new file mode 100644
index 0000000..136f04a
--- /dev/null
+++ b/contrib/Makefile.standalone-0.95
@@ -0,0 +1,26 @@
+PAM_LIB_DIR = /lib/security
+CC = gcc
+LD = ld
+INSTALL = /usr/bin/install
+CFLAGS = -fPIC -O2 -c -g -Wall -Wformat-security
+LDFLAGS = -x --shared
+PAMLIB = -lpam
+CRYPTLIB = -lcrypt
+
+all: pam_pwdfile.so
+
+pam_pwdfile.so: pam_pwdfile.o
+ $(LD) $(LDFLAGS) -o pam_pwdfile.so pam_pwdfile.o $(PAMLIB) $(CRYPTLIB)
+
+pam_pwdfile.o: pam_pwdfile.c
+ $(CC) $(CFLAGS) pam_pwdfile.c
+
+install: pam_pwdfile.so
+ $(INSTALL) -m 0755 -d $(PAM_LIB_DIR)
+ $(INSTALL) -m 0755 pam_pwdfile.so $(PAM_LIB_DIR)
+
+clean:
+ rm -f pam_pwdfile.o pam_pwdfile.so
+
+spotless:
+ rm -f pam_pwdfile.so pam_pwdfile.o *~ core