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 <> 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/ 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
--                       |       Zu Grunde kommen          |       Ist zu Grunde gehen

Home | Main Index | Thread Index | Old Index