当前位置:网站首页>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=
边栏推荐
猜你喜欢
随机推荐
B. Codeforces Subsequences
shell小技巧(一百三十五)打包指定目录下所用文件,每个文件单独打包
优化是一种习惯●出发点是'站在靠近临界'的地方
微擎盲盒交友变现-vp_ph打开慢优化
UPDATE:修改数据语法使用例——《mysql 从入门到内卷再到入土》
INSERT:插入操作语法&使用例——《mysql 从入门到内卷再到入土》
DELETE:删除操作语法&使用例——《mysql 从入门到内卷再到入土》
xshell (sed 命令)
SELECT:简单的查询操作语法&使用例——《mysql 从入门到内卷再到入土》
服务——DNS正向反向域名解析服务
图数据库(Neo4j)入门
JVM经典五十问,这下面试稳了
《mysql 从入门到内卷再到入土》——Mysql基础 学习笔记目录
直播课堂系统08补-腾讯云对象存储和课程分类管理
Rider调试ASP.NET Core时报thread not gc-safe的解决方法
DDL:视图——《mysql 从入门到内卷再到入土》
DDL:ALTER 修改数据库——《mysql 从入门到内卷再到入土》
C. Even Picture
地理探测器Geodetector软件的下载、应用与结果解读
快消品行业经销商协同系统:实现经销商可视化管理,提高沟通执行效率