diff options
| author | Jakob Kaivo <jkk@ung.org> | 2021-02-01 13:09:18 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2021-02-01 13:09:18 -0500 |
| commit | 56a7bd183c92c4f1b519376ccd6155a24bae970c (patch) | |
| tree | 5041a2bea9c8cf5e67e4a20b765722948ce8fcde /check/Makefile | |
| parent | 7e2116e5b07bd2a065bc9b8f1cbc63f57e41e285 (diff) | |
implement basic PAM authentication
Diffstat (limited to 'check/Makefile')
| -rw-r--r-- | check/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/check/Makefile b/check/Makefile index 67b3f91..5754474 100644 --- a/check/Makefile +++ b/check/Makefile @@ -8,7 +8,7 @@ CC=c99 LD=$(CC) CFLAGS=-Wall -Wextra -Wpedantic -Werror -g LDFLAGS= -LDLIBS= +LDLIBS=-lpam -lpam_misc SRCDIR=. OBJDIR=. BINDIR=$(OBJDIR) @@ -23,6 +23,11 @@ $(OBJDIR)/parse.o: $(SRCDIR)/check.h $(OBJDIR)/parse.o: $(SRCDIR)/parse.c $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/parse.c +$(BINDIR)/check: $(OBJDIR)/pam.o +$(OBJDIR)/pam.o: $(SRCDIR)/check.h +$(OBJDIR)/pam.o: $(SRCDIR)/pam.c + $(CC) $(CFLAGS) -o $@ -c $(SRCDIR)/pam.c + $(BINDIR)/check: $(OBJDIR)/check.o $(OBJDIR)/check.o: $(SRCDIR)/check.h $(OBJDIR)/check.o: $(SRCDIR)/check.c |
