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