On Apr 1, 2010, at 15:27, Dan Nicholson wrote:

> On Thu, Apr 1, 2010 at 2:40 PM, Jeremy Huddleston
> <jerem...@freedesktop.org> wrote:
>> 
>> On Apr 1, 2010, at 14:18, Dan Nicholson wrote:
>> 
>>>> +$(PROGS): $(PROGS:%=%.o)
>>> 
>>> Is this necessary? I would think the prereq would be picked up
>>> implicitly like the .c from the .o.
>> 
>> Nope.  Without this, it tries to compile the .c directly to the executable 
>> rather than the .o first.
> 
> Even after you remove the .SUFFIXES lines?

Yep.

> Yeah, I guess it would have
> that assumption since the names are the same.

I know it's ugly.  I tried finding another way, but that's what ended up 
working =/

> automake/libtool certainly passes both CFLAGS and LDFLAGS during the
> linking step. All the other targets in this same Makefile do, too. For
> better or worse, I think we need to pass the CFLAGS during the link.

ok.  I'll send an updated version in a bit for review.

Thanks,
Jeremy



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to