Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / crypto / dist / heimdal / tools / Makefile.am
blob0af6ee31c2b75a16a8d3180646e7e260d693d3c3
1 # $Heimdal: Makefile.am 22413 2008-01-12 05:58:14Z lha $
2 # $NetBSD$
4 include $(top_srcdir)/Makefile.am.common
6 bin_SCRIPTS = krb5-config
8 pkgconfigdir = $(libdir)/pkgconfig
10 pkgconfig_DATA = heimdal-gssapi.pc
12 man_MANS = krb5-config.1
14 if PKINIT
15 LIB_pkinit = -lhx509
16 endif
18 subst = sed     -e "s!@PACKAGE\@!$(PACKAGE)!g" \
19                 -e "s!@VERSION\@!$(VERSION)!g" \
20                 -e "s!@prefix\@!$(prefix)!g" \
21                 -e "s!@exec_prefix\@!$(exec_prefix)!g" \
22                 -e "s!@libdir\@!$(libdir)!g" \
23                 -e "s!@includedir\@!$(includedir)!g" \
24                 -e "s!@LIB_crypt\@!$(LIB_crypt)!g" \
25                 -e "s!@LIB_dbopen\@!$(LIB_dbopen)!g" \
26                 -e "s!@INCLUDE_hcrypto\@!$(INCLUDE_hcrypto)!g" \
27                 -e "s!@LIB_hcrypto_appl\@!$(LIB_hcrypto_appl)!g" \
28                 -e "s!@LIB_dlopen\@!$(LIB_dlopen)!g" \
29                 -e "s!@LIB_door_create\@!$(LIB_door_create)!g" \
30                 -e "s!@LIB_pkinit\@!$(LIB_pkinit)!g" \
31                 -e "s!@LIBS\@!$(LIBS)!g"
33 krb5-config: krb5-config.in
34         $(subst) $(srcdir)/krb5-config.in > $@.new
35         mv $@.new $@
36         chmod +x $@
38 heimdal-gssapi.pc: heimdal-gssapi.pc.in
39         $(subst) $(srcdir)/heimdal-gssapi.pc.in > $@.new
40         mv $@.new $@
42 EXTRA_DIST = \
43         $(man_MANS) \
44         heimdal-build.sh \
45         krb5-config.in \
46         heimdal-gssapi.pc.in \
47         kdc-log-analyze.pl
49 CLEANFILES = \
50         krb5-config \
51         krb5-config.new \
52         heimdal-gssapi.pc \
53         heimdal-gssapi.pc.new