From: Jeremy H. <jer...@fr...> - 2010-04-02 00:17:46
|
On Apr 1, 2010, at 15:27, Dan Nicholson wrote: > On Thu, Apr 1, 2010 at 2:40 PM, Jeremy Huddleston > <jer...@fr...> 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 |