according to the manual you can use such syntax: libfoo(obj1.o) , which stands for insert obj1.o to libfoo, i wrote a rule like this:
libfoo(obj1.o obj2.o):obj1 obj2
this rule only insert obj1.o to libfoo, why it just can not insert obj2.o into libfoo?
what does libfoo(obj1.o obj2.o) really stands for?
From the GNUMake manual:
When you
make, I’m guessing you don’t specify the target, so Make chooses the first target, which in your makefile islibfoo(obj1.o).