You said makehow to generate *.ofrom the corresponding file *.c. (Not what you need, because you makealready know as much, at least until you try something more specific than what you wrote in your rule.)
, - foo.o bar.o, make .
, Makefile, make foo.o .
----
, , ... , , . , .
, GNU , , patsubst, find GCC ( -MMD -MP). , -, CMake,