1# $Id: Makefile.am 22403 2008-01-11 14:37:26Z lha $ 2 3include $(top_srcdir)/Makefile.am.common 4 5SLC = $(top_builddir)/lib/sl/slc 6 7lib_LTLIBRARIES = libkadm5srv.la libkadm5clnt.la 8libkadm5srv_la_LDFLAGS = -version-info 8:1:0 9libkadm5clnt_la_LDFLAGS = -version-info 7:1:0 10 11if versionscript 12libkadm5srv_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map 13endif 14 15sbin_PROGRAMS = iprop-log 16check_PROGRAMS = default_keys 17noinst_PROGRAMS = test_pw_quality 18 19noinst_LTLIBRARIES = sample_passwd_check.la 20 21sample_passwd_check_la_SOURCES = sample_passwd_check.c 22sample_passwd_check_la_LDFLAGS = -module 23 24libkadm5srv_la_LIBADD = \ 25 $(LIB_com_err) ../krb5/libkrb5.la \ 26 ../hdb/libhdb.la $(LIBADD_roken) 27libkadm5clnt_la_LIBADD = \ 28 $(LIB_com_err) ../krb5/libkrb5.la $(LIBADD_roken) 29 30libexec_PROGRAMS = ipropd-master ipropd-slave 31 32default_keys_SOURCES = default_keys.c 33 34kadm5includedir = $(includedir)/kadm5 35buildkadm5include = $(buildinclude)/kadm5 36 37dist_kadm5include_HEADERS = admin.h private.h kadm5-protos.h kadm5-private.h 38nodist_kadm5include_HEADERS = kadm5_err.h 39 40install-build-headers:: $(dist_kadm5include_HEADERS) $(nodist_kadm5include_HEADERS) 41 @foo='$(dist_kadm5include_HEADERS) $(nodist_kadm5include_HEADERS)'; \ 42 for f in $$foo; do \ 43 f=`basename $$f`; \ 44 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \ 45 else file="$$f"; fi; \ 46 if cmp -s $$file $(buildkadm5include)/$$f 2> /dev/null ; then \ 47 : ; else \ 48 echo "cp $$file $(buildkadm5include)/$$f";\ 49 cp $$file $(buildkadm5include)/$$f; \ 50 fi ; \ 51 done 52 53dist_libkadm5clnt_la_SOURCES = \ 54 ad.c \ 55 chpass_c.c \ 56 client_glue.c \ 57 common_glue.c \ 58 create_c.c \ 59 delete_c.c \ 60 destroy_c.c \ 61 flush_c.c \ 62 free.c \ 63 get_c.c \ 64 get_princs_c.c \ 65 init_c.c \ 66 kadm5_locl.h \ 67 marshall.c \ 68 modify_c.c \ 69 private.h \ 70 privs_c.c \ 71 randkey_c.c \ 72 rename_c.c \ 73 send_recv.c \ 74 kadm5-pwcheck.h \ 75 admin.h 76 77nodist_libkadm5clnt_la_SOURCES = \ 78 kadm5_err.c \ 79 kadm5_err.h 80 81dist_libkadm5srv_la_SOURCES = \ 82 acl.c \ 83 admin.h \ 84 bump_pw_expire.c \ 85 chpass_s.c \ 86 common_glue.c \ 87 context_s.c \ 88 create_s.c \ 89 delete_s.c \ 90 destroy_s.c \ 91 ent_setup.c \ 92 error.c \ 93 flush_s.c \ 94 free.c \ 95 get_princs_s.c \ 96 get_s.c \ 97 init_s.c \ 98 kadm5_locl.h \ 99 keys.c \ 100 log.c \ 101 marshall.c \ 102 modify_s.c \ 103 password_quality.c \ 104 private.h \ 105 privs_s.c \ 106 randkey_s.c \ 107 rename_s.c \ 108 server_glue.c \ 109 set_keys.c \ 110 set_modifier.c \ 111 kadm5-pwcheck.h \ 112 admin.h 113 114nodist_libkadm5srv_la_SOURCES = \ 115 kadm5_err.c \ 116 kadm5_err.h 117 118dist_iprop_log_SOURCES = iprop-log.c 119nodist_iprop_log_SOURCES = iprop-commands.c 120 121ipropd_master_SOURCES = ipropd_master.c ipropd_common.c iprop.h kadm5_locl.h 122 123ipropd_slave_SOURCES = ipropd_slave.c ipropd_common.c iprop.h kadm5_locl.h 124 125man_MANS = kadm5_pwcheck.3 iprop.8 iprop-log.8 126 127LDADD = \ 128 libkadm5srv.la \ 129 $(top_builddir)/lib/hdb/libhdb.la \ 130 $(LIB_openldap) \ 131 $(top_builddir)/lib/krb5/libkrb5.la \ 132 $(top_builddir)/lib/asn1/libasn1.la \ 133 $(LIB_hcrypto) \ 134 $(LIB_roken) \ 135 $(DBLIB) \ 136 $(LIB_dlopen) \ 137 $(LIB_pidfile) 138 139iprop_log_LDADD = \ 140 libkadm5srv.la \ 141 $(top_builddir)/lib/hdb/libhdb.la \ 142 $(LIB_openldap) \ 143 $(top_builddir)/lib/krb5/libkrb5.la \ 144 $(top_builddir)/lib/asn1/libasn1.la \ 145 $(LIB_hcrypto) \ 146 $(top_builddir)/lib/sl/libsl.la \ 147 $(LIB_readline) \ 148 $(LIB_roken) \ 149 $(DBLIB) \ 150 $(LIB_dlopen) \ 151 $(LIB_pidfile) 152 153 154iprop-commands.c iprop-commands.h: iprop-commands.in 155 $(SLC) $(srcdir)/iprop-commands.in 156 157$(libkadm5srv_la_OBJECTS): kadm5_err.h 158$(iprop_log_OBJECTS): iprop-commands.h 159 160client_glue.lo server_glue.lo: $(srcdir)/common_glue.c 161 162CLEANFILES = kadm5_err.c kadm5_err.h iprop-commands.h iprop-commands.c 163 164# to help stupid solaris make 165 166kadm5_err.h: kadm5_err.et 167 168$(libkadm5clnt_la_OBJECTS) $(libkadm5srv_la_OBJECTS): $(srcdir)/kadm5-protos.h $(srcdir)/kadm5-private.h 169 170proto_opts = -q -R '^(_|kadm5_c_|kadm5_s_|kadm5_log)' -P comment 171$(srcdir)/kadm5-protos.h: 172 cd $(srcdir); perl ../../cf/make-proto.pl $(proto_opts) \ 173 -o kadm5-protos.h \ 174 $(dist_libkadm5clnt_la_SOURCES) \ 175 $(dist_libkadm5srv_la_SOURCES) \ 176 || rm -f kadm5-protos.h 177 178$(srcdir)/kadm5-private.h: 179 cd $(srcdir); perl ../../cf/make-proto.pl $(proto_opts) \ 180 -p kadm5-private.h \ 181 $(dist_libkadm5clnt_la_SOURCES) \ 182 $(dist_libkadm5srv_la_SOURCES) \ 183 || rm -f kadm5-private.h 184 185EXTRA_DIST = \ 186 kadm5_err.et \ 187 iprop-commands.in \ 188 $(man_MANS) \ 189 check-cracklib.pl \ 190 flush.c \ 191 sample_passwd_check.c \ 192 version-script.map 193