随笔分类 -  makefile

摘要:1、程序的编译及链接 编译compile:把源程序编译为中间代码(window的.obj文件, linux的.o文件)==> arm-linux-gnueabihf-gcc 链接link:把中间文件链接为可执行文件 ==> arm-linux-gnueabihf-ld 2、makefile的基本规则 阅读全文
posted @ 2025-12-31 11:40 zbl1118 阅读(4) 评论(0) 推荐(0)
摘要:#////////////////////////////////Makefile五大特性:显式规则、隐晦规则、变量定义$、文件指示和注释(#)#Tab键开始 #//////////////////////////////////#标准写法 objects = main.o led.o uart.o 阅读全文
posted @ 2024-08-27 16:43 zbl1118 阅读(55) 评论(0) 推荐(0)
摘要:makefile知识 1、 Makefile五大内容(显示规则、隐晦规则、变量定义、文件指示、注释) 1.1、显示规则:如何生成一个或多个目标文件(要生成的文件,文件依赖的文件,生成命令);stm32: main.o hello.o gcc -o stm32 main.o hello.o 1.2、隐 阅读全文
posted @ 2024-08-27 16:27 zbl1118 阅读(121) 评论(0) 推荐(0)