diff options
author | Charl Botha <cpbotha@cpbotha.net> | 2002-05-14 15:58:53 +0000 |
---|---|---|
committer | Charl Botha <cpbotha@cpbotha.net> | 2002-05-14 15:58:53 +0000 |
commit | bfe9eeea11251c883259fafc80f1bab7505a43a7 (patch) | |
tree | 6f1719911e8fc013d5652a93b385bd0695ca1593 /contrib/Makefile.standalone | |
parent | 783592339fa45b38c3f2ea81b7d73c43ac19315c (diff) | |
download | libpam-pwdfile-bfe9eeea11251c883259fafc80f1bab7505a43a7.tar.gz |
Added contributed files.
Diffstat (limited to 'contrib/Makefile.standalone')
-rw-r--r-- | contrib/Makefile.standalone | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/Makefile.standalone b/contrib/Makefile.standalone new file mode 100644 index 0000000..136f04a --- /dev/null +++ b/contrib/Makefile.standalone @@ -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 |