当前位置:网站首页>Black cat takes you to learn Makefile Part 11: When the header file a.h changes, how to recompile all the .c files that depend on the header file a.h
Black cat takes you to learn Makefile Part 11: When the header file a.h changes, how to recompile all the .c files that depend on the header file a.h
2022-08-10 22:00:00 【Senior black cat】
This article is compiled/written based on personal work/study experience and online materials. Paid content is prohibited from being reproduced.
The column where this article is located "Black cat takes you to learn Makefile"
Steps:
(1) Use the gcc -MM command to list the dependencies
(2) Put the dependencies in a custom file
(3) Use sinclude/-include/includeExpand dependencies of custom files
Example:
%.d: %.c$(CC) -MM $< > [email protected] $(SRCS:.c=
边栏推荐
- 用示波器揭示以太网传输机制
- 查询:复杂查询的语法和使用例——《mysql 从入门到内卷再到入土》
- UPDATE:修改数据语法使用例——《mysql 从入门到内卷再到入土》
- About DataFrame: Processing Time
- 3D model reconstruction of UAV images based on motion structure restoration method based on Pix4Dmapper
- 智能方案设计——智能跳绳方案
- 翻译科技论文,俄译中怎样效果好
- Uniapp编译后小程序的代码反编译一些思路
- 我的世界整合包 云服务器搭建方法(ECS)
- shell (text printing tool awk)
猜你喜欢
随机推荐
数字化转型:如何引导创新领导者
直播课堂系统08补-腾讯云对象存储和课程分类管理
web逆向之丁香园
卡片盒笔记法的操作步骤
xshell (sed command)
直播课堂系统08-腾讯云对象存储和课程分类管理
3D model reconstruction of UAV images based on motion structure restoration method based on Pix4Dmapper
Thread State 详解
B. Same Parity Summands
LeetCode-498-对角线遍历
【PCBA方案】电子握力测试仪方案she‘ji
LeetCode-36-二叉搜索树与双向链表
使用 Cloudreve 搭建私有云盘
Play RT-THREAD of doxygen
基于Pix4Dmapper的运动结构恢复法无人机影像三维模型重建
关于 DataFrame: 处理时间
UPDATE:修改数据语法使用例——《mysql 从入门到内卷再到入土》
使用SylixOS虚拟串口,实现系统串口自由
异常的了解
国内Gravatar头像的完美替代方案Cravatar