summaryrefslogtreecommitdiffstats
path: root/usr.bin/getaddrinfo
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2017-05-01 16:59:54 +0000
committerbrooks <brooks@FreeBSD.org>2017-05-01 16:59:54 +0000
commit15869a9132e8c962e53d6ee957d1551e4a56b4d8 (patch)
tree946c31a017f6e0c72fc346ab8d7b4b5c268ebcfd /usr.bin/getaddrinfo
parent9b70ea0f74fd0ede657b303ffafba3b48ae4ca20 (diff)
downloadFreeBSD-src-15869a9132e8c962e53d6ee957d1551e4a56b4d8.zip
FreeBSD-src-15869a9132e8c962e53d6ee957d1551e4a56b4d8.tar.gz
MFC r317385:
Clean up Makefile. Prefer SRCTOP vs .CURDIR relative paths. Find libnetbsd using LIBADD infrastructure rather than manual hackery. Reviewed by: ngie, bapt Obtained from: CheriBSD Sponsored by: DARPA, AFRL
Diffstat (limited to 'usr.bin/getaddrinfo')
-rw-r--r--usr.bin/getaddrinfo/Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/getaddrinfo/Makefile b/usr.bin/getaddrinfo/Makefile
index 6efb164..ced8c9e 100644
--- a/usr.bin/getaddrinfo/Makefile
+++ b/usr.bin/getaddrinfo/Makefile
@@ -3,19 +3,15 @@
.include <bsd.own.mk>
PROG= getaddrinfo
+SRCS= getaddrinfo.c tables.h
-CFLAGS+= -I${.CURDIR}/../../lib/libnetbsd
-LIBNETBSDDIR= ${.OBJDIR}/../../lib/libnetbsd
-LIBNETBSD= ${LIBNETBSDDIR}/libnetbsd.a
-DPADD+= ${LIBNETBSD}
-LDADD+= ${LIBNETBSD}
+CFLAGS+= -I${SRCTOP}/lib/libnetbsd
-LIBADD+= util
+LIBADD+= netbsd util
-SYS_SOCKET_H?= ${.CURDIR}/../../sys/sys/socket.h
+SYS_SOCKET_H?= ${SRCTOP}/sys/sys/socket.h
-CFLAGS+= -I.
-DPSRCS+= tables.h
+CFLAGS+= -I${.OBJDIR}
CLEANFILES+= tables.h
tables.h: tables.awk ${SYS_SOCKET_H}
LC_ALL=C awk -f ${.ALLSRC} > ${.TARGET}
OpenPOWER on IntegriCloud