1# $Id$
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!@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"
32
33krb5-config: krb5-config.in
34	$(subst) $(srcdir)/krb5-config.in > $@.new
35	mv $@.new $@
36	chmod +x $@
37
38heimdal-gssapi.pc: heimdal-gssapi.pc.in
39	$(subst) $(srcdir)/heimdal-gssapi.pc.in > $@.new
40	mv $@.new $@
41
42EXTRA_DIST = \
43	NTMakefile \
44	$(man_MANS) \
45	krb5-config.in \
46	heimdal-gssapi.pc.in \
47	kdc-log-analyze.pl
48
49CLEANFILES = \
50	krb5-config \
51	krb5-config.new \
52	heimdal-gssapi.pc \
53	heimdal-gssapi.pc.new
54
55