[HEIMDAL-646] malloc(0) checks for AIX
[heimdal.git] / tools / Makefile.am
blob07ea5bcc7ea901a1966fce1a547104f880315c7e
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         krb5-config.in \
44         heimdal-gssapi.pc.in \
45         kdc-log-analyze.pl
47 CLEANFILES = \
48         krb5-config \
49         krb5-config.new \
50         heimdal-gssapi.pc \
51         heimdal-gssapi.pc.new