xref: /freebsd/crypto/heimdal/tools/Makefile.am (revision 39beb93c3f8bdbf72a61fda42300b5ebed7390c8)
1# $Id: Makefile.am 22413 2008-01-12 05:58:14Z lha $
2
3include $(top_srcdir)/Makefile.am.common
4
5bin_SCRIPTS = krb5-config
6
7pkgconfigdir = $(libdir)/pkgconfig
8
9pkgconfig_DATA = heimdal-gssapi.pc
10
11man_MANS = krb5-config.1
12
13if PKINIT
14LIB_pkinit = -lhx509
15endif
16
17subst = 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"
31
32krb5-config: krb5-config.in
33	$(subst) $(srcdir)/krb5-config.in > $@.new
34	mv $@.new $@
35	chmod +x $@
36
37heimdal-gssapi.pc: heimdal-gssapi.pc.in
38	$(subst) $(srcdir)/heimdal-gssapi.pc.in > $@.new
39	mv $@.new $@
40
41EXTRA_DIST = \
42	$(man_MANS) \
43	heimdal-build.sh \
44	krb5-config.in \
45	heimdal-gssapi.pc.in \
46	kdc-log-analyze.pl
47
48CLEANFILES = \
49	krb5-config \
50	krb5-config.new \
51	heimdal-gssapi.pc \
52	heimdal-gssapi.pc.new
53
54