Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/libnv/lib Move common parts into a makefile fra...



details:   https://anonhg.NetBSD.org/src/rev/c69120ec9da8
branches:  trunk
changeset: 453829:c69120ec9da8
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Aug 27 14:53:38 2019 +0000

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

diffstat:

 external/bsd/libnv/lib/Makefile |   5 +++--
 external/bsd/libnv/lib/srcs.mk  |  12 ++++++++++++
 2 files changed, 15 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 9c2217033d35 -r c69120ec9da8 external/bsd/libnv/lib/Makefile
--- a/external/bsd/libnv/lib/Makefile   Tue Aug 27 14:11:00 2019 +0000
+++ b/external/bsd/libnv/lib/Makefile   Tue Aug 27 14:53:38 2019 +0000
@@ -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 @@
 #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>
diff -r 9c2217033d35 -r c69120ec9da8 external/bsd/libnv/lib/srcs.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libnv/lib/srcs.mk    Tue Aug 27 14:53:38 2019 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index