etc/services - sync with NetBSD-8
[minix.git] / crypto / external / bsd / heimdal / dist / tools / Makefile.am
blob51aa7f610c9e2b1ce942f401733bf1f5deb3d5c0
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!@PTHREAD_LIBADD\@!$(PTHREAD_LIBADD)!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         NTMakefile \
44         $(man_MANS) \
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