> -----Original Message-----
> From: Christophe LYON [mailto:[email protected]] 
> 
> why wouldn't you use a single library rule, such as:
> mylib.a: $(OBJS)
>       ar cr $@ $^
> 

Main reason not to would be the total rebuilding of the library every
time, even if only 1 object file had changed. Right now, I use a rule of


(%.o) : $(OBJ_DIR)/%.o
        @ar $(ARFLAGS) $@ $<

Where ARFLAGS starts as -csr. 

Dale


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to