Reminder to self: generic Makefile target for compiling cpp files

How to write a generic Makefile target that will compile any .cpp file?

$@
Contains the target file name
$<
Contains the first dependency file name

Leave a Reply

Your email address will not be published. Required fields are marked *