Re: The order of compiling multiple c++ source files

2022-08-10 Thread ljh
Thanks Paul, I have another quetion. Please help me. On section 10.2 of the manual:     ` x: y.o z.o ` Can I put x.o on the prerequisites on the right part?      ` x: y.o z.o x.o`  # with x.o Are they the same? --- The section 10.2 inspired me to write my little minimal general Make

Re: The order of compiling multiple c++ source files

2022-08-09 Thread Paul Smith
On Wed, 2022-08-10 at 04:32 +0800, ljh wrote: > make manual / 10.2 Catalogue of Built-In Rules / Linking a single > object file The example in the manual is wrong. The output you're getting from GNU make is correct. The reason is that the implicit rule that make chooses for the rule: x: y.o z