1PROG=ldns-host 2SRC=ldns-host.c 3MAN=ldns-host.1 4 5LOCALBASE?=/usr/local 6PREFIX?=${LOCALBASE} 7MANDIR?=${PREFIX}/man 8 9XCFLAGS=${CFLAGS} -I${LOCALBASE}/include 10XLDFLAGS=${LDFLAGS} -L${LOCALBASE}/lib -lldns 11 12${PROG}: ${SRC} 13 ${CC} -o $@ ${XCFLAGS} ${XLDFLAGS} ${SRC} 14 15clean: 16 rm -f ${PROG} 17 18install: ${PROG} 19 cp ${PROG} ${PREFIX}/bin/ 20 cp ${MAN} ${MANDIR}/man1/ 21 22deinstall: 23 rm -f ${PREFIX}/bin/${PROG} ${MANDIR}/man1/${MAN} 24