pty testing application
[heimdal.git] / tools / Makefile.am
blob534608eda9442691c4d767cc4b56bc1bc61002c4
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 bin_SCRIPTS = krb5-config
7 pkgconfigdir = $(libdir)/pkgconfig
9 pkgconfig_DATA = heimdal-gssapi.pc
11 man_MANS = krb5-config.1
13 if PKINIT
14 LIB_pkinit = -lhx509
15 endif
17 subst = sed     -e "s!@PACKAGE\@!$(PACKAGE)!g" \
18                 -e "s!@VERSION\@!$(VERSION)!g" \
19                 -e "s!@prefix\@!$(prefix)!g" \
20                 -e "s!@exec_prefix\@!$(exec_prefix)!g" \
21                 -e "s!@libdir\@!$(libdir)!g" \
22                 -e "s!@includedir\@!$(includedir)!g" \
23                 -e "s!@LIB_crypt\@!$(LIB_crypt)!g" \
24                 -e "s!@LIB_dbopen\@!$(LIB_dbopen)!g" \
25                 -e "s!@INCLUDE_hcrypto\@!$(INCLUDE_hcrypto)!g" \
26                 -e "s!@LIB_hcrypto_appl\@!$(LIB_hcrypto_appl)!g" \
27                 -e "s!@LIB_dlopen\@!$(LIB_dlopen)!g" \
28                 -e "s!@LIB_door_create\@!$(LIB_door_create)!g" \
29                 -e "s!@LIB_pkinit\@!$(LIB_pkinit)!g" \
30                 -e "s!@LIBS\@!$(LIBS)!g"
32 krb5-config: krb5-config.in
33         $(subst) $(srcdir)/krb5-config.in > $@.new
34         mv $@.new $@
35         chmod +x $@
37 heimdal-gssapi.pc: heimdal-gssapi.pc.in
38         $(subst) $(srcdir)/heimdal-gssapi.pc.in > $@.new
39         mv $@.new $@
41 EXTRA_DIST = \
42         $(man_MANS) \
43         heimdal-build.sh \
44         krb5-config.in \
45         heimdal-gssapi.pc.in \
46         kdc-log-analyze.pl
48 CLEANFILES = \
49         krb5-config \
50         krb5-config.new \
51         heimdal-gssapi.pc \
52         heimdal-gssapi.pc.new