8a9380f42c
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
20 lines
370 B
Makefile
20 lines
370 B
Makefile
# $FreeBSD$
|
|
|
|
# Vendor sources and generated files
|
|
LDNSDIR= ${.CURDIR}/../../contrib/ldns
|
|
|
|
.PATH: ${LDNSDIR}/drill
|
|
|
|
PROG= drill
|
|
SRCS= drill.c drill_util.c error.c root.c work.c \
|
|
chasetrace.c dnssec.c securetrace.c
|
|
CFLAGS+= -I${LDNSDIR}
|
|
NO_WERROR= true
|
|
MAN= drill.1
|
|
|
|
DPADD+= ${LIBLDNS} ${LIBCRYPTO}
|
|
LDADD+= ${LDLDNS} -lcrypto
|
|
USEPRIVATELIB= ldns
|
|
|
|
.include <bsd.prog.mk>
|