I just started to learn C++ after I have been programing in C. I use vim and the GNU compiler in terminal to create my programs. When I was working in C I made a generic one-file Makefile so I did have to write out all the tags/switches every time I wanted to compile a program. Can someone look at my Makefile and tell me what I need to update for it to work in C++?
The old Makefile for C programs:
# Generic makefile for simple (one-file) C programs
CFLAGS=-Wall -Werror -g -pedantic -ansi