Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/net/lib/libvirtif Separate common bits for all inte...
details: https://anonhg.NetBSD.org/src/rev/9380f105c950
branches: trunk
changeset: 327611:9380f105c950
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Mar 12 23:40:58 2014 +0000
description:
Separate common bits for all interfaces implementing virtif hypercalls
from Makefile to Makefile.virtif. The latter is meant to be .included.
diffstat:
sys/rump/net/lib/libvirtif/Makefile | 10 +++-------
sys/rump/net/lib/libvirtif/Makefile.virtif | 16 ++++++++++++++++
2 files changed, 19 insertions(+), 7 deletions(-)
diffs (43 lines):
diff -r 2673c0fc0a72 -r 9380f105c950 sys/rump/net/lib/libvirtif/Makefile
--- a/sys/rump/net/lib/libvirtif/Makefile Wed Mar 12 22:50:59 2014 +0000
+++ b/sys/rump/net/lib/libvirtif/Makefile Wed Mar 12 23:40:58 2014 +0000
@@ -1,16 +1,12 @@
-# $NetBSD: Makefile,v 1.7 2013/07/04 11:46:51 pooka Exp $
+# $NetBSD: Makefile,v 1.8 2014/03/12 23:40:58 pooka Exp $
#
LIB= rumpnet_virtif
+VIRTIF= virt
-SRCS= if_virt.c
-SRCS+= component.c
-
-CPPFLAGS+= -I${.CURDIR}/../../../librump/rumpkern -I${.CURDIR}
-CPPFLAGS+= -DVIRTIF_BASE=virt
+.include "${.CURDIR}/Makefile.virtif"
RUMPCOMP_USER= #defined
-RUMPCOMP_USER_CPPFLAGS+= -DVIRTIF_BASE=virt
.include <bsd.lib.mk>
.include <bsd.klinks.mk>
diff -r 2673c0fc0a72 -r 9380f105c950 sys/rump/net/lib/libvirtif/Makefile.virtif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/net/lib/libvirtif/Makefile.virtif Wed Mar 12 23:40:58 2014 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile.virtif,v 1.1 2014/03/12 23:40:58 pooka Exp $
+#
+
+.if !defined(VIRTIF)
+.error Define VIRTIF when including ${.PARSEFILE}
+.endif
+
+SRCS= if_virt.c component.c
+
+VIRTIFDIR:= ${.PARSEDIR}
+.PATH: ${VIRTIFDIR}
+
+CPPFLAGS+= -I${VIRTIFDIR}/../../../librump/rumpkern -I${VIRTIFDIR}
+CPPFLAGS+= -DVIRTIF_BASE=${VIRTIF}
+
+RUMPCOMP_USER_CPPFLAGS+= -DVIRTIF_BASE=${VIRTIF} -I${VIRTIFDIR}
Home |
Main Index |
Thread Index |
Old Index