On Tue, Aug 10, 2010 at 05:53:09PM +0000, Matthias Drochner wrote: > Module Name: src > Committed By: drochner > Date: Tue Aug 10 17:53:08 UTC 2010 > > Modified Files: > src/lib/libm: Makefile > > Log Message: > two disgusting hacks: > -mk/bsd.lib.mk picks up a .S asm file behind our back (did it do so > always?). s_modf.S is incorrect; I'm undecided whether it makes sense > to fix it, so add a stupid rule to enforce the .c file to be used.
It might be worth using a .for loop to generate explicit dependencies for .o files against the relevant source file when the files are added to $(OBJS) instead of relying on the suffix rules. If no commands are defined I think make will still use those from the relevant suffix rule (as happens when the 'stupid rule' is added above). David -- David Laight: da...@l8s.co.uk