No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / lib / krb5 / Makefile.am
blob3fbcf96bec5928ba8ce7fbfa34dfbe83cf2882c0
1 # $Heimdal: Makefile.am 22501 2008-01-21 15:43:21Z lha $
2 # $NetBSD$
4 include $(top_srcdir)/Makefile.am.common
6 AM_CPPFLAGS += $(INCLUDE_krb4) $(INCLUDE_hcrypto) -I../com_err -I$(srcdir)/../com_err
8 bin_PROGRAMS = verify_krb5_conf
10 noinst_PROGRAMS =                               \
11         krbhst-test                             \
12         test_alname                             \
13         test_crypto                             \
14         test_get_addrs                          \
15         test_kuserok                            \
16         test_renew                              \
17         test_forward
19 TESTS =                                         \
20         aes-test                                \
21         derived-key-test                        \
22         n-fold-test                             \
23         name-45-test                            \
24         parse-name-test                         \
25         store-test                              \
26         string-to-key-test                      \
27         test_acl                                \
28         test_addr                               \
29         test_cc                                 \
30         test_config                             \
31         test_prf                                \
32         test_store                              \
33         test_crypto_wrapping                    \
34         test_keytab                             \
35         test_mem                                \
36         test_pac                                \
37         test_plugin                             \
38         test_princ                              \
39         test_pkinit_dh2key                      \
40         test_time
42 check_PROGRAMS = $(TESTS) test_hostname
44 LDADD = libkrb5.la \
45         $(LIB_hcrypto) \
46         $(top_builddir)/lib/asn1/libasn1.la \
47         $(LIB_roken)
49 if PKINIT
50 LIB_pkinit = ../hx509/libhx509.la
51 endif
53 libkrb5_la_LIBADD = \
54         $(LIB_pkinit) \
55         $(LIB_com_err) \
56         $(LIB_hcrypto) \
57         $(top_builddir)/lib/asn1/libasn1.la \
58         $(LIBADD_roken) \
59         $(LIB_door_create) \
60         $(LIB_dlopen)
62 lib_LTLIBRARIES = libkrb5.la
64 ERR_FILES = krb5_err.c krb_err.c heim_err.c k524_err.c
66 libkrb5_la_CPPFLAGS = -DBUILD_KRB5_LIB $(AM_CPPFLAGS)
68 dist_libkrb5_la_SOURCES =                       \
69         acache.c                                \
70         acl.c                                   \
71         add_et_list.c                           \
72         addr_families.c                         \
73         aname_to_localname.c                    \
74         appdefault.c                            \
75         asn1_glue.c                             \
76         auth_context.c                          \
77         build_ap_req.c                          \
78         build_auth.c                            \
79         cache.c                                 \
80         changepw.c                              \
81         codec.c                                 \
82         config_file.c                           \
83         config_file_netinfo.c                   \
84         convert_creds.c                         \
85         constants.c                             \
86         context.c                               \
87         copy_host_realm.c                       \
88         crc.c                                   \
89         creds.c                                 \
90         crypto.c                                \
91         doxygen.c                               \
92         data.c                                  \
93         digest.c                                \
94         eai_to_heim_errno.c                     \
95         error_string.c                          \
96         expand_hostname.c                       \
97         fcache.c                                \
98         free.c                                  \
99         free_host_realm.c                       \
100         generate_seq_number.c                   \
101         generate_subkey.c                       \
102         get_addrs.c                             \
103         get_cred.c                              \
104         get_default_principal.c                 \
105         get_default_realm.c                     \
106         get_for_creds.c                         \
107         get_host_realm.c                        \
108         get_in_tkt.c                            \
109         get_in_tkt_pw.c                         \
110         get_in_tkt_with_keytab.c                \
111         get_in_tkt_with_skey.c                  \
112         get_port.c                              \
113         heim_threads.h                          \
114         init_creds.c                            \
115         init_creds_pw.c                         \
116         kcm.c                                   \
117         kcm.h                                   \
118         keyblock.c                              \
119         keytab.c                                \
120         keytab_any.c                            \
121         keytab_file.c                           \
122         keytab_keyfile.c                        \
123         keytab_krb4.c                           \
124         keytab_memory.c                         \
125         krb5_locl.h                             \
126         krb5-v4compat.h                         \
127         krbhst.c                                \
128         kuserok.c                               \
129         log.c                                   \
130         mcache.c                                \
131         misc.c                                  \
132         mk_error.c                              \
133         mk_priv.c                               \
134         mk_rep.c                                \
135         mk_req.c                                \
136         mk_req_ext.c                            \
137         mk_safe.c                               \
138         mit_glue.c                              \
139         net_read.c                              \
140         net_write.c                             \
141         n-fold.c                                \
142         pac.c                                   \
143         padata.c                                \
144         pkinit.c                                \
145         principal.c                             \
146         prog_setup.c                            \
147         prompter_posix.c                        \
148         rd_cred.c                               \
149         rd_error.c                              \
150         rd_priv.c                               \
151         rd_rep.c                                \
152         rd_req.c                                \
153         rd_safe.c                               \
154         read_message.c                          \
155         recvauth.c                              \
156         replay.c                                \
157         send_to_kdc.c                           \
158         sendauth.c                              \
159         set_default_realm.c                     \
160         sock_principal.c                        \
161         store.c                                 \
162         store-int.h                             \
163         store_emem.c                            \
164         store_fd.c                              \
165         store_mem.c                             \
166         plugin.c                                \
167         ticket.c                                \
168         time.c                                  \
169         transited.c                             \
170         v4_glue.c                               \
171         verify_init.c                           \
172         verify_user.c                           \
173         version.c                               \
174         warn.c                                  \
175         write_message.c
177 nodist_libkrb5_la_SOURCES =                     \
178         $(ERR_FILES)
180 libkrb5_la_LDFLAGS = -version-info 24:0:0
182 if versionscript
183 libkrb5_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
184 endif
186 $(libkrb5_la_OBJECTS) $(verify_krb5_conf_OBJECTS): $(srcdir)/krb5-protos.h $(srcdir)/krb5-private.h
188 $(srcdir)/krb5-protos.h:
189         cd $(srcdir) && perl ../../cf/make-proto.pl -E KRB5_LIB_FUNCTION -q -P comment -o krb5-protos.h $(dist_libkrb5_la_SOURCES) || rm -f krb5-protos.h
191 $(srcdir)/krb5-private.h:
192         cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p krb5-private.h $(dist_libkrb5_la_SOURCES) || rm -f krb5-private.h
194 man_MANS =                                      \
195         kerberos.8                              \
196         krb5.3                                  \
197         krb5.conf.5                             \
198         krb524_convert_creds_kdc.3              \
199         krb5_425_conv_principal.3               \
200         krb5_acl_match_file.3                   \
201         krb5_address.3                          \
202         krb5_aname_to_localname.3               \
203         krb5_appdefault.3                       \
204         krb5_auth_context.3                     \
205         krb5_c_make_checksum.3                  \
206         krb5_ccache.3                           \
207         krb5_check_transited.3                  \
208         krb5_compare_creds.3                    \
209         krb5_config.3                           \
210         krb5_context.3                          \
211         krb5_create_checksum.3                  \
212         krb5_creds.3                            \
213         krb5_crypto_init.3                      \
214         krb5_data.3                             \
215         krb5_digest.3                           \
216         krb5_eai_to_heim_errno.3                \
217         krb5_encrypt.3                          \
218         krb5_expand_hostname.3                  \
219         krb5_find_padata.3                      \
220         krb5_generate_random_block.3            \
221         krb5_get_all_client_addrs.3             \
222         krb5_get_credentials.3                  \
223         krb5_get_creds.3                        \
224         krb5_get_forwarded_creds.3              \
225         krb5_get_in_cred.3                      \
226         krb5_get_init_creds.3                   \
227         krb5_get_krbhst.3                       \
228         krb5_getportbyname.3                    \
229         krb5_init_context.3                     \
230         krb5_is_thread_safe.3                   \
231         krb5_keyblock.3                         \
232         krb5_keytab.3                           \
233         krb5_krbhst_init.3                      \
234         krb5_kuserok.3                          \
235         krb5_mk_req.3                           \
236         krb5_mk_safe.3                          \
237         krb5_openlog.3                          \
238         krb5_parse_name.3                       \
239         krb5_principal.3                        \
240         krb5_rcache.3                           \
241         krb5_rd_error.3                         \
242         krb5_rd_safe.3                          \
243         krb5_set_default_realm.3                \
244         krb5_set_password.3                     \
245         krb5_storage.3                          \
246         krb5_string_to_key.3                    \
247         krb5_ticket.3                           \
248         krb5_timeofday.3                        \
249         krb5_unparse_name.3                     \
250         krb5_verify_init_creds.3                \
251         krb5_verify_user.3                      \
252         krb5_warn.3                             \
253         verify_krb5_conf.8
255 dist_include_HEADERS = \
256         krb5.h \
257         krb5-protos.h \
258         krb5-private.h \
259         krb5_ccapi.h
261 nodist_include_HEADERS = krb5_err.h heim_err.h k524_err.h 
263 # XXX use nobase_include_HEADERS = krb5/locate_plugin.h
264 krb5dir = $(includedir)/krb5
265 krb5_HEADERS = locate_plugin.h
267 build_HEADERZ = \
268         heim_threads.h \
269         $(krb5_HEADERS) \
270         krb_err.h
272 CLEANFILES = \
273         krb5_err.c krb5_err.h \
274         krb_err.c krb_err.h \
275         heim_err.c heim_err.h \
276         k524_err.c k524_err.h
278 $(libkrb5_la_OBJECTS): krb5_err.h krb_err.h heim_err.h k524_err.h
280 EXTRA_DIST = \
281         krb5_err.et \
282         krb_err.et \
283         heim_err.et \
284         k524_err.et \
285         $(man_MANS) \
286         version-script.map \
287         krb5.moduli
289 #sysconf_DATA = krb5.moduli
291 # to help stupid solaris make
293 krb5_err.h: krb5_err.et
295 krb_err.h: krb_err.et
297 heim_err.h: heim_err.et
299 k524_err.h: k524_err.et