How to have Makefile read other extensions as .cpp

this question seems odd but dont ask
i dont have any program so i can give source code im just wondering and curious
is there any way for my gnu Makefile to not only read .cpp
but be able to read other file extensions i made up if it where a .cpp?
did you try it?
I know g++ / gcc does not care. but I don't know if the make tools do. It seems likely they would not care either?
Last edited on
GNU make already knows how to build object files from .cpp files by consulting a built-in database of recipes called implicit rules.

You can add your own recipe for any file.

Last edited on
@mbozzi how do i do that?
Topic archived. No new replies allowed.