count number of enctypes too
[heimdal.git] / lib / krb5 / Makefile.am
blob2bcc32588240d3d1030d6ff63140145153f63df6
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += $(INCLUDE_krb4) $(INCLUDE_hcrypto) -I../com_err -I$(srcdir)/../com_err $(INCLUDE_sqlite3) $(INCLUDE_libintl)
7 bin_PROGRAMS = verify_krb5_conf
9 noinst_PROGRAMS =                               \
10         krbhst-test                             \
11         test_gic                                \
12         test_alname                             \
13         test_crypto                             \
14         test_rfc3961                            \
15         test_get_addrs                          \
16         test_kuserok                            \
17         test_renew                              \
18         test_forward
20 noinst_LTLIBRARIES =                            \
21         librfc3961.la
23 TESTS =                                         \
24         aes-test                                \
25         derived-key-test                        \
26         n-fold-test                             \
27         parse-name-test                         \
28         store-test                              \
29         string-to-key-test                      \
30         test_acl                                \
31         test_addr                               \
32         test_cc                                 \
33         test_config                             \
34         test_fx                                 \
35         test_prf                                \
36         test_store                              \
37         test_crypto_wrapping                    \
38         test_keytab                             \
39         test_mem                                \
40         test_pac                                \
41         test_plugin                             \
42         test_princ                              \
43         test_pkinit_dh2key                      \
44         test_pknistkdf                          \
45         test_time                               \
46         test_x500
48 check_DATA = test_config_strings.out
50 check_PROGRAMS = $(TESTS) test_hostname test_ap-req
52 LDADD = libkrb5.la \
53         $(LIB_hcrypto) \
54         $(top_builddir)/lib/asn1/libasn1.la \
55         $(top_builddir)/lib/wind/libwind.la \
56         $(LIB_roken)
58 if PKINIT
59 LIB_pkinit = ../hx509/libhx509.la
60 endif
62 if have_scc
63 use_sqlite = $(LIB_sqlite3)
64 endif
66 libkrb5_la_LIBADD = \
67         $(top_builddir)/lib/asn1/libasn1.la \
68         $(top_builddir)/lib/ipc/libheim-ipcc.la \
69         $(top_builddir)/lib/wind/libwind.la \
70         $(top_builddir)/base/libheimbase.la \
71         $(LIB_pkinit) \
72         $(use_sqlite) \
73         $(LIB_com_err) \
74         $(LIB_hcrypto) \
75         $(LIB_libintl) \
76         $(LIBADD_roken) \
77         $(PTHREAD_LIBADD) \
78         $(LIB_door_create) \
79         $(LIB_dlopen)
81 librfc3961_la_LIBADD = \
82         $(top_builddir)/lib/asn1/libasn1.la \
83         $(top_builddir)/lib/ipc/libheim-ipcc.la \
84         $(top_builddir)/lib/wind/libwind.la \
85         $(LIB_pkinit) \
86         $(use_sqlite) \
87         $(LIB_com_err) \
88         $(LIB_hcrypto) \
89         $(LIB_libintl) \
90         $(LIBADD_roken) \
91         $(PTHREAD_LIBADD) \
92         $(LIB_door_create) \
93         $(LIB_dlopen)
95 lib_LTLIBRARIES = libkrb5.la
97 ERR_FILES = krb5_err.c krb_err.c heim_err.c k524_err.c
99 libkrb5_la_CPPFLAGS = \
100         -DBUILD_KRB5_LIB \
101         $(AM_CPPFLAGS) \
102         -DHEIMDAL_LOCALEDIR='"$(localedir)"'
104 librfc3961_la_CPPFLAGS = \
105         -DBUILD_KRB5_LIB \
106         $(AM_CPPFLAGS)
108 dist_libkrb5_la_SOURCES =                       \
109         acache.c                                \
110         acl.c                                   \
111         add_et_list.c                           \
112         addr_families.c                         \
113         aname_to_localname.c                    \
114         appdefault.c                            \
115         asn1_glue.c                             \
116         auth_context.c                          \
117         build_ap_req.c                          \
118         build_auth.c                            \
119         cache.c                                 \
120         changepw.c                              \
121         codec.c                                 \
122         config_file.c                           \
123         convert_creds.c                         \
124         constants.c                             \
125         context.c                               \
126         copy_host_realm.c                       \
127         crc.c                                   \
128         creds.c                                 \
129         crypto.c                                \
130         crypto.h                                \
131         crypto-aes.c                            \
132         crypto-algs.c                           \
133         crypto-arcfour.c                        \
134         crypto-des.c                            \
135         crypto-des-common.c                     \
136         crypto-des3.c                           \
137         crypto-evp.c                            \
138         crypto-null.c                           \
139         crypto-pk.c                             \
140         crypto-rand.c                           \
141         doxygen.c                               \
142         data.c                                  \
143         deprecated.c                            \
144         digest.c                                \
145         eai_to_heim_errno.c                     \
146         error_string.c                          \
147         expand_hostname.c                       \
148         expand_path.c                           \
149         fcache.c                                \
150         free.c                                  \
151         free_host_realm.c                       \
152         generate_seq_number.c                   \
153         generate_subkey.c                       \
154         get_addrs.c                             \
155         get_cred.c                              \
156         get_default_principal.c                 \
157         get_default_realm.c                     \
158         get_for_creds.c                         \
159         get_host_realm.c                        \
160         get_in_tkt.c                            \
161         get_port.c                              \
162         init_creds.c                            \
163         init_creds_pw.c                         \
164         kcm.c                                   \
165         kcm.h                                   \
166         keyblock.c                              \
167         keytab.c                                \
168         keytab_any.c                            \
169         keytab_file.c                           \
170         keytab_keyfile.c                        \
171         keytab_memory.c                         \
172         krb5_locl.h                             \
173         krb5-v4compat.h                         \
174         krbhst.c                                \
175         kuserok.c                               \
176         log.c                                   \
177         mcache.c                                \
178         misc.c                                  \
179         mk_error.c                              \
180         mk_priv.c                               \
181         mk_rep.c                                \
182         mk_req.c                                \
183         mk_req_ext.c                            \
184         mk_safe.c                               \
185         mit_glue.c                              \
186         net_read.c                              \
187         net_write.c                             \
188         n-fold.c                                \
189         pac.c                                   \
190         padata.c                                \
191         pcache.c                                \
192         pkinit.c                                \
193         principal.c                             \
194         prog_setup.c                            \
195         prompter_posix.c                        \
196         rd_cred.c                               \
197         rd_error.c                              \
198         rd_priv.c                               \
199         rd_rep.c                                \
200         rd_req.c                                \
201         rd_safe.c                               \
202         read_message.c                          \
203         recvauth.c                              \
204         replay.c                                \
205         salt.c                                  \
206         salt-aes.c                              \
207         salt-arcfour.c                          \
208         salt-des.c                              \
209         salt-des3.c                             \
210         scache.c                                \
211         send_to_kdc.c                           \
212         sendauth.c                              \
213         set_default_realm.c                     \
214         sock_principal.c                        \
215         store.c                                 \
216         store-int.c                             \
217         store-int.h                             \
218         store_emem.c                            \
219         store_fd.c                              \
220         store_mem.c                             \
221         plugin.c                                \
222         ticket.c                                \
223         time.c                                  \
224         transited.c                             \
225         verify_init.c                           \
226         verify_user.c                           \
227         version.c                               \
228         warn.c                                  \
229         write_message.c
231 nodist_libkrb5_la_SOURCES =                     \
232         $(ERR_FILES)
234 libkrb5_la_LDFLAGS = -version-info 26:0:0
236 if versionscript
237 libkrb5_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
238 endif
240 $(libkrb5_la_OBJECTS) $(verify_krb5_conf_OBJECTS) $(librfc3961_la_OBJECTS): $(srcdir)/krb5-protos.h $(srcdir)/krb5-private.h krb5_err.h heim_err.h k524_err.h krb5_err.h krb_err.h k524_err.h
242 librfc3961_la_SOURCES =                         \
243         crc.c                                   \
244         crypto.c                                \
245         crypto.h                                \
246         crypto-aes.c                            \
247         crypto-algs.c                           \
248         crypto-arcfour.c                        \
249         crypto-des.c                            \
250         crypto-des-common.c                     \
251         crypto-des3.c                           \
252         crypto-evp.c                            \
253         crypto-null.c                           \
254         crypto-pk.c                             \
255         crypto-rand.c                           \
256         crypto-stubs.c                          \
257         data.c                                  \
258         error_string.c                          \
259         keyblock.c                              \
260         n-fold.c                                \
261         salt.c                                  \
262         salt-aes.c                              \
263         salt-arcfour.c                          \
264         salt-des.c                              \
265         salt-des3.c                             \
266         store-int.c                             \
267         warn.c
269 test_rfc3961_LDADD =                            \
270         librfc3961.la                           \
271         $(top_builddir)/lib/asn1/libasn1.la     \
272         $(top_builddir)/lib/wind/libwind.la     \
273         $(LIB_hcrypto)                          \
274         $(LIB_roken)
276 $(srcdir)/krb5-protos.h:
277         cd $(srcdir) && perl ../../cf/make-proto.pl -E KRB5_LIB -q -P comment -o krb5-protos.h $(dist_libkrb5_la_SOURCES) || rm -f krb5-protos.h
279 $(srcdir)/krb5-private.h:
280         cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p krb5-private.h $(dist_libkrb5_la_SOURCES) || rm -f krb5-private.h
282 man_MANS =                                      \
283         kerberos.8                              \
284         krb5.conf.5                             \
285         krb524_convert_creds_kdc.3              \
286         krb5_425_conv_principal.3               \
287         krb5_acl_match_file.3                   \
288         krb5_aname_to_localname.3               \
289         krb5_appdefault.3                       \
290         krb5_auth_context.3                     \
291         krb5_c_make_checksum.3                  \
292         krb5_check_transited.3                  \
293         krb5_create_checksum.3                  \
294         krb5_creds.3                            \
295         krb5_digest.3                           \
296         krb5_eai_to_heim_errno.3                \
297         krb5_encrypt.3                          \
298         krb5_find_padata.3                      \
299         krb5_generate_random_block.3            \
300         krb5_get_all_client_addrs.3             \
301         krb5_get_credentials.3                  \
302         krb5_get_creds.3                        \
303         krb5_get_forwarded_creds.3              \
304         krb5_get_in_cred.3                      \
305         krb5_get_init_creds.3                   \
306         krb5_get_krbhst.3                       \
307         krb5_getportbyname.3                    \
308         krb5_init_context.3                     \
309         krb5_is_thread_safe.3                   \
310         krb5_krbhst_init.3                      \
311         krb5_mk_req.3                           \
312         krb5_mk_safe.3                          \
313         krb5_openlog.3                          \
314         krb5_parse_name.3                       \
315         krb5_principal.3                        \
316         krb5_rcache.3                           \
317         krb5_rd_error.3                         \
318         krb5_rd_safe.3                          \
319         krb5_set_default_realm.3                \
320         krb5_set_password.3                     \
321         krb5_string_to_key.3                    \
322         krb5_timeofday.3                        \
323         krb5_verify_init_creds.3                \
324         krb5_verify_user.3                      \
325         verify_krb5_conf.8
327 dist_include_HEADERS = \
328         krb5.h \
329         krb5-protos.h \
330         krb5-private.h \
331         krb5_ccapi.h
333 nodist_include_HEADERS = krb5_err.h heim_err.h k524_err.h
335 # XXX use nobase_include_HEADERS = krb5/locate_plugin.h
336 krb5dir = $(includedir)/krb5
337 krb5_HEADERS = locate_plugin.h send_to_kdc_plugin.h ccache_plugin.h
339 build_HEADERZ = \
340         $(krb5_HEADERS) \
341         krb_err.h
343 CLEANFILES = \
344         test_config_strings.out \
345         test-store-data \
346         krb5_err.c krb5_err.h \
347         krb_err.c krb_err.h \
348         heim_err.c heim_err.h \
349         k524_err.c k524_err.h
351 $(libkrb5_la_OBJECTS): krb5_err.h krb_err.h heim_err.h k524_err.h
353 test_config_strings.out: test_config_strings.cfg
354         $(CP) $(srcdir)/test_config_strings.cfg test_config_strings.out
356 EXTRA_DIST = \
357         krb5_err.et \
358         krb_err.et \
359         heim_err.et \
360         k524_err.et \
361         $(man_MANS) \
362         version-script.map \
363         test_config_strings.cfg \
364         krb5.moduli
366 #sysconf_DATA = krb5.moduli
368 # to help stupid solaris make
370 krb5_err.h: krb5_err.et
372 krb_err.h: krb_err.et
374 heim_err.h: heim_err.et
376 k524_err.h: k524_err.et