【发布时间】:2016-12-01 21:41:36
【问题描述】:
all: operation
operation: operation.o operation_functions.o
$(gcc) $(-std=c99 -Wall) -o operation operation.o operation_functions.o
operation.o: operation.c operation_functions.h
$(gcc) $(-std=c99 -Wall) -c operation.c
operation_functions.o: operation_functions.c operation_functions.h
$(gcc) $(-std=c99 -Wall) -c operation_functions.c
test: operation
operation 7 5 10 15
operation 0.57 0.9 3.5 9.12
operation 0 -9 0 -3
operation 0.467 13 0 -4
operation 0 8 9 15
operation 0 0 15 30
operation 12 0 0 0
clean:
rm -f *.o operation
这是我正在使用的 makefile,运行时它说在第 3 行中看到了意外的行尾,我不确定发生了什么,希望能得到解释。
【问题讨论】:
-
检查所有缩进是真正的制表符,而不是空格。
标签: makefile