On Thu, Feb 01, 2024 at 09:51:34PM -0800, David F. wrote: > Any help would be appreciated on how to create the *.o.cmd file for .cpp files? Neither tested nor evaluated in-depth: You might want to have a look at scripts/Makefile.build and scripts/Kbuild.include. If you are able to include the relevant kbuild parts in your Makefile, you could try to supply a cmd_cc_o_cc definition and use it with if_changed macro. Kind regards, Nicolas