I'm sorry if this is a stupid question, but I'm new in makefile.
I have two file hello.c and hello.h
When I implement in terminal of ubutu by command:
gcc -o hello hello.c
it is ok because hello.o is created.
However, when I write a makefile whose content:
CC=make
CFLAGS=-I
hell.o : hello.c
gcc-c hello.o
And then, I invoke makefile by command "make". Terminal informs:
"***missing separator. Error 127.
I don't know how to fix it. Please help me,thank for all.
I have two file hello.c and hello.h
When I implement in terminal of ubutu by command:
gcc -o hello hello.c
it is ok because hello.o is created.
However, when I write a makefile whose content:
CC=make
CFLAGS=-I
hell.o : hello.c
gcc-c hello.o
And then, I invoke makefile by command "make". Terminal informs:
"***missing separator. Error 127.
I don't know how to fix it. Please help me,thank for all.