weixin_40338450 2021-01-29 11:16 采纳率: 0%
浏览 10

eclips编译build all 时,提示没有创建目标“all”

在linux终端,编译 make 时,能正常生成bin文件。

通过eclips编译build all 时,提示没有创建目标“all”,?编译失败

怎么创建目标"all"谢谢。

主目录下makefile内容:

OBJS := start.o main.o dev/dev.o lib/lib.o net/net.o

CFLAGS := -fno-builtin -I$(shell pwd)/include
export CFLAGS

gboot.bin : gboot.elf
	arm-linux-objcopy -O binary gboot.elf gboot.bin

gboot.elf : $(OBJS)	
	arm-linux-ld -Tgboot.lds -o gboot.elf $^
	
%.o : %.S
	arm-linux-gcc -g -c $^
	
%.o : %.c
	arm-linux-gcc $(CFLAGS) -c $^

lib/lib.o : 
	make -C lib all

dev/dev.o :
	make -C dev all

net/net.o :
	make -C net all
	
.PHONY: clean
clean:
	make -C lib clean
	make -C dev clean
	make -C net clean
	rm -f *.o *.elf *.bin *.bak


  • 写回答

3条回答 默认 最新

  • 502203305 2021-01-29 11:18
    关注

    在第五行添加

     

    .PHONY:all

    all:gboot.bin;

    评论

报告相同问题?

悬赏问题

  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM