Я только что начал учиться на жестком пути, и я нахожусь на Упражнении № 2.Учиться C Жесткий путь Упражнение 2
ссылка здесь: http://c.learncodethehardway.org/book/ex2.html
Инструкции сделать файл только с этим в нем:
CFLAGS=-Wall -g
clean:
rm -f ex1
Так что я создал и спас, что, как Makefile.c, однако, после запуска его как указанный в моем компиляторе (MinGW), я получаю эту ошибку:
$make clean
cc makefile.c -o makefile
makefile.c:3:1: warning: data definition has no type or storage class [enabled by default]
makefile.c:3:9: error: 'Wall' undeclared here (not in a function)
makefile.c:3:15: error: 'g' undeclared here (not in a function)
makefile.c:5:1: error expected ',' or ';' before 'clean'
cc Makefile.c -o Makefile
Makefile.c:3:1: warning: data definition has no type or storage class [enabled by default]
Makefile.c:3:9: error: 'Wall' undeclared here (not in a function)
Makefile.c:3:15: error: 'g' undeclared here (not in a function)
Makefile.c:5:1: error expected ',' or ';' before 'clean'
make: *** No rule to make target 'clean'. Stop.
Любые идеи, что я делаю неправильно и/или как я могу это исправить? Благодаря!