当前位置:网站首页>Makefile将某一部分文件不编译
Makefile将某一部分文件不编译
2022-06-22 17:29:00 【追梦-北极星】
重构过程中,先重构部分代码,所以需要不编译某些文集
然后使用Makefile的$(filter-out)不编译一部分代码,但是发现并没有剔除
##modules sdk
SDKFILES += $(wildcard IDMSdk/*.cc)
CXXSRCS += $(filter-out IDMSdk/idm_uwb*.cc, $(SDKFILES))经分析,有可能是需要在$(filter-out)后的所有剔除的文件都需要空格,上面的匹配可能无法作为一个空格隔开的列表呈现(表达不是很好),所以用$(wildcard)先给过滤出来,再剔除
Makefile
##modules sdk
SDKFILES += $(wildcard IDMSdk/*.cc)
FILTEROUT += $(wildcard IDMSdk/idm_uwb*.cc)
CXXSRCS += $(filter-out $(FILTEROUT), $(SDKFILES))边栏推荐
- 链表4- 21 合并两个有序链表
- 今天19:30 | 科普大佬说,带大家探寻AI如何激发人类的创造力
- Jenkins的安装与升级
- Database industry analysis: from the global IT industry trend to the development of domestic databases
- jsp连接MySQL总出错
- Game NFT Market: opensea's most easily cut cake
- Explain the startup process of opengauss multithreading architecture in detail
- At 19:30 today, the science popularization leader said that he would take you to explore how AI can stimulate human creativity
- Network intelligent operation and maintenance helps improve operation and maintenance efficiency
- Does CDC 2.2.1 monitoring sqlserver not support monitoring multiple databases?
猜你喜欢

知乎热问:一个程序员的水平能差到什么程度?

2022年R2移动式压力容器充装试题模拟考试平台操作

@“齐鲁多娇”幸运用户,山东5A景区喊你免费游园啦!

Binary tree practice the second bullet
Golang implements reliable delay queue based on redis

Zero basic programming / reverse learning / over detection (Frida practice)

Five practical tips for power Bi (complimentary books at the end of the article)

UE4_UE5制作3DUI-跟随相机朝向(附工程)

A course for New Oriental transformation bilingual live broadcast to bring goods to the project manager

中国移动手机用户缓慢增长,但努力争取高利润的5G套餐用户
随机推荐
JVM快速入门
centerOS 安装mangodb
c# sqlsugar,hisql,freesql orm框架全方位性能测试对比之sqlserver
ADAU1452开发系统界面与代码数据之间的关系
Nuxt - Universal (SSR / SSG) / single page app (rendering mode)
exness整理马斯克收购推特需要解决三个问题
Oracle中dbms_output.put_line的用法实例
Activity启动流程梳理
math_ Angular function & inverse trigonometric function
[small program project development -- Jingdong Mall] rotation chart of uni app development
新东方转型双语直播带货给项目管理人的一场课
知乎热问:一个程序员的水平能差到什么程度?
[轻松学会shell编程]-4、单引号和双引号的区别、整形数值的运算、shell中数组定义和sed的详细用法
Pytorch——报错解决:“torch/optim/adamw.py” beta1, UnboundLocalError: local variable ‘beta1‘
2022重庆幼教产业展览会|高科技玩具益智解压玩具博览会
写一本畅销书是怎样的一种体验
预训练语言模型,bert,RoFormer-Sim又称SimBERTv2
UE4_UE5制作3DUI-跟随相机朝向(附工程)
Nuxt - 超详细环境搭建及创建项目整体流程(create-nuxt-app)
預訓練語言模型,bert,RoFormer-Sim又稱SimBERTv2