xref: /freebsd/crypto/heimdal/kuser/Makefile.am (revision dd41de95a84d979615a2ef11df6850622bf6184e)
1# $Id$
2
3include $(top_srcdir)/Makefile.am.common
4
5AM_CPPFLAGS += $(INCLUDE_hcrypto) -I$(srcdir)/../lib/krb5 \
6	$(INCLUDE_libintl) \
7	-DHEIMDAL_LOCALEDIR='"$(localedir)"'
8
9man_MANS = \
10	kinit.1 \
11	klist.1 \
12	kdestroy.1 \
13	kswitch.1 \
14	kdigest.8 \
15	kgetcred.1 \
16	kimpersonate.8
17
18bin_PROGRAMS = kinit kdestroy kgetcred kcc
19libexec_PROGRAMS = kdigest kimpersonate
20
21noinst_PROGRAMS = kverify kdecode_ticket generate-requests
22
23kinit_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)
31
32kdestroy_LDADD	= $(kinit_LDADD)
33
34kimpersonate_LDADD = $(kinit_LDADD)
35
36kcc_LDADD = \
37	$(top_builddir)/lib/sl/libsl.la \
38	$(kinit_LDADD) \
39	$(LIB_readline)
40
41dist_kcc_SOURCES = kcc.c klist.c kswitch.c copy_cred_cache.c
42nodist_kcc_SOURCES = kcc-commands.c
43
44$(kcc_OBJECTS): kcc-commands.h
45
46dist_kdigest_SOURCES = kdigest.c
47nodist_kdigest_SOURCES = kdigest-commands.c
48
49kdigest_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)
56
57$(kdigest_OBJECTS): kdigest-commands.h
58
59CLEANFILES = \
60	kdigest-commands.h kdigest-commands.c \
61	kcc-commands.h kcc-commands.c
62
63kdigest-commands.c kdigest-commands.h: kdigest-commands.in
64	$(SLC) $(srcdir)/kdigest-commands.in
65
66kcc-commands.c kcc-commands.h: kcc-commands.in
67	$(SLC) $(srcdir)/kcc-commands.in
68
69LDADD = \
70	$(top_builddir)/lib/krb5/libkrb5.la \
71	$(LIB_hcrypto) \
72	$(top_builddir)/lib/asn1/libasn1.la \
73	$(LIB_roken)
74
75EXTRA_DIST = NTMakefile $(man_MANS) \
76	kcc-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 kcc-commands.in kdigest-commands.in copy_cred_cache.1
83
84# make sure install-exec-hook doesn't have any commands in Makefile.am.common
85install-exec-hook:
86	(cd $(DESTDIR)$(bindir) && rm -f klist && $(LN_S) kcc klist)
87	(cd $(DESTDIR)$(bindir) && rm -f kswitch && $(LN_S) kcc kswitch)
88
89