diff options
author | Sam Chudnick <sam@chudnick.com> | 2023-06-11 08:13:34 -0400 |
---|---|---|
committer | Sam Chudnick <sam@chudnick.com> | 2023-06-11 08:13:34 -0400 |
commit | 30cc1d47d8bb76a2f9c773503f476000d42573ca (patch) | |
tree | 60dd3f7f0bc4bc072e55ef25e068872bbe0d56c9 | |
parent | f77ae63daeba678612b11a274c92c5687cc3de5f (diff) |
Add Makefile
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5c181ef --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,14 @@ | |||
1 | all: pam_mfa | ||
2 | |||
3 | pam_mfa: | ||
4 | gcc -fPIC -c pam/pam_mfa.c -o pam/pam_mfa.o | ||
5 | gcc -shared -o pam/pam_mfa.so pam/pam_mfa.o -lpam | ||
6 | |||
7 | install: all | ||
8 | PAMDIR = /usr/lib/x86_64-linux-gnu/security/ | ||
9 | cp -f pam_mfa.so ${PAMDIR} | ||
10 | chmod 755 ${PAMDIR}/pam_mfa.so | ||
11 | |||
12 | clean: | ||
13 | rm pam_mfa.so | ||
14 | rm pam_mfa.o | ||