Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 May 2017 16:59:55 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r317653 - stable/11/usr.bin/getaddrinfo
Message-ID:  <201705011659.v41GxtWv061621@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Mon May  1 16:59:54 2017
New Revision: 317653
URL: https://svnweb.freebsd.org/changeset/base/317653

Log:
  MFC r317385:
  
  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
  Sponsored by:	DARPA, AFRL

Modified:
  stable/11/usr.bin/getaddrinfo/Makefile
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/getaddrinfo/Makefile
==============================================================================
--- stable/11/usr.bin/getaddrinfo/Makefile	Mon May  1 16:56:34 2017	(r317652)
+++ stable/11/usr.bin/getaddrinfo/Makefile	Mon May  1 16:59:54 2017	(r317653)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705011659.v41GxtWv061621>