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