Subject: Re: make obj broken in sys/arch/i386/stand somewhere
To: David Laight <david@l8s.co.uk>
From: Hisashi T Fujinaka <htodd@twofifty.com>
List: current-users
Date: 10/12/2003 14:18:30
On Sun, 12 Oct 2003, David Laight wrote:

> > Oh, so 'make obj' in a directory isn't what build.sh does, eh?
> >
> > The 'lib' directories keep being created (no symlink) by './build.sh -U
> > distribution' and I keep deleting them. I find them when I did my daily
> > cvs update.
>
> The lib directories are created as ${.OBJDIR}/lib.
> I suspect that bsd.subdir.mk doesn't create an 'objdir', but for my builds
> the directory gets generated by 'make obj' in the subdirectories.
>
> Try adding:
> .include <bsd.obj.mk>
> to Makefile in those directries.

So, in  /usr/src/sys/arch/i386/stand/boot, I should get an objdir,
right? I don't:

htodd@allison:/usr/src/sys/arch/i386/stand/boot > make obj
obj ===> biosboot

htodd@allison:/usr/src/sys/arch/i386/stand/boot > cat Makefile
# $NetBSD: Makefile,v 1.3 2003/10/08 18:51:50 dsl Exp $

SUBDIR= biosboot

LIBOBJ= ${.OBJDIR}
.MAKEOVERRIDES+= LIBOBJ

.include <bsd.subdir.mk>

cleandir distclean: cleanlibdir

cleanlibdir:
        -rm -rf lib

This is freshly checked out.


-- 
Hisashi T Fujinaka - htodd@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte