makefile文件(没有出现"missing seperator错误")# makefile for MinGW Hello World Test# @copyright 2007/05/01 by zenfCC = g++AR = arLD = ldRM = del#RM = rm -rfMV = MOVE /YCP = copyC++FLAGS = -g -Wno-deprecated -Wall -Werror -I.OBJ_LIST = $(subst .cpp,.o,$(wildcard *.cpp))TARGET = main.exeall: depend.dep $(TARGET)$(TARGET): $(OBJ_LIST)$(CC) -o $(TARGET) $(OBJ_LIST) -mconsolemain.execlean:$(RM) *.o *.obj *.tmp *.exe *.dep *.sdepend.dep:$(CC) -M $(C++FLAGS) $(wildcard *.cpp) > $@-include depend.*.cpp.o :$(CXX) -c $(C++FLAGS) $<%.dir:%$(MAKE) -C $< $(DEBUG_MAKE)
1 回答
Helenr
TA贡献1780条经验 获得超3个赞
$(TARGET): $(OBJ_LIST)$(CC) -o $(TARGET) $(OBJ_LIST) -mconsolemain.exe
这句有问题。应该分为两行吧,第二行用tab键开头。
$(TARGET): $(OBJ_LIST)
$(CC) -o $(TARGET) $(OBJ_LIST) -mconsolemain.exe
添加回答
举报
0/150
提交
取消