我用MFile生成了一个makefile ,工程只有一个.c文件,只修改了Makefile中的 TARGET和SRC部分,但编译时出错如下: Error makefile 379: Command syntax error Error makefile 380: Command syntax error Error makefile 381: Command syntax error Error makefile 382: Command syntax error Error makefile 385: Command syntax error Error makefile 386: Command syntax error Error makefile 388: Command syntax error Error makefile 389: Command syntax error Error makefile 391: Command syntax error Error makefile 393: Command syntax error Error makefile 394: Command syntax error Error makefile 448: Colon expected Error makefile 474: Too many rules for target '%.o' Error makefile 501: Command syntax error
错误指向如下语句: ifeq ($(DEBUG_BACKEND),simulavr) @echo load >> $(GDBINIT_FILE) endif @echo break main >> $(GDBINIT_FILE) debug: gdb-config $(TARGET).elf ifeq ($(DEBUG_BACKEND), avarice) @echo Starting AVaRICE - Press enter when "waiting to connect" message displays. @$(WINSHELL) /c start avarice --jtag $(JTAG_DEV) --erase --program --file \ $(TARGET).elf $(DEBUG_HOST):$(DEBUG_PORT) @$(WINSHELL) /c pause else @$(WINSHELL) /c start simulavr --gdbserver --device $(MCU) --clock-freq \ $(DEBUG_MFREQ) --port $(DEBUG_PORT) endif @$(WINSHELL) /c start avr-$(DEBUG_UI) --command=$(GDBINIT_FILE)
刚学习GCC,请多指教,谢谢! |