这是生成文件:
CC=g++
CC_FLAGS=-Wall -march=native -ffast-math -O3
CC_SOURCES=AbsNode.cpp rle16.cpp
CC_OBJECTS=AbsNode.o rle16.o
# Link command:
test : $(CC_OBJECTS)
$(CC) $(CC_OBJECTS) -o test
# Compilation commands:
%.o:%.cpp
$(CC) -c $(CC_FLAGS) $(input) -o $(output)
将 make 应用于此 makefile 时,我得到以下输出:
g++ -c -Wall -march=native -ffast-math -O3 -o
g++: arguemnt to '-o' missing
为什么忽略输入和输出???