opnsense-src/usr.bin/getaddrinfo/Makefile
Eric van Gyzen f5b9907c86 Port the getaddrinfo(1) utility from NetBSD
Submitted by:	Lohith Bellad <lohithbsd@gmail.com>
Reviewed by:	hiren (earlier rev), ae
Obtained from:	NetBSD
MFC after:	1 week
Relnotes:	yes
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D9365
2017-03-20 16:44:55 +00:00

22 lines
505 B
Makefile

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