当前位置:网站首页>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=
边栏推荐
- LeetCode-402 - Remove K digits
- 【PCBA solution】Electronic grip strength tester solution she'ji
- 自建函数 测试例和语法——《mysql 从入门到内卷再到入土》
- 如何保护 LDAP 目录服务中的用户安全?
- Before implementing MES management system, these three questions to consider
- C. Social Distance
- Huawei router clock near the drainage experiment (using stream strategy)
- ArcPy读取Excel时序数据、批量反距离加权IDW插值与掩膜
- 着力提升制造业核心竞争力,仪器仪表产业迎高质量发展
- 卡片盒笔记法的操作步骤
猜你喜欢
随机推荐
财务年报怎样翻译,为什么要选择专业翻译公司?
【vulhub】MySql身份认证绕过漏洞复现(CVE-2012-2122)
C. Rotation Matching
【Maui正式版】创建可跨平台的Maui程序,以及有关依赖注入、MVVM双向绑定的实现和演示
B. Codeforces Subsequences
Shell编程规范与变量
Regular expression of shell programming and text processor
Future与CompletableFuture
华为路由器旁挂引流实验(使用流策略)
【Windows】你不能访问此共享文件夹,因为你组织的安全策略阻止未经身份验证的来宾访问,这些策略可帮助保护你的电脑
JVM classic fifty questions, now the interview is stable
Live Classroom System 09--Tencent Cloud VOD Management Module (1)
2022.8.9 模拟赛
How to secure users in LDAP directory service?
卡片盒笔记法的操作步骤
什么是Jmeter?Jmeter使用的原理步骤是什么?
直播课堂系统08-腾讯云对象存储和课程分类管理
深度学习之 12 循环神经网络RNN2
LeetCode-498-对角线遍历
Rider调试ASP.NET Core时报thread not gc-safe的解决方法