cf/largefile.m4: Fix build with autoconf-2.72
[heimdal.git] / kuser / Makefile.am
blob561e40e716a04f8c5a70b9847a0a0c3604c12001
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 if !NO_AFS
6 afs_lib = $(LIB_kafs)
7 endif
9 AM_CPPFLAGS += -I$(srcdir)/../lib/krb5 \
10         -I$(srcdir)/../lib/gssapi \
11         $(INCLUDE_libintl) \
12         -DHEIMDAL_LOCALEDIR='"$(localedir)"'
14 man_MANS = \
15         kinit.1 \
16         klist.1 \
17         kdestroy.1 \
18         kswitch.1 \
19         kdigest.8 \
20         kgetcred.1 \
21         kimpersonate.8 \
22         kx509.1
24 bin_PROGRAMS = kinit kdestroy kgetcred heimtools
25 libexec_PROGRAMS = kdigest kimpersonate
27 noinst_PROGRAMS = kverify kdecode_ticket generate-requests
29 # sync with kinit_auditdns_LDADD in appl/test/Makefile.am
30 kinit_LDADD = \
31         $(afs_lib) \
32         $(top_builddir)/lib/krb5/libkrb5.la \
33         $(top_builddir)/lib/gssapi/libgssapi.la \
34         $(top_builddir)/lib/gss_preauth/libgss_preauth.la \
35         $(top_builddir)/lib/ntlm/libheimntlm.la \
36         $(LIB_hcrypto) \
37         $(top_builddir)/lib/asn1/libasn1.la \
38         $(LIB_libintl) \
39         $(LIB_roken)
41 kdestroy_LDADD  = $(kinit_LDADD)
43 kimpersonate_LDADD = $(kinit_LDADD)
45 LIB_hx509 = ../lib/hx509/libhx509.la
47 heimtools_LDADD = \
48         $(top_builddir)/lib/sl/libsl.la \
49         $(kinit_LDADD) \
50         $(LIB_readline) \
51         $(LIB_heimbase) \
52         $(LIB_hx509)
54 dist_heimtools_SOURCES = heimtools.c klist.c kx509.c kswitch.c copy_cred_cache.c
55 nodist_heimtools_SOURCES = heimtools-commands.c
57 $(heimtools_OBJECTS): heimtools-commands.h
59 dist_kdigest_SOURCES = kdigest.c
60 nodist_kdigest_SOURCES = kdigest-commands.c
62 kdigest_LDADD = \
63         $(top_builddir)/lib/ntlm/libheimntlm.la \
64         $(top_builddir)/lib/krb5/libkrb5.la \
65         $(LIB_hcrypto) \
66         $(top_builddir)/lib/asn1/libasn1.la \
67         $(top_builddir)/lib/sl/libsl.la \
68         $(LIB_roken)
70 $(kdigest_OBJECTS): kdigest-commands.h
72 CLEANFILES = \
73         kdigest-commands.h kdigest-commands.c \
74         heimtools-commands.h heimtools-commands.c
76 kdigest-commands.c kdigest-commands.h: kdigest-commands.in
77         $(SLC) $(srcdir)/kdigest-commands.in
79 heimtools-commands.c heimtools-commands.h: heimtools-commands.in
80         $(SLC) $(srcdir)/heimtools-commands.in
82 LDADD = \
83         $(top_builddir)/lib/krb5/libkrb5.la \
84         $(LIB_hcrypto) \
85         $(top_builddir)/lib/asn1/libasn1.la \
86         $(LIB_roken)
88 EXTRA_DIST = NTMakefile $(man_MANS) \
89         heimtools-version.rc \
90         kcpytkt.c \
91         kdeltkt.c \
92         kvno.c \
93         kdestroy-version.rc \
94         kdigest-version.rc \
95         kgetcred-version.rc \
96         kimpersonate-version.rc \
97         kinit-version.rc \
98         kuser_locl.h heimtools-commands.in kdigest-commands.in copy_cred_cache.1
100 # make sure install-exec-hook doesn't have any commands in Makefile.am.common
101 install-exec-hook:
102         (cd $(DESTDIR)$(bindir) && rm -f klist && $(LN_S) heimtools klist)
103         (cd $(DESTDIR)$(bindir) && rm -f kx509 && $(LN_S) heimtools kx509)
104         (cd $(DESTDIR)$(bindir) && rm -f kswitch && $(LN_S) heimtools kswitch)