当前位置:网站首页>makefile基础学习
makefile基础学习
2022-08-04 05:30:00 【Btobk】
Makefile 工程文件
严格的规则,格式
1.为什么需要makefile
1)工程的配置文件,工程管理,减少工作量,多个文件汇总到一个文件,只用执行make就行
2)Make命令依赖于makefile文件,否则会提示找不到规则
3)会告诉make命令如何编辑,如何执行代码
2.格式
目标:依赖
命令
命令前面有一个tab键
*hello:hello.c
gcc hello.c-o hello
在当前目录下需要有:hello.c,makefile
引入变量机制:cc = gcc,简化流程,防止以后改编译器
Hello:hello.c
$(cc) hello.c -o hello
3.自动变量
[email protected]:代表所有目标
$<:代表第一个依赖
$^:代表所有的依赖
cc = gcc
Hello:hello.c
$(cc) $^ -o [email protected]
4.隐式规则
vim makefile
使用make执行,【-f】可以指定文件(除默认文件)【v】,【n】,【s】,【w】,【C】【help】
【clean】清除
5.模式规则
可以全部编译,也可以指定一个文件进行编译
%类似余*,每一个.c,每一个.o

6.备注
之前的错了,我真的服了
边栏推荐
- Copy攻城狮5分钟在线体验 MindIR 格式模型生成
- No matching function for call to ‘RCTBridgeModuleNameForClass‘
- 【Copy攻城狮日志】“一分钟”跑通MindSpore的LeNet模型
- MNIST手写数字识别 —— 从二分类到十分类
- MNIST手写数字识别 —— 图像分析法实现二分类
- Deep Learning Theory - Initialization, Parameter Adjustment
- 深度学习,“粮草”先行--浅谈数据集获取之道
- [Deep Learning 21 Days Learning Challenge] 1. My handwriting was successfully recognized by the model - CNN implements mnist handwritten digit recognition model study notes
- [Deep Learning 21 Days Learning Challenge] 2. Complex sample classification and recognition - convolutional neural network (CNN) clothing image classification
- Introduction to Convolutional Neural Networks
猜你喜欢

Pytorch语义分割理解

Vision Transformer 论文 + 详解( ViT )

【CV-Learning】Convolutional Neural Network
![[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()](/img/99/819ccbfed599ffd52307235309cdc9.png)
[Deep Learning 21 Days Learning Challenge] Memo: What does our neural network model look like? - detailed explanation of model.summary()

多层LSTM

TensorRT 5 初步认识
![[Deep Learning 21-Day Learning Challenge] 3. Use a self-made dataset - Convolutional Neural Network (CNN) Weather Recognition](/img/d0/3b8549b9704278e8ec1df03a90f80e.png)
[Deep Learning 21-Day Learning Challenge] 3. Use a self-made dataset - Convolutional Neural Network (CNN) Weather Recognition

深度学习理论 —— 初始化、参数调节

PyTorch

浅谈外挂常识和如何防御
随机推荐
打金?工作室?账号被封?游戏灰黑产离我们有多近
[Deep Learning Diary] Day 1: Hello world, Hello CNN MNIST
MNIST手写数字识别 —— 图像分析法实现二分类
PCL1.12 解决memory.h中EIGEN处中断问题
详解近端策略优化
Brief description of database and common operation guide
"A minute" Copy siege lion log 】 【 run MindSpore LeNet model
2020-10-19
MFC 打开与保存点云PCD文件
Various commands such as creating a new user in postgresql
Android foundation [Super detailed android storage method analysis (SharedPreferences, SQLite database storage)]
latex-写论文时一些常用设置
图像形变(插值方法)
Pytorch语义分割理解
Halcon缺陷检测
target has libraries with conflicting names: libcrypto.a and libssl.a.
Copy Siege Lion 5-minute online experience MindIR format model generation
WARNING: sql version 9.2, server version 11.0. Some psql features might not work.
图像线性融合
计算某像素点法线