From 56a7bd183c92c4f1b519376ccd6155a24bae970c Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 1 Feb 2021 13:09:18 -0500 Subject: implement basic PAM authentication --- check/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'check/Makefile') 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 -- cgit v1.2.1