From 30cc1d47d8bb76a2f9c773503f476000d42573ca Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 11 Jun 2023 08:13:34 -0400 Subject: Add Makefile --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5c181ef --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +all: pam_mfa + +pam_mfa: + gcc -fPIC -c pam/pam_mfa.c -o pam/pam_mfa.o + gcc -shared -o pam/pam_mfa.so pam/pam_mfa.o -lpam + +install: all + PAMDIR = /usr/lib/x86_64-linux-gnu/security/ + cp -f pam_mfa.so ${PAMDIR} + chmod 755 ${PAMDIR}/pam_mfa.so + +clean: + rm pam_mfa.so + rm pam_mfa.o -- cgit v1.2.3