1# Id 2 3include $(top_srcdir)/Makefile.am.common 4 5if !NO_AFS 6afs_lib = $(LIB_kafs) 7endif 8 9AM_CPPFLAGS += -I$(srcdir)/../lib/krb5 \ 10 $(INCLUDE_libintl) \ 11 -DHEIMDAL_LOCALEDIR='"$(localedir)"' 12 13man_MANS = \ 14 kinit.1 \ 15 klist.1 \ 16 kdestroy.1 \ 17 kswitch.1 \ 18 kdigest.8 \ 19 kgetcred.1 \ 20 kimpersonate.8 21 22bin_PROGRAMS = kinit kdestroy kgetcred heimtools 23libexec_PROGRAMS = kdigest kimpersonate 24 25noinst_PROGRAMS = kverify kdecode_ticket generate-requests 26 27kinit_LDADD = \ 28 $(afs_lib) \ 29 $(top_builddir)/lib/krb5/libkrb5.la \ 30 $(top_builddir)/lib/ntlm/libheimntlm.la \ 31 $(LIB_hcrypto) \ 32 $(top_builddir)/lib/asn1/libasn1.la \ 33 $(LIB_libintl) \ 34 $(LIB_roken) 35 36kdestroy_LDADD = $(kinit_LDADD) 37 38kimpersonate_LDADD = $(kinit_LDADD) 39 40heimtools_LDADD = \ 41 $(top_builddir)/lib/sl/libsl.la \ 42 $(kinit_LDADD) \ 43 $(LIB_readline) 44 45dist_heimtools_SOURCES = heimtools.c klist.c kswitch.c copy_cred_cache.c 46nodist_heimtools_SOURCES = heimtools-commands.c 47 48$(heimtools_OBJECTS): heimtools-commands.h 49 50dist_kdigest_SOURCES = kdigest.c 51nodist_kdigest_SOURCES = kdigest-commands.c 52 53kdigest_LDADD = \ 54 $(top_builddir)/lib/ntlm/libheimntlm.la \ 55 $(top_builddir)/lib/krb5/libkrb5.la \ 56 $(LIB_hcrypto) \ 57 $(top_builddir)/lib/asn1/libasn1.la \ 58 $(top_builddir)/lib/sl/libsl.la \ 59 $(LIB_roken) 60 61$(kdigest_OBJECTS): kdigest-commands.h 62 63CLEANFILES = \ 64 kdigest-commands.h kdigest-commands.c \ 65 heimtools-commands.h heimtools-commands.c 66 67kdigest-commands.c kdigest-commands.h: kdigest-commands.in 68 $(SLC) $(srcdir)/kdigest-commands.in 69 70heimtools-commands.c heimtools-commands.h: heimtools-commands.in 71 $(SLC) $(srcdir)/heimtools-commands.in 72 73LDADD = \ 74 $(top_builddir)/lib/krb5/libkrb5.la \ 75 $(LIB_hcrypto) \ 76 $(top_builddir)/lib/asn1/libasn1.la \ 77 $(LIB_roken) 78 79EXTRA_DIST = NTMakefile $(man_MANS) \ 80 heimtools-version.rc \ 81 kcpytkt.c \ 82 kdeltkt.c \ 83 kvno.c \ 84 kdestroy-version.rc \ 85 kdigest-version.rc \ 86 kgetcred-version.rc \ 87 kimpersonate-version.rc \ 88 kinit-version.rc \ 89 kuser_locl.h heimtools-commands.in kdigest-commands.in copy_cred_cache.1 90 91# make sure install-exec-hook doesn't have any commands in Makefile.am.common 92install-exec-hook: 93 (cd $(DESTDIR)$(bindir) && rm -f klist && $(LN_S) heimtools klist) 94 (cd $(DESTDIR)$(bindir) && rm -f kswitch && $(LN_S) heimtools kswitch) 95 96