use noinst_HEADERS for kcm-protos.h
[heimdal.git] / kuser / Makefile.am
blob64b23be5338bd156dd6c22d0b4df81515869ac18
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 heimtools
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 heimtools_LDADD = \
37         $(top_builddir)/lib/sl/libsl.la \
38         $(kinit_LDADD) \
39         $(LIB_readline)
41 dist_heimtools_SOURCES = heimtools.c klist.c kswitch.c copy_cred_cache.c
42 nodist_heimtools_SOURCES = heimtools-commands.c
44 $(heimtools_OBJECTS): heimtools-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         heimtools-commands.h heimtools-commands.c
63 kdigest-commands.c kdigest-commands.h: kdigest-commands.in
64         $(SLC) $(srcdir)/kdigest-commands.in
66 heimtools-commands.c heimtools-commands.h: heimtools-commands.in
67         $(SLC) $(srcdir)/heimtools-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 = NTMakefile $(man_MANS) \
76         heimtools-version.rc \
77         kdestroy-version.rc \
78         kdigest-version.rc \
79         kgetcred-version.rc \
80         kimpersonate-version.rc \
81         kinit-version.rc \
82         kuser_locl.h heimtools-commands.in kdigest-commands.in copy_cred_cache.1
84 # make sure install-exec-hook doesn't have any commands in Makefile.am.common
85 install-exec-hook:
86         (cd $(DESTDIR)$(bindir) && rm -f klist && $(LN_S) heimtools klist)
87         (cd $(DESTDIR)$(bindir) && rm -f kswitch && $(LN_S) heimtools kswitch)