Module Name:    src
Committed By:   martin
Date:           Tue Aug 27 14:53:38 UTC 2019

Modified Files:
        src/external/bsd/libnv/lib: Makefile
Added Files:
        src/external/bsd/libnv/lib: srcs.mk

Log Message:
Move common parts into a makefile fragment usable from elsewhere.
Suggested by mrg.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/libnv/lib/Makefile
cvs rdiff -u -r0 -r1.1 src/external/bsd/libnv/lib/srcs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/libnv/lib/Makefile
diff -u src/external/bsd/libnv/lib/Makefile:1.2 src/external/bsd/libnv/lib/Makefile:1.3
--- src/external/bsd/libnv/lib/Makefile:1.2	Sun Feb 17 23:54:08 2019
+++ src/external/bsd/libnv/lib/Makefile	Tue Aug 27 14:53:38 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2019/02/17 23:54:08 bad Exp $
+# $NetBSD: Makefile,v 1.3 2019/08/27 14:53:38 martin Exp $
 
 WARNS?=		5
 
@@ -16,6 +16,7 @@ LIB=		nv
 #INCSDIR=	/usr/include
 #MAN=		nv.3
 
-SRCS=		dnvlist.c msgio.c nvlist.c nvpair.c nv_kern_netbsd.c
+.include "srcs.mk"
+SRCS=		${LIBNV_SRCS}
 
 .include <bsd.lib.mk>

Added files:

Index: src/external/bsd/libnv/lib/srcs.mk
diff -u /dev/null src/external/bsd/libnv/lib/srcs.mk:1.1
--- /dev/null	Tue Aug 27 14:53:38 2019
+++ src/external/bsd/libnv/lib/srcs.mk	Tue Aug 27 14:53:38 2019
@@ -0,0 +1,12 @@
+#	$NetBSD: srcs.mk,v 1.1 2019/08/27 14:53:38 martin Exp $
+
+# Sources and additional flags for libnv
+
+LIBNV_SRCS=	dnvlist.c msgio.c nvlist.c nvpair.c nv_kern_netbsd.c
+NVSRC_DISTPATH=	${NETBSDSRCDIR}/sys/external/bsd/libnv/dist
+
+.for _s in ${LIBNV_SRCS}
+CPPFLAGS.${_s}	+=	-I${NVSRC_DISTPATH}
+.endfor
+
+.PATH:	${NVSRC_DISTPATH}

Reply via email to