On Thursday, February 03, 2011 11:16:05 am Richard Miller wrote:
> > %: %.$O
> > 
> >         $LD $LDFLAGS  -o $target $prereq
> 

Perhaps wont' be a problem with mk(1), but make(1) had biten me more than once 
with a rule like `-o $SOMEOUTPUT $SOMESOURCES'. When $SOMEOUTPUT was empty... 
the source file that had the bad luck of being the first on $SOMEOUTPUT got 
overwritten.

tl;dr: put -o $SOMEOUTPUT last in a recipe, at least for make(1)


-- 
dexen deVries

[[[↓][→]]]

> how does a C compiler get to be that big? what is all that code doing?

iterators, string objects, and a full set of C macros that ensure
boundary conditions and improve interfaces.

ron minnich, in response to Charles Forsyth

http://9fans.net/archive/2011/02/90

Reply via email to