1#	$NetBSD: Makefile,v 1.2 2013/04/12 18:08:10 joerg Exp $
2
3.include <bsd.own.mk>
4.include <${.CURDIR}/../../Makefile.inc>
5
6.PATH:          ${HEIMDIST}/tools
7
8SCRIPTS=	krb5-config
9MAN=		krb5-config.1
10
11CLEANFILES+=	krb5-config
12
13krb5-config: krb5-config.in
14	${TOOL_SED} -e "s!@PACKAGE\@!heimdal!g" \
15	        -e "s!@VERSION\@!1.5pre1!g" \
16	        -e "s!@prefix\@!/!g" \
17	        -e "s!@exec_prefix\@!/!g" \
18	        -e "s!@libdir\@!/usr/lib!g" \
19	        -e "s!@includedir\@!/usr/include!g" \
20	        -e "s!@LIB_crypt\@!-lcrypt!g" \
21	        -e "s!@LIB_dbopen\@!!g" \
22	        -e "s!@INCLUDE_hcrypto\@!!g" \
23	        -e "s!@LIB_hcrypto_appl\@!-lcrypto!g" \
24	        -e "s!@LIB_dlopen\@!!g" \
25	        -e "s!@LIB_door_create\@!!g" \
26	        -e "s!@LIB_pkinit\@!-lhx509!g" \
27	        -e "s!@PTHREAD_LIBADD\@!!g" \
28	        -e "s!@LIBS\@!!g" \
29	        ${HEIMDIST}/tools/krb5-config.in > $@
30	chmod +x $@
31
32.include <bsd.prog.mk>
33