tech-userlevel archive

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

Re: Trouble with libc / common makefiles



On Thu, 17 Apr 2008, Valeriy E. Ushakov wrote:
> 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).

In that case, something like this might fix it:

        .if whatever
        # Require bcopy.o to be built from bcopy.c (not from bcopy.S),
        # but still rely on the builtin ".c.o" rules for the details.
        bcopy.o: bcopy.c
        .endif

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index