sprinkle libadd for freebsd
[heimdal.git] / lib / krb5 / Makefile.am
blob0441e807672607669840be1c009d17fd8eb307ba
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_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_fx                                 \
32         test_prf                                \
33         test_store                              \
34         test_crypto_wrapping                    \
35         test_keytab                             \
36         test_mem                                \
37         test_pac                                \
38         test_plugin                             \
39         test_princ                              \
40         test_pkinit_dh2key                      \
41         test_pknistkdf                          \
42         test_time
44 check_PROGRAMS = $(TESTS) test_hostname test_ap-req
46 LDADD = libkrb5.la \
47         $(LIB_hcrypto) \
48         $(top_builddir)/lib/asn1/libasn1.la \
49         $(top_builddir)/lib/wind/libwind.la \
50         $(LIB_roken)
52 if PKINIT
53 LIB_pkinit = ../hx509/libhx509.la
54 endif
56 libkrb5_la_LIBADD = \
57         $(LIB_pkinit) \
58         $(LIB_sqlite3) \
59         $(LIB_com_err) \
60         $(LIB_hcrypto) \
61         $(top_builddir)/lib/asn1/libasn1.la \
62         ../wind/libwind.la \
63         $(LIB_libintl) \
64         $(LIBADD_roken) \
65         $(PTHREAD_LIBADD) \
66         $(LIB_door_create) \
67         $(LIB_dlopen)
69 lib_LTLIBRARIES = libkrb5.la
71 ERR_FILES = krb5_err.c krb_err.c heim_err.c k524_err.c
73 libkrb5_la_CPPFLAGS = \
74         -DBUILD_KRB5_LIB \
75         $(AM_CPPFLAGS) \
76         -DHEIMDAL_LOCALEDIR='"$(localedir)"'
78 dist_libkrb5_la_SOURCES =                       \
79         acache.c                                \
80         acl.c                                   \
81         add_et_list.c                           \
82         addr_families.c                         \
83         aname_to_localname.c                    \
84         appdefault.c                            \
85         asn1_glue.c                             \
86         auth_context.c                          \
87         build_ap_req.c                          \
88         build_auth.c                            \
89         cache.c                                 \
90         changepw.c                              \
91         codec.c                                 \
92         config_file.c                           \
93         convert_creds.c                         \
94         constants.c                             \
95         context.c                               \
96         copy_host_realm.c                       \
97         crc.c                                   \
98         creds.c                                 \
99         crypto.c                                \
100         doxygen.c                               \
101         data.c                                  \
102         deprecated.c                            \
103         digest.c                                \
104         eai_to_heim_errno.c                     \
105         error_string.c                          \
106         expand_hostname.c                       \
107         fcache.c                                \
108         free.c                                  \
109         free_host_realm.c                       \
110         generate_seq_number.c                   \
111         generate_subkey.c                       \
112         get_addrs.c                             \
113         get_cred.c                              \
114         get_default_principal.c                 \
115         get_default_realm.c                     \
116         get_for_creds.c                         \
117         get_host_realm.c                        \
118         get_in_tkt.c                            \
119         get_port.c                              \
120         init_creds.c                            \
121         init_creds_pw.c                         \
122         kcm.c                                   \
123         kcm.h                                   \
124         keyblock.c                              \
125         keytab.c                                \
126         keytab_any.c                            \
127         keytab_file.c                           \
128         keytab_keyfile.c                        \
129         keytab_memory.c                         \
130         krb5_locl.h                             \
131         krb5-v4compat.h                         \
132         krbhst.c                                \
133         kuserok.c                               \
134         log.c                                   \
135         mcache.c                                \
136         misc.c                                  \
137         mk_error.c                              \
138         mk_priv.c                               \
139         mk_rep.c                                \
140         mk_req.c                                \
141         mk_req_ext.c                            \
142         mk_safe.c                               \
143         mit_glue.c                              \
144         net_read.c                              \
145         net_write.c                             \
146         n-fold.c                                \
147         pac.c                                   \
148         padata.c                                \
149         pkinit.c                                \
150         principal.c                             \
151         prog_setup.c                            \
152         prompter_posix.c                        \
153         rd_cred.c                               \
154         rd_error.c                              \
155         rd_priv.c                               \
156         rd_rep.c                                \
157         rd_req.c                                \
158         rd_safe.c                               \
159         read_message.c                          \
160         recvauth.c                              \
161         replay.c                                \
162         scache.c                                \
163         send_to_kdc.c                           \
164         sendauth.c                              \
165         set_default_realm.c                     \
166         sock_principal.c                        \
167         store.c                                 \
168         store-int.h                             \
169         store_emem.c                            \
170         store_fd.c                              \
171         store_mem.c                             \
172         plugin.c                                \
173         ticket.c                                \
174         time.c                                  \
175         transited.c                             \
176         v4_glue.c                               \
177         verify_init.c                           \
178         verify_user.c                           \
179         version.c                               \
180         warn.c                                  \
181         write_message.c
183 nodist_libkrb5_la_SOURCES =                     \
184         $(ERR_FILES)
186 libkrb5_la_LDFLAGS = -version-info 26:0:0
188 if versionscript
189 libkrb5_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
190 endif
192 $(libkrb5_la_OBJECTS) $(verify_krb5_conf_OBJECTS): $(srcdir)/krb5-protos.h $(srcdir)/krb5-private.h
194 $(srcdir)/krb5-protos.h:
195         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
197 $(srcdir)/krb5-private.h:
198         cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p krb5-private.h $(dist_libkrb5_la_SOURCES) || rm -f krb5-private.h
200 man_MANS =                                      \
201         kerberos.8                              \
202         krb5.conf.5                             \
203         krb524_convert_creds_kdc.3              \
204         krb5_425_conv_principal.3               \
205         krb5_acl_match_file.3                   \
206         krb5_aname_to_localname.3               \
207         krb5_appdefault.3                       \
208         krb5_auth_context.3                     \
209         krb5_c_make_checksum.3                  \
210         krb5_check_transited.3                  \
211         krb5_create_checksum.3                  \
212         krb5_creds.3                            \
213         krb5_digest.3                           \
214         krb5_eai_to_heim_errno.3                \
215         krb5_encrypt.3                          \
216         krb5_find_padata.3                      \
217         krb5_generate_random_block.3            \
218         krb5_get_all_client_addrs.3             \
219         krb5_get_credentials.3                  \
220         krb5_get_creds.3                        \
221         krb5_get_forwarded_creds.3              \
222         krb5_get_in_cred.3                      \
223         krb5_get_init_creds.3                   \
224         krb5_get_krbhst.3                       \
225         krb5_getportbyname.3                    \
226         krb5_init_context.3                     \
227         krb5_is_thread_safe.3                   \
228         krb5_krbhst_init.3                      \
229         krb5_mk_req.3                           \
230         krb5_mk_safe.3                          \
231         krb5_openlog.3                          \
232         krb5_parse_name.3                       \
233         krb5_principal.3                        \
234         krb5_rcache.3                           \
235         krb5_rd_error.3                         \
236         krb5_rd_safe.3                          \
237         krb5_set_default_realm.3                \
238         krb5_set_password.3                     \
239         krb5_string_to_key.3                    \
240         krb5_timeofday.3                        \
241         krb5_verify_init_creds.3                \
242         krb5_verify_user.3                      \
243         verify_krb5_conf.8
245 dist_include_HEADERS = \
246         krb5.h \
247         krb5-protos.h \
248         krb5-private.h \
249         krb5_ccapi.h
251 nodist_include_HEADERS = krb5_err.h heim_err.h k524_err.h 
253 # XXX use nobase_include_HEADERS = krb5/locate_plugin.h
254 krb5dir = $(includedir)/krb5
255 krb5_HEADERS = locate_plugin.h send_to_kdc_plugin.h
257 build_HEADERZ = \
258         $(krb5_HEADERS) \
259         krb_err.h
261 CLEANFILES = \
262         test-store-data \
263         krb5_err.c krb5_err.h \
264         krb_err.c krb_err.h \
265         heim_err.c heim_err.h \
266         k524_err.c k524_err.h
268 $(libkrb5_la_OBJECTS): krb5_err.h krb_err.h heim_err.h k524_err.h
270 EXTRA_DIST = \
271         krb5_err.et \
272         krb_err.et \
273         heim_err.et \
274         k524_err.et \
275         $(man_MANS) \
276         version-script.map \
277         krb5.moduli
279 #sysconf_DATA = krb5.moduli
281 # to help stupid solaris make
283 krb5_err.h: krb5_err.et
285 krb_err.h: krb_err.et
287 heim_err.h: heim_err.et
289 k524_err.h: k524_err.et