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
This commit is contained in:
parent
a25a1ff466
commit
5f20d1ae1b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317385
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user