1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/contrib/ldns-host/Makefile
Dag-Erling Smørgrav 3fc9e2c365 Import Magerya Vitaly's ldns-host, and build it instead of the BIND version
in the WITH_LDNS_UTILS case.

Approved by:	re (blanket)
2013-09-08 19:40:32 +00:00

24 lines
419 B
Makefile

PROG=ldns-host
SRC=ldns-host.c
MAN=ldns-host.1
LOCALBASE?=/usr/local
PREFIX?=${LOCALBASE}
MANDIR?=${PREFIX}/man
XCFLAGS=${CFLAGS} -I${LOCALBASE}/include
XLDFLAGS=${LDFLAGS} -L${LOCALBASE}/lib -lldns
${PROG}: ${SRC}
${CC} -o $@ ${XCFLAGS} ${XLDFLAGS} ${SRC}
clean:
rm -f ${PROG}
install: ${PROG}
cp ${PROG} ${PREFIX}/bin/
cp ${MAN} ${MANDIR}/man1/
deinstall:
rm -f ${PREFIX}/bin/${PROG} ${MANDIR}/man1/${MAN}