Subject: Re: Makefile.sparc unhelpful for Sun4 builds
To: Julian Coleman <J.D.Coleman@newcastle.ac.uk>
From: Simon Burge <simonb@netbsd.org>
List: port-sparc
Date: 06/14/1999 07:39:04
Julian Coleman wrote:
> Just trying to compile a new kernel for a 4/300. Makefile.sparc has a file
> list SFILES that contains (for GENERIC) :
>
> SFILES= $S/arch/sparc/sparc/bsd_fdintr.s \
> $S/arch/sparc/sparc/amd7930intr.s
>
> If you try to configure a machine with neither floppy nor audio, you will end
> up with an empty SFILES definition, and make depend will be unhappy.
>
> Is the appended patch a reasonable solution?
For the pmax port, I used:
.if (${SFILES} != "")
instead of just checking if SFILES is defined. I don't think we'll
ever see the case of
SFILES=
...
SFILES+= something.S
So your patch is probably more correct...
Simon.