Blame pam_cap/Makefile

Packit Service 410935
# simple make file for the pam_cap module
Packit Service 410935
Packit Service 410935
topdir=$(shell pwd)/..
Packit Service 410935
include ../Make.Rules
Packit Service 410935
Packit Service 410935
# Note (as the author of much of the Linux-PAM library, I am confident
Packit Service 410935
# that this next line does *not* require -lpam on it.) If you think it
Packit Service 410935
# does, *verify that it does*, and if you observe that it fails as
Packit Service 410935
# written (and you know why it fails), email me and explain why. Thanks!
Packit Service 410935
LDLIBS += -L../libcap -lcap
Packit Service 410935
Packit Service 410935
all: pam_cap.so
Packit Service c7be57
	$(MAKE) testlink
Packit Service 410935
Packit Service 410935
install: all
Packit Service 410935
	mkdir -p -m 0755 $(FAKEROOT)$(LIBDIR)/security
Packit Service 410935
	install -m 0755 pam_cap.so $(FAKEROOT)$(LIBDIR)/security
Packit Service 410935
Packit Service 410935
pam_cap.so: pam_cap.o
Packit Service 410935
	$(LD) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
Packit Service 410935
Packit Service 410935
pam_cap.o: pam_cap.c
Packit Service 410935
	$(CC) $(CFLAGS) $(IPATH) -c $< -o $@
Packit Service 410935
Packit Service c7be57
test_pam_cap: test_pam_cap.c pam_cap.c
Packit Service c7be57
	$(CC) $(CFLAGS) $(IPATH) -o $@ test_pam_cap.c $(LIBCAPLIB) $(LDFLAGS) --static
Packit Service c7be57
Packit Service c7be57
testlink: test.c pam_cap.o
Packit Service 410935
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+ -lpam -ldl $(LDLIBS)
Packit Service 410935
Packit Service c7be57
test: pam_cap.so
Packit Service c7be57
	make testlink
Packit Service c7be57
Packit Service c7be57
sudotest: test test_pam_cap
Packit Service c7be57
	sudo ./test_pam_cap root 0x0 0x0 0x0 config=./capability.conf
Packit Service c7be57
	sudo ./test_pam_cap root 0x0 0x0 0x0 config=./sudotest.conf
Packit Service c7be57
	sudo ./test_pam_cap alpha 0x0 0x0 0x0 config=./capability.conf
Packit Service c7be57
	sudo ./test_pam_cap alpha 0x0 0x1 0x80 config=./sudotest.conf
Packit Service c7be57
	sudo ./test_pam_cap beta 0x0 0x1 0x0 config=./sudotest.conf
Packit Service c7be57
	sudo ./test_pam_cap gamma 0x0 0x0 0x81 config=./sudotest.conf
Packit Service c7be57
	sudo ./test_pam_cap delta 0x41 0x80 0x41 config=./sudotest.conf
Packit Service c7be57
Packit Service 410935
clean:
Packit Service c7be57
	rm -f *.o *.so testlink test_pam_cap *~