tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Trouble with libc / common makefiles



Tim Rightnour <root%garbled.net@localhost> wrote:

> I'm trying to disable the asm mem* files in powerpc/string from
> being compiled, and I'm having a bit of trouble with it.
> 
> If I modify lib/libc/arch/powerpc/string/Makefile.inc to do
> something like:
> 
> .if ${MACHINE} == "evbppc"
> SRCS+=  bzero.S ffs.S strlen.S memcmp.c bcopy.c
> .else
> SRCS+=  bzero.S ffs.S strlen.S memcmp.S bcopy.S memcpy.S memmove.S
> .endif
> 
> It still builds bcopy.S.  I've tested that evbppc is set, because if
> I add nonexistent files to that section, it tries to build them and
> fails.
> 
> Any idea what is wrong here?  Is there any way to disable these from
> being built short of deleting them?

I guess you are tricked by the suffix rules.  Iirc, SRCS itself is not
used except to generate OBJS, at that point your OBJS contains bcopy.o
and you have both bcopy.S and bcopy.c in path.  For whatever reason .S
wins (comes earlier .SUFFIXES, probably).

SY, Uwe
-- 
uwe%stderr.spb.ru@localhost                       |       Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen



Home | Main Index | Thread Index | Old Index