John Graham-Cumming wrote:
I assume that the what you are doing is building a library (.a) from a
bunch of .o files. You could do something like this:
lib%.a:
$(AR) r '$@' $^
ranlib '$@'
then (as you have above), just specify the list of objects like this:
libfoo.a: $(FOO_OBJS)
libbar.a: $(BAR_OBJS)
libbaz.a: $(BAZ_OBJS)
Ah, I guessed that might work :)
Thanks John, you've been extremely helpful. I'm away to beaver away at
my makefiles :)
Brendan
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make