xref: /freebsd/contrib/ldns-host/Makefile (revision 3f68b24e10aeb1a1cd85f2d349da44138d52c501)
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 -std=c99 -Wall -Wextra -pedantic
10XLDFLAGS=${LDFLAGS} -L${LOCALBASE}/lib -lldns
11
12${PROG}: ${SRC}
13	${CC} -o $@ ${XCFLAGS} ${SRC} ${XLDFLAGS}
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