summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/kuser/Makefile.am
blob: 96ad36fd29e0349dd1af60ee1cf22098a444cd19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# $Id$

include $(top_srcdir)/Makefile.am.common

if !NO_AFS
afs_lib = $(LIB_kafs)
endif

AM_CPPFLAGS += -I$(srcdir)/../lib/krb5 \
	-I$(srcdir)/../lib/gssapi \
	$(INCLUDE_libintl) \
	-DHEIMDAL_LOCALEDIR='"$(localedir)"'

man_MANS = \
	kinit.1 \
	klist.1 \
	kdestroy.1 \
	kswitch.1 \
	kdigest.8 \
	kgetcred.1 \
	kimpersonate.8 \
	kx509.1

bin_PROGRAMS = kinit kdestroy kgetcred heimtools
libexec_PROGRAMS = kdigest kimpersonate

noinst_PROGRAMS = kverify kdecode_ticket generate-requests

kinit_LDADD = \
	$(afs_lib) \
	$(top_builddir)/lib/krb5/libkrb5.la \
	$(top_builddir)/lib/gssapi/libgssapi.la \
	$(top_builddir)/lib/gss_preauth/libgss_preauth.la \
	$(top_builddir)/lib/ntlm/libheimntlm.la \
	$(LIB_hcrypto) \
	$(top_builddir)/lib/asn1/libasn1.la \
	$(LIB_libintl) \
	$(LIB_roken)

kdestroy_LDADD	= $(kinit_LDADD)

kimpersonate_LDADD = $(kinit_LDADD)

LIB_hx509 = ../lib/hx509/libhx509.la

heimtools_LDADD = \
	$(top_builddir)/lib/sl/libsl.la \
	$(kinit_LDADD) \
	$(LIB_readline) \
        $(LIB_heimbase) \
	$(LIB_hx509)

dist_heimtools_SOURCES = heimtools.c klist.c kx509.c kswitch.c copy_cred_cache.c
nodist_heimtools_SOURCES = heimtools-commands.c

$(heimtools_OBJECTS): heimtools-commands.h

dist_kdigest_SOURCES = kdigest.c
nodist_kdigest_SOURCES = kdigest-commands.c

kdigest_LDADD = \
	$(top_builddir)/lib/ntlm/libheimntlm.la \
	$(top_builddir)/lib/krb5/libkrb5.la \
	$(LIB_hcrypto) \
	$(top_builddir)/lib/asn1/libasn1.la \
	$(top_builddir)/lib/sl/libsl.la \
	$(LIB_roken)

$(kdigest_OBJECTS): kdigest-commands.h

CLEANFILES = \
	kdigest-commands.h kdigest-commands.c \
	heimtools-commands.h heimtools-commands.c

kdigest-commands.c kdigest-commands.h: kdigest-commands.in
	$(SLC) $(srcdir)/kdigest-commands.in

heimtools-commands.c heimtools-commands.h: heimtools-commands.in
	$(SLC) $(srcdir)/heimtools-commands.in

LDADD = \
	$(top_builddir)/lib/krb5/libkrb5.la \
	$(LIB_hcrypto) \
	$(top_builddir)/lib/asn1/libasn1.la \
	$(LIB_roken)

EXTRA_DIST = NTMakefile $(man_MANS) \
	heimtools-version.rc \
	kcpytkt.c \
	kdeltkt.c \
	kvno.c \
	kdestroy-version.rc \
	kdigest-version.rc \
	kgetcred-version.rc \
	kimpersonate-version.rc \
	kinit-version.rc \
	kuser_locl.h heimtools-commands.in kdigest-commands.in copy_cred_cache.1

# make sure install-exec-hook doesn't have any commands in Makefile.am.common
install-exec-hook:
	(cd $(DESTDIR)$(bindir) && rm -f klist && $(LN_S) heimtools klist)
	(cd $(DESTDIR)$(bindir) && rm -f kx509 && $(LN_S) heimtools kx509)
	(cd $(DESTDIR)$(bindir) && rm -f kswitch && $(LN_S) heimtools kswitch)