Fix Makefile.am issue with test_expand_toks
[heimdal.git] / lib / krb5 / Makefile.am
blob45f70cccfa7562375d59d22e9a028668c5710273
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += $(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_alname                             \
12         test_crypto                             \
13         test_forward                            \
14         test_get_addrs                          \
15         test_gic                                \
16         test_kuserok                            \
17         test_renew                              \
18         test_rfc3961                            
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_expand_toks                        \
47         test_x500
49 check_DATA = test_config_strings.out
51 check_PROGRAMS = $(TESTS) test_hostname test_ap-req test_canon test_set_kvno0
53 LDADD = libkrb5.la \
54         $(LIB_hcrypto) \
55         $(top_builddir)/lib/asn1/libasn1.la \
56         $(top_builddir)/lib/wind/libwind.la \
57         $(LIB_heimbase) $(LIB_roken)
59 if PKINIT
60 LIB_pkinit = ../hx509/libhx509.la
61 endif
63 if have_scc
64 use_sqlite = $(LIB_sqlite3)
65 endif
67 libkrb5_la_LIBADD = \
68         $(top_builddir)/lib/asn1/libasn1.la \
69         $(top_builddir)/lib/ipc/libheim-ipcc.la \
70         $(top_builddir)/lib/wind/libwind.la \
71         $(top_builddir)/lib/base/libheimbase.la \
72         $(LIB_pkinit) \
73         $(use_sqlite) \
74         $(LIB_com_err) \
75         $(LIB_hcrypto) \
76         $(LIB_libintl) \
77         $(LIBADD_roken) \
78         $(PTHREAD_LIBADD) \
79         $(LIB_door_create) \
80         $(LIB_dlopen)
82 librfc3961_la_LIBADD = \
83         $(top_builddir)/lib/asn1/libasn1.la \
84         $(top_builddir)/lib/ipc/libheim-ipcc.la \
85         $(top_builddir)/lib/wind/libwind.la \
86         $(LIB_pkinit) \
87         $(use_sqlite) \
88         $(LIB_com_err) \
89         $(LIB_hcrypto) \
90         $(LIB_libintl) \
91         $(LIBADD_roken) \
92         $(PTHREAD_LIBADD) \
93         $(LIB_door_create) \
94         $(LIB_dlopen)
96 lib_LTLIBRARIES = libkrb5.la
98 ERR_FILES = krb5_err.c krb_err.c heim_err.c k524_err.c
100 libkrb5_la_CPPFLAGS = \
101         -DBUILD_KRB5_LIB \
102         $(AM_CPPFLAGS) \
103         -DHEIMDAL_LOCALEDIR='"$(localedir)"'
105 librfc3961_la_CPPFLAGS = \
106         -DBUILD_KRB5_LIB \
107         $(AM_CPPFLAGS) \
108         -DHEIMDAL_LOCALEDIR='"$(localedir)"'
110 dist_libkrb5_la_SOURCES =                       \
111         acache.c                                \
112         acl.c                                   \
113         add_et_list.c                           \
114         addr_families.c                         \
115         an2ln_plugin.h                          \
116         aname_to_localname.c                    \
117         appdefault.c                            \
118         asn1_glue.c                             \
119         auth_context.c                          \
120         build_ap_req.c                          \
121         build_auth.c                            \
122         cache.c                                 \
123         changepw.c                              \
124         codec.c                                 \
125         config_file.c                           \
126         convert_creds.c                         \
127         constants.c                             \
128         context.c                               \
129         copy_host_realm.c                       \
130         crc.c                                   \
131         creds.c                                 \
132         crypto.c                                \
133         crypto.h                                \
134         crypto-aes.c                            \
135         crypto-algs.c                           \
136         crypto-arcfour.c                        \
137         crypto-des.c                            \
138         crypto-des-common.c                     \
139         crypto-des3.c                           \
140         crypto-evp.c                            \
141         crypto-null.c                           \
142         crypto-pk.c                             \
143         crypto-rand.c                           \
144         doxygen.c                               \
145         data.c                                  \
146         db_plugin.c                             \
147         db_plugin.h                             \
148         deprecated.c                            \
149         digest.c                                \
150         eai_to_heim_errno.c                     \
151         enomem.c                                \
152         error_string.c                          \
153         expand_hostname.c                       \
154         expand_path.c                           \
155         fast.c                                  \
156         fcache.c                                \
157         free.c                                  \
158         free_host_realm.c                       \
159         generate_seq_number.c                   \
160         generate_subkey.c                       \
161         get_addrs.c                             \
162         get_cred.c                              \
163         get_default_principal.c                 \
164         get_default_realm.c                     \
165         get_for_creds.c                         \
166         get_host_realm.c                        \
167         get_in_tkt.c                            \
168         get_port.c                              \
169         init_creds.c                            \
170         init_creds_pw.c                         \
171         kcm.c                                   \
172         kcm.h                                   \
173         keyblock.c                              \
174         keytab.c                                \
175         keytab_any.c                            \
176         keytab_file.c                           \
177         keytab_keyfile.c                        \
178         keytab_memory.c                         \
179         krb5_locl.h                             \
180         krb5-v4compat.h                         \
181         krbhst.c                                \
182         kuserok.c                               \
183         log.c                                   \
184         mcache.c                                \
185         misc.c                                  \
186         mk_error.c                              \
187         mk_priv.c                               \
188         mk_rep.c                                \
189         mk_req.c                                \
190         mk_req_ext.c                            \
191         mk_safe.c                               \
192         mit_glue.c                              \
193         net_read.c                              \
194         net_write.c                             \
195         n-fold.c                                \
196         pac.c                                   \
197         padata.c                                \
198         pcache.c                                \
199         pkinit.c                                \
200         principal.c                             \
201         prog_setup.c                            \
202         prompter_posix.c                        \
203         rd_cred.c                               \
204         rd_error.c                              \
205         rd_priv.c                               \
206         rd_rep.c                                \
207         rd_req.c                                \
208         rd_safe.c                               \
209         read_message.c                          \
210         recvauth.c                              \
211         replay.c                                \
212         salt.c                                  \
213         salt-aes.c                              \
214         salt-arcfour.c                          \
215         salt-des.c                              \
216         salt-des3.c                             \
217         scache.c                                \
218         send_to_kdc.c                           \
219         sendauth.c                              \
220         set_default_realm.c                     \
221         sock_principal.c                        \
222         store.c                                 \
223         store-int.c                             \
224         store-int.h                             \
225         store_emem.c                            \
226         store_fd.c                              \
227         store_mem.c                             \
228         plugin.c                                \
229         ticket.c                                \
230         time.c                                  \
231         transited.c                             \
232         verify_init.c                           \
233         verify_user.c                           \
234         version.c                               \
235         warn.c                                  \
236         write_message.c
238 nodist_libkrb5_la_SOURCES =                     \
239         $(ERR_FILES)
241 libkrb5_la_DEPENDENCIES =                       \
242         version-script.map
244 libkrb5_la_LDFLAGS = -version-info 26:0:0
246 if versionscript
247 libkrb5_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
248 endif
250 $(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
252 librfc3961_la_SOURCES =                         \
253         crc.c                                   \
254         crypto.c                                \
255         crypto.h                                \
256         crypto-aes.c                            \
257         crypto-algs.c                           \
258         crypto-arcfour.c                        \
259         crypto-des.c                            \
260         crypto-des-common.c                     \
261         crypto-des3.c                           \
262         crypto-evp.c                            \
263         crypto-null.c                           \
264         crypto-pk.c                             \
265         crypto-rand.c                           \
266         crypto-stubs.c                          \
267         data.c                                  \
268         error_string.c                          \
269         keyblock.c                              \
270         n-fold.c                                \
271         salt.c                                  \
272         salt-aes.c                              \
273         salt-arcfour.c                          \
274         salt-des.c                              \
275         salt-des3.c                             \
276         store-int.c                             \
277         warn.c
279 test_rfc3961_LDADD =                            \
280         librfc3961.la                           \
281         $(top_builddir)/lib/asn1/libasn1.la     \
282         $(top_builddir)/lib/wind/libwind.la     \
283         $(LIB_hcrypto)                          \
284         $(LIB_roken)
286 if DEVELOPER_MODE
287 headerdeps = $(dist_libkrb5_la_SOURCES)
288 endif
290 $(srcdir)/krb5-protos.h: $(headerdeps)
291         @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
293 $(srcdir)/krb5-private.h: $(headerdeps)
294         @cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p krb5-private.h $(dist_libkrb5_la_SOURCES) || rm -f krb5-private.h
296 man_MANS =                                      \
297         kerberos.8                              \
298         krb5.conf.5                             \
299         krb5-plugin.7                           \
300         krb524_convert_creds_kdc.3              \
301         krb5_425_conv_principal.3               \
302         krb5_acl_match_file.3                   \
303         krb5_aname_to_localname.3               \
304         krb5_appdefault.3                       \
305         krb5_auth_context.3                     \
306         krb5_c_make_checksum.3                  \
307         krb5_check_transited.3                  \
308         krb5_create_checksum.3                  \
309         krb5_creds.3                            \
310         krb5_digest.3                           \
311         krb5_eai_to_heim_errno.3                \
312         krb5_encrypt.3                          \
313         krb5_find_padata.3                      \
314         krb5_generate_random_block.3            \
315         krb5_get_all_client_addrs.3             \
316         krb5_get_credentials.3                  \
317         krb5_get_creds.3                        \
318         krb5_get_forwarded_creds.3              \
319         krb5_get_in_cred.3                      \
320         krb5_get_init_creds.3                   \
321         krb5_get_krbhst.3                       \
322         krb5_getportbyname.3                    \
323         krb5_init_context.3                     \
324         krb5_is_thread_safe.3                   \
325         krb5_krbhst_init.3                      \
326         krb5_mk_req.3                           \
327         krb5_mk_safe.3                          \
328         krb5_openlog.3                          \
329         krb5_parse_name.3                       \
330         krb5_principal.3                        \
331         krb5_rcache.3                           \
332         krb5_rd_error.3                         \
333         krb5_rd_safe.3                          \
334         krb5_set_default_realm.3                \
335         krb5_set_password.3                     \
336         krb5_string_to_key.3                    \
337         krb5_timeofday.3                        \
338         krb5_verify_init_creds.3                \
339         krb5_verify_user.3                      \
340         verify_krb5_conf.8
342 dist_include_HEADERS = \
343         krb5.h \
344         krb5-protos.h \
345         krb5-private.h \
346         krb5_ccapi.h
348 nodist_include_HEADERS = krb5_err.h heim_err.h k524_err.h
350 # XXX use nobase_include_HEADERS = krb5/locate_plugin.h
351 krb5dir = $(includedir)/krb5
352 krb5_HEADERS = locate_plugin.h send_to_kdc_plugin.h ccache_plugin.h an2ln_plugin.h db_plugin.h
354 build_HEADERZ = \
355         $(krb5_HEADERS) \
356         krb_err.h
358 CLEANFILES = \
359         test_config_strings.out \
360         test-store-data \
361         krb5_err.c krb5_err.h \
362         krb_err.c krb_err.h \
363         heim_err.c heim_err.h \
364         k524_err.c k524_err.h
366 $(libkrb5_la_OBJECTS): krb5_err.h krb_err.h heim_err.h k524_err.h
368 test_config_strings.out: test_config_strings.cfg
369         $(CP) $(srcdir)/test_config_strings.cfg test_config_strings.out
371 EXTRA_DIST = \
372         NTMakefile \
373         verify_krb5_conf-version.rc \
374         krb5_err.et \
375         krb_err.et \
376         heim_err.et \
377         k524_err.et \
378         $(man_MANS) \
379         version-script.map \
380         test_config_strings.cfg \
381         krb5.moduli
383 #sysconf_DATA = krb5.moduli
385 # to help stupid solaris make
387 krb5_err.h: krb5_err.et
389 krb_err.h: krb_err.et
391 heim_err.h: heim_err.et
393 k524_err.h: k524_err.et