I am just starting out with C and now I am at the part where I want to learn about Makefiles. I am starting out small but already failing ;)
I have a very simple Makefile which just compiles the main.c to a main.o and then to an executable. But I get an error saying I have a syntax error. I use g++.
The command that i use are:
g++ make Makefile << name of the make file And the Makefile is set up like this:
main.o: main.c main.h [TAB] g++ -c main.c main: main.o [TAB] g++ main.o -o main