Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/dev/lib/librnd Put the path to the compat/common di...



details:   https://anonhg.NetBSD.org/src/rev/ebdc1de43946
branches:  trunk
changeset: 772149:ebdc1de43946
user:      apb <apb%NetBSD.org@localhost>
date:      Tue Dec 20 17:09:04 2011 +0000

description:
Put the path to the compat/common directory in a .PATH line, not in
an element of the SRCS list.  This should fix a problem in which build
products were created in the source tree.

Also add a comment about where COMPAT_50 is defined.

diffstat:

 sys/rump/dev/lib/librnd/Makefile |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 5b995fe869d8 -r ebdc1de43946 sys/rump/dev/lib/librnd/Makefile
--- a/sys/rump/dev/lib/librnd/Makefile  Tue Dec 20 16:49:37 2011 +0000
+++ b/sys/rump/dev/lib/librnd/Makefile  Tue Dec 20 17:09:04 2011 +0000
@@ -1,15 +1,19 @@
-#      $NetBSD: Makefile,v 1.4 2011/12/19 21:56:18 apb Exp $
+#      $NetBSD: Makefile,v 1.5 2011/12/20 17:09:04 apb Exp $
 #
 
 .PATH: ${.CURDIR}/../../../../dev
 
 LIB=   rumpdev_rnd
 
-SRCS=   rnd.c rndpseudo.c rndpool.c
-SRCS+=  ${.CURDIR}/../../../../compat/common/rndpseudo_50.c
+SRCS=  rnd.c rndpseudo.c rndpool.c
 
 SRCS+= component.c
 
+# sys/rump/Makefile.rump sets CPPFLAGS+= -DCOMPAT_50=1,
+# so we need rndpseudo_50.c from the compat/common directory.
+.PATH: ${.CURDIR}/../../../../compat/common
+SRCS+= rndpseudo_50.c
+
 CPPFLAGS+=     -I${RUMPTOP}/librump/rumpvfs
 
 .include <bsd.lib.mk>



Home | Main Index | Thread Index | Old Index