summaryrefslogtreecommitdiffstats
path: root/kerberos5/usr.bin/krb5-config/Makefile
blob: 58528fb791cf5e83676abf610ebc139f7c14641c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $FreeBSD$

MAN=		krb5-config.1
CLEANFILES=	krb5-config

all:		krb5-config

beforeinstall:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
	    krb5-config ${DESTDIR}${BINDIR}/krb5-config

krb5-config: krb5-config.in
	sed	-e "s,@PACKAGE\@,FreeBSD heimdal,g" \
		-e "s,@VERSION\@,0.3f,g" \
		-e "s,@prefix\@,/,g" \
		-e "s,@exec_prefix\@,/,g" \
		-e "s,@libdir\@,${LIBDIR},g" \
		-e "s,@includedir\@,${INCDIR},g" \
		-e "s,@LIB_crypt\@,,g" \
		-e "s,@LIB_dbopen\@,,g" \
		-e "s,@LIB_des_appl\@,-lcrypto,g" \
		-e "s,@LIBS\@,,g" \
		${.ALLSRC} > ${.TARGET}
	chmod +x ${.TARGET}

.include <bsd.prog.mk>

.PATH:	${KRB5DIR}/tools
OpenPOWER on IntegriCloud