Tue Dec 20 17:09:04 2011 UTC ()
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.


(apb)
diff -r1.4 -r1.5 src/sys/rump/dev/lib/librnd/Makefile

cvs diff -r1.4 -r1.5 src/sys/rump/dev/lib/librnd/Makefile (expand / switch to unified diff)

--- src/sys/rump/dev/lib/librnd/Makefile 2011/12/19 21:56:18 1.4
+++ src/sys/rump/dev/lib/librnd/Makefile 2011/12/20 17:09:04 1.5
@@ -1,16 +1,20 @@ @@ -1,16 +1,20 @@
1# $NetBSD: Makefile,v 1.4 2011/12/19 21:56:18 apb Exp $ 1# $NetBSD: Makefile,v 1.5 2011/12/20 17:09:04 apb Exp $
2# 2#
3 3
4.PATH: ${.CURDIR}/../../../../dev 4.PATH: ${.CURDIR}/../../../../dev
5 5
6LIB= rumpdev_rnd 6LIB= rumpdev_rnd
7 7
8SRCS= rnd.c rndpseudo.c rndpool.c 8SRCS= rnd.c rndpseudo.c rndpool.c
9SRCS+= ${.CURDIR}/../../../../compat/common/rndpseudo_50.c 
10 9
11SRCS+= component.c 10SRCS+= component.c
12 11
 12# sys/rump/Makefile.rump sets CPPFLAGS+= -DCOMPAT_50=1,
 13# so we need rndpseudo_50.c from the compat/common directory.
 14.PATH: ${.CURDIR}/../../../../compat/common
 15SRCS+= rndpseudo_50.c
 16
13CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs 17CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
14 18
15.include <bsd.lib.mk> 19.include <bsd.lib.mk>
16.include <bsd.klinks.mk> 20.include <bsd.klinks.mk>