diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2017-04-24 21:31:27 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2017-04-24 21:31:27 +0000 |
commit | 5f20d1ae1bde1bb10db3077acff6c2c6be5cf4f8 (patch) | |
tree | 5ff58b6d2a7a9961ec83cbcd9cfc69645c3565fa /usr.bin/getaddrinfo | |
parent | a25a1ff466327bc1511182c1cdf69c8877a1132f (diff) | |
download | src-5f20d1ae1bde1bb10db3077acff6c2c6be5cf4f8.tar.gz src-5f20d1ae1bde1bb10db3077acff6c2c6be5cf4f8.zip |
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
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D10461
Notes
Notes:
svn path=/head/; revision=317385
Diffstat (limited to 'usr.bin/getaddrinfo')
-rw-r--r-- | usr.bin/getaddrinfo/Makefile | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/getaddrinfo/Makefile b/usr.bin/getaddrinfo/Makefile index 6efb164c2f95..ced8c9e725b7 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} |