1# $Id: Makefile.am 397 2007-10-24 10:01:13Z des $ 2 3NULL = 4 5# Standard PAM API 6PMAN = \ 7 pam_acct_mgmt.3 \ 8 pam_authenticate.3 \ 9 pam_chauthtok.3 \ 10 pam_close_session.3 \ 11 pam_end.3 \ 12 pam_get_data.3 \ 13 pam_get_item.3 \ 14 pam_get_user.3 \ 15 pam_getenv.3 \ 16 pam_getenvlist.3 \ 17 pam_open_session.3 \ 18 pam_putenv.3 \ 19 pam_set_data.3 \ 20 pam_set_item.3 \ 21 pam_setcred.3 \ 22 pam_start.3 \ 23 pam_strerror.3 \ 24 $(NULL) 25 26# Standard module API 27MMAN = \ 28 pam_sm_acct_mgmt.3 \ 29 pam_sm_authenticate.3 \ 30 pam_sm_chauthtok.3 \ 31 pam_sm_close_session.3 \ 32 pam_sm_open_session.3 \ 33 pam_sm_setcred.3 \ 34 $(NULL) 35 36# OpenPAM extensions 37OMAN = \ 38 openpam_borrow_cred.3 \ 39 openpam_free_data.3 \ 40 openpam_free_envlist.3 \ 41 openpam_get_option.3 \ 42 openpam_log.3 \ 43 openpam_nullconv.3 \ 44 openpam_readline.3 \ 45 openpam_restore_cred.3 \ 46 openpam_set_option.3 \ 47 openpam_ttyconv.3 \ 48 pam_error.3 \ 49 pam_get_authtok.3 \ 50 pam_info.3 \ 51 pam_prompt.3 \ 52 pam_setenv.3 \ 53 pam_verror.3 \ 54 pam_vinfo.3 \ 55 pam_vprompt.3 \ 56 $(NULL) 57 58EXTRA_DIST = openpam.man pam.man 59 60ALLCMAN = $(PMAN) $(MMAN) $(OMAN) 61 62LINKS = $(ALLCMAN:.3=.c) openpam_configure.c openpam_dispatch.c 63 64dist_man3_MANS = $(ALLCMAN) openpam.3 pam.3 pam_conv.3 65 66dist_man5_MANS = pam.conf.5 67 68CLEANFILES = $(ALLCMAN) $(LINKS) openpam.3 pam.3 symlink-stamp 69 70GENDOC = $(top_srcdir)/misc/gendoc.pl 71 72SUFFIXES = .3 73 74$(LINKS): symlink-stamp 75 76symlink-stamp: Makefile 77 for lnk in $(LINKS); do \ 78 ln -sf $(top_srcdir)/lib/$$lnk . || exit; \ 79 done 80 touch symlink-stamp 81 82.c.3: symlink-stamp 83 perl -w $(GENDOC) $< 84 85openpam.3: $(OMAN) $(GENDOC) openpam.man 86 perl -w $(GENDOC) -o $(OMAN) <$(srcdir)/openpam.man 87 88pam.3: $(PMAN) $(GENDOC) pam.man 89 perl -w $(GENDOC) -p $(PMAN) <$(srcdir)/pam.man 90