Subject: port-newsmips/8451: some Makefiles in newsmips/stand don't handle OBJDIR operation
To: None <gnats-bugs@gnats.netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 09/20/1999 09:58:49
>Number:         8451
>Category:       port-newsmips
>Synopsis:       some Makefiles in newsmips/stand don't handle OBJDIR operation
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-newsmips-maintainer (NetBSD/newsmips Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 20 09:05:01 1999
>Last-Modified:
>Originator:     Izumi Tsutsui
>Organization:
Izumi Tsutsui	Himeji City, Japan
>Release:        NetBSD-current 19990918
>Environment:
System: NetBSD 1.4K newsmips, NWS-3470D

>Description:
make build in newsmips/stand/boot{,xx} directory would fail
if obj directories are created. Makefiles do not use ${.CURDIR}
appropriately.

>How-To-Repeat:
make obj and make dependall in /sys/arch/newsmips/stand.

>Fix:

Index: boot/Makefile
===================================================================
RCS file: /cvs/repository/src/sys/arch/newsmips/stand/boot/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile	1999/09/11 15:53:17	1.1.1.1
+++ Makefile	1999/09/20 14:54:01
@@ -1,6 +1,6 @@
 #	$NetBSD: Makefile,v 1.1 1999/07/08 11:48:05 tsubai Exp $
 
-.PATH: ../bootxx
+.PATH: ${.CURDIR}/../bootxx
 
 S= ${.CURDIR}/../../../..
 
@@ -21,7 +21,7 @@
 CFLAGS= -Os -G 0 -mno-abicalls -Wall
 
 CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
-CPPFLAGS+= -I. -I../../../..
+CPPFLAGS+= -I. -I${.CURDIR}/../../../..
 
 AFLAGS= -D_LOCORE
 
Index: bootxx/Makefile
===================================================================
RCS file: /cvs/repository/src/sys/arch/newsmips/stand/bootxx/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile	1999/09/11 15:53:18	1.1.1.1
+++ Makefile	1999/09/20 14:45:49
@@ -11,7 +11,7 @@
 CFLAGS= -Os -mno-abicalls -G 0 -Wall
 
 CPPFLAGS+= -D_STANDALONE #-DBOOTXX_DEBUG
-CPPFLAGS+= -I../../../..
+CPPFLAGS+= -I${.CURDIR}/../../../..
 AFLAGS= -D_LOCORE
 
 L= ../boot/lib
>Audit-Trail:
>Unformatted: