pam
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
542 B

  1. INSTALL := install
  2. DESTDIR :=
  3. PIC := -fPIC
  4. LD_D := $(CC) -shared
  5. CFLAGS :=
  6. SHARE := -g $(PIC)
  7. pam_keystore: pam_keystore.c
  8. $(CC) $(CFLAGS) $(SHARE) -c pam_keystore.c -o pam_keystore.o
  9. $(LD_D) -o pam_keystore.so pam_keystore.o -lc -lkeyutils -lpam
  10. clean: pam_keystore.so pam_keystore.o
  11. $(RM) pam_keystore.o
  12. $(RM) pam_keystore.so
  13. install: pam_keystore.so
  14. $(INSTALL) -D -m 0755 pam_keystore.so $(DESTDIR)/lib/security/pam_keystore.so
  15. uninstall: $(DESTDIR)/lib/security/pam_keystore.so
  16. $(RM) $(DESTDIR)/lib/security/pam_keystore.so