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