compile fix
[heimdal.git] / kuser / Makefile.am
blob0d41343a41002d23b613f5dfa2c27e9d03633652
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += $(INCLUDE_hcrypto) -I$(srcdir)/../lib/krb5 \
6         $(INCLUDE_libintl) \
7         -DHEIMDAL_LOCALEDIR='"$(localedir)"'
9 man_MANS = \
10         kinit.1 \
11         klist.1 \
12         kdestroy.1 \
13         kswitch.1 \
14         kdigest.8 \
15         kgetcred.1 \
16         kimpersonate.8
18 bin_PROGRAMS = kinit kdestroy kgetcred kcc
19 libexec_PROGRAMS = kdigest kimpersonate
21 noinst_PROGRAMS = kverify kdecode_ticket generate-requests
23 kinit_LDADD = \
24         $(LIB_kafs) \
25         $(top_builddir)/lib/krb5/libkrb5.la \
26         $(top_builddir)/lib/ntlm/libheimntlm.la \
27         $(LIB_hcrypto) \
28         $(top_builddir)/lib/asn1/libasn1.la \
29         $(LIB_libintl) \
30         $(LIB_roken)
32 kdestroy_LDADD  = $(kinit_LDADD)
34 kimpersonate_LDADD = $(kinit_LDADD)
36 kcc_LDADD = \
37         $(top_builddir)/lib/sl/libsl.la \
38         $(kinit_LDADD) \
39         $(LIB_readline)
41 dist_kcc_SOURCES = kcc.c klist.c kswitch.c copy_cred_cache.c
42 nodist_kcc_SOURCES = kcc-commands.c
44 $(kcc_OBJECTS): kcc-commands.h
46 dist_kdigest_SOURCES = kdigest.c
47 nodist_kdigest_SOURCES = kdigest-commands.c
49 kdigest_LDADD = \
50         $(top_builddir)/lib/ntlm/libheimntlm.la \
51         $(top_builddir)/lib/krb5/libkrb5.la \
52         $(LIB_hcrypto) \
53         $(top_builddir)/lib/asn1/libasn1.la \
54         $(top_builddir)/lib/sl/libsl.la \
55         $(LIB_roken)
57 $(kdigest_OBJECTS): kdigest-commands.h
59 CLEANFILES = \
60         kdigest-commands.h kdigest-commands.c \
61         kcc-commands.h kcc-commands.c
63 kdigest-commands.c kdigest-commands.h: kdigest-commands.in
64         $(SLC) $(srcdir)/kdigest-commands.in
66 kcc-commands.c kcc-commands.h: kcc-commands.in
67         $(SLC) $(srcdir)/kcc-commands.in
69 LDADD = \
70         $(top_builddir)/lib/krb5/libkrb5.la \
71         $(LIB_hcrypto) \
72         $(top_builddir)/lib/asn1/libasn1.la \
73         $(LIB_roken)
75 EXTRA_DIST = $(man_MANS) \
76         kuser_locl.h kcc-commands.in kdigest-commands.in copy_cred_cache.1
78 # make sure install-exec-hook doesn't have any commands in Makefile.am.common
79 install-exec-hook:
80         (cd $(DESTDIR)$(bindir) && rm -f klist && $(LN_S) kcc klist)
81         (cd $(DESTDIR)$(bindir) && rm -f kswitch && $(LN_S) kcc kswitch)