1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/usr.bin/getaddrinfo/Makefile
Brooks Davis 5f20d1ae1b 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>