2013-09-08 19:40:32 +00:00
|
|
|
PROG=ldns-host
|
|
|
|
SRC=ldns-host.c
|
|
|
|
MAN=ldns-host.1
|
|
|
|
|
|
|
|
LOCALBASE?=/usr/local
|
|
|
|
PREFIX?=${LOCALBASE}
|
|
|
|
MANDIR?=${PREFIX}/man
|
|
|
|
|
2016-06-09 20:40:12 +00:00
|
|
|
XCFLAGS=${CFLAGS} -I${LOCALBASE}/include -std=c99 -Wall -Wextra -pedantic
|
2013-09-08 19:40:32 +00:00
|
|
|
XLDFLAGS=${LDFLAGS} -L${LOCALBASE}/lib -lldns
|
|
|
|
|
|
|
|
${PROG}: ${SRC}
|
2016-06-09 20:40:12 +00:00
|
|
|
${CC} -o $@ ${XCFLAGS} ${SRC} ${XLDFLAGS}
|
2013-09-08 19:40:32 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${PROG}
|
|
|
|
|
|
|
|
install: ${PROG}
|
|
|
|
cp ${PROG} ${PREFIX}/bin/
|
|
|
|
cp ${MAN} ${MANDIR}/man1/
|
|
|
|
|
|
|
|
deinstall:
|
|
|
|
rm -f ${PREFIX}/bin/${PROG} ${MANDIR}/man1/${MAN}
|