x
[heimdal.git] / appl / kx / Makefile.am
blob394bbd6f78c85f9d6056904ef2d3d8039acaa904
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += $(INCLUDE_krb4) $(X_CFLAGS)
7 WFLAGS += $(WFLAGS_NOIMPLICITINT)
9 if HAVE_X
11 bin_PROGRAMS = kx
12 bin_SCRIPTS = rxterm rxtelnet tenletxr
13 libexec_PROGRAMS = kxd
15 else
17 bin_PROGRAMS = 
18 bin_SCRIPTS = 
19 libexec_PROGRAMS = 
21 endif
23 CLEANFILES = rxterm rxtelnet tenletxr
25 if NEED_WRITEAUTH
26 XauWriteAuth_c = writeauth.c
27 endif
29 kx_SOURCES = \
30         kx.c \
31         kx.h \
32         common.c \
33         context.c \
34         krb4.c \
35         krb5.c \
36         $(XauWriteAuth_c)
38 EXTRA_kx_SOURCES = writeauth.c
40 kxd_SOURCES = \
41         kxd.c \
42         kx.h \
43         common.c \
44         context.c \
45         krb4.c \
46         krb5.c \
47         $(XauWriteAuth_c)
49 EXTRA_kxd_SOURCES = writeauth.c
51 EXTRA_DIST = rxterm.in rxtelnet.in tenletxr.in $(man_MANS)
53 man_MANS = kx.1 rxtelnet.1 rxterm.1 tenletxr.1 kxd.8
55 rxterm: rxterm.in
56         sed -e "s!%bindir%!$(bindir)!" $(srcdir)/rxterm.in > $@
57         chmod +x $@
59 rxtelnet: rxtelnet.in
60         sed -e "s!%bindir%!$(bindir)!" $(srcdir)/rxtelnet.in > $@
61         chmod +x $@
63 tenletxr: tenletxr.in
64         sed -e "s!%bindir%!$(bindir)!" $(srcdir)/tenletxr.in > $@
65         chmod +x $@
67 LDADD = \
68         $(LIB_kafs)                             \
69         $(LIB_krb5)                             \
70         $(LIB_krb4)                             \
71         $(LIB_hcrypto)                          \
72         $(LIB_roken)                            \
73         $(X_LIBS) $(LIB_XauReadAuth) $(X_PRE_LIBS) $(X_EXTRA_LIBS)