Thanks,

After studied the manual, i now understand it this way.


The builtin linking rule:


# output of make -p
%: %.o
  $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@


works for linking one object file
n: n.o


and for linking more than one object file
x: x.o y.o z.o


When there are multiple object files, they can be merging of prerequisites of
multiple individual rules with the same target
(according to manual 4.11 Multiple Rules for One Target)


x: x.o
x: y.o
x: z.o

Reply via email to