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