Use .PATH.S instead of giving a source file with fully qualified path.

This should avoid the sun3 port contaminating its source tree during build
with .d and .o files corresponding to ctrlsp.S.
This commit is contained in:
he 2009-09-25 11:19:35 +00:00
parent 5180c00189
commit 3b5f619bfc

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2009/03/20 11:42:25 tsutsui Exp $
# $NetBSD: Makefile.inc,v 1.2 2009/09/25 11:19:35 he Exp $
S!= cd ${SA_EXTRADIR}/../../../..; pwd
@ -11,7 +11,8 @@ SRCS+= clock.c dev_disk.c devopen.c \
promboot.c promcons.c promdev.c putstr.c \
sun2.c sun3.c sun3x.c xxboot.c
SRCS+= ${S}/arch/sun68k/sun68k/ctrlsp.S
.PATH.S: ${S}/arch/sun68k/sun68k
SRCS+= ctrlsp.S
# XXX libkern builds these only on m68000
.PATH.S: ${S}/../common/lib/libc/arch/m68k/gen