[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-userlevel
Subject:    Re: Trouble with libc / common makefiles
From:       Alan Barrett <apb () cequrux ! com>
Date:       2008-04-17 8:12:05
Message-ID: 20080417081205.GA19699 () apb-laptoy ! apb ! alt ! za
[Download RAW message or body]

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)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic