d029c3aa25
Make sure everything linking to a privatelib and/or an internallib does it directly from the OBJDIR rather than DESTDIR. Add src.libnames.mk so bsd.libnames.mk is not polluted by libraries not existsing in final installation Introduce the LD* variable which is what ld(1) is expecting (via LDADD) to link to internal/privatelib Directly link to the .so in case of private library to avoid having to complexify LDFLAGS. Phabric: https://phabric.freebsd.org/D553 Reviewed by: imp, emaste
19 lines
577 B
Makefile
19 lines
577 B
Makefile
# $FreeBSD$
|
|
|
|
# Vendor sources and generated files
|
|
LDNSDIR= ${.CURDIR}/../../../contrib/ldns
|
|
UNBOUNDDIR= ${.CURDIR}/../../../contrib/unbound
|
|
EXPATDIR= ${.CURDIR}/../../../contrib/expat
|
|
|
|
.PATH: ${UNBOUNDDIR} ${UNBOUNDDIR}/smallapp ${UNBOUNDDIR}/doc
|
|
|
|
PROG= unbound-anchor
|
|
SRCS= unbound-anchor.c
|
|
CFLAGS= -I${UNBOUNDDIR} -I${LDNSDIR} -I${EXPATDIR}/lib
|
|
DPADD= ${LIBUNBOUND} ${LIBLDNS} ${LIBUTIL} ${LIBBSDXML} ${LIBSSL} ${LIBCRYPTO} ${LIBPTHREAD}
|
|
LDADD= ${LDUNBOUND} ${LDLDNS} -lutil -lbsdxml -lssl -lcrypto -lpthread
|
|
USEPRIVATELIB= ldns
|
|
MAN= unbound-anchor.8
|
|
|
|
.include <bsd.prog.mk>
|