svn commit: r321850 - head/tools/tools/bootparttest

Ngie Cooper ngie at FreeBSD.org
Tue Aug 1 05:34:05 UTC 2017


Author: ngie
Date: Tue Aug  1 05:34:04 2017
New Revision: 321850
URL: https://svnweb.freebsd.org/changeset/base/321850

Log:
  Makefile cleanup
  
  - Standardize on SRCTOP instead of .CURDIR-relative paths
  - Use LIBADD instead of a mix of specifying -lgeom via DPADD/LDADD/LDFLAGS.
    Specifying -lgeom via LDFLAGS is an especially unnecessary and odd
    pattern.
  
  MFC after:	1 week

Modified:
  head/tools/tools/bootparttest/Makefile

Modified: head/tools/tools/bootparttest/Makefile
==============================================================================
--- head/tools/tools/bootparttest/Makefile	Tue Aug  1 05:29:36 2017	(r321849)
+++ head/tools/tools/bootparttest/Makefile	Tue Aug  1 05:34:04 2017	(r321850)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-.PATH:		${.CURDIR}/../../../sys/boot/common
+.PATH:		${SRCTOP}/sys/boot/common
 
 BINDIR?=	/usr/bin
 
@@ -9,12 +9,10 @@ MAN=
 
 SRCS=		bootparttest.c crc32.c stub.c part.c disk.c
 
-CFLAGS=		-I${.CURDIR}/../../../sys/boot/common \
+CFLAGS=		-I${SRCTOP}/sys/boot/common \
 		-DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -DPART_DEBUG \
 		-DDISK_DEBUG
 
-DPADD+=		${LIBGEOM}
-LDADD+=		${LIBGEOM}
-LDFLAGS+=	-lgeom
+LIBADD+=	geom
 
 .include <bsd.prog.mk>


More information about the svn-src-head mailing list