mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-29 15:10:57 +01:00
3fc9e2c365
in the WITH_LDNS_UTILS case. Approved by: re (blanket)
24 lines
419 B
Makefile
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}
|