blob: cc32fb69a2a30d42b9352fb93b3fe1272d56dd61 [file] [log] [blame]
# simple make file for the pam_cap module
topdir=$(shell pwd)/..
include ../Make.Rules
# Note (as the author of much of the Linux-PAM library, I am confident
# that this next line does *not* require -lpam on it.) If you think it
# does, *verify that it does*, and if you observe that it fails as
# written (and you know why it fails), email me and explain why. Thanks!
LDLIBS += -L../libcap -lcap
$(MAKE) testcompile
install: all
mkdir -p -m 0755 $(FAKEROOT)$(LIBDIR)/security
install -m 0755 $(FAKEROOT)$(LIBDIR)/security pam_cap.o
$(LD) $(LDFLAGS) -o $< $(LDLIBS)
pam_cap.o: pam_cap.c
$(CC) $(CFLAGS) $(IPATH) -c $< -o $@
testcompile: test.c pam_cap.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
rm -f *.o *.so testcompile *~