make文件这么写对么?为什么出错
makefile:
就一个test.c文件,一个头文件a.h
test:test.o
gcc -o test test.o
test.o:test.c a.h
gcc -c test.c
可是make后,出现下面问题,各位高手指点一下
tbcs1:p6906:/bosshome/tbcs1/yangbc> make
"makefile", line 11: make: 1254-055 Dependency line needs colon or double colon operator.
"makefile", line 13: make: 1254-055 Dependency line needs colon or double colon operator.
make: 1254-058 Fatal errors encountered -- cannot continue.