freebsd-skq/usr.bin/getaddrinfo/Makefile
brooks 36f2d901ea 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
2017-04-24 21:31:27 +00:00

19 lines
390 B
Makefile

# $NetBSD: Makefile,v 1.2 2014/04/29 01:21:02 christos Exp $
# $FreeBSD$
.include <bsd.own.mk>
PROG= getaddrinfo
SRCS= getaddrinfo.c tables.h
CFLAGS+= -I${SRCTOP}/lib/libnetbsd
LIBADD+= netbsd util
SYS_SOCKET_H?= ${SRCTOP}/sys/sys/socket.h
CFLAGS+= -I${.OBJDIR}
CLEANFILES+= tables.h
tables.h: tables.awk ${SYS_SOCKET_H}
LC_ALL=C awk -f ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>