Quick Start Guide to Makefile

Quick Start Guide to Makefile

1. Quick Start Guide to Makefile The goal of this article is to help you write simple Makefiles and understand common Makefiles. Make is an old build tool, which is incredible in today’s rapidly evolving technology landscape. Make plays a significant role in large software projects. I first encountered it while learning the Linux kernel, … Read more

In-Depth Analysis of CMake Build Process: From Fundamentals to Complex Projects

In-Depth Analysis of CMake Build Process: From Fundamentals to Complex Projects

1. Analysis of the Project Structure After CMake Build 1.1 Directory Structure After CMake Build After CMake build is complete, a directory named build will be generated in the root directory of the project. This directory is where all intermediate files and final target files generated during the CMake build process are stored. Below, we … Read more

A Concise Guide to Makefile in Chip Design

A Concise Guide to Makefile in Chip Design

What can Makefile do? Makefile can execute commands based on specified dependency rules and whether files have been modified. It is commonly used to compile software source code, only recompiling modified files, which significantly speeds up the compilation process. The Basic Format of Makefile Target: Dependencies Command The target is the result to be generated, … Read more

Makefile Static Pattern Rules

Makefile Static Pattern Rules

Static Pattern Static patterns make it easier to define multi-target rules, allowing our rules to be more flexible and adaptable. Let’s first take a look at the syntax: <targets …>: <target-pattern>: <prereq-patterns …>  <commands>… If our <target-pattern> is defined as “%.o”, it means that all targets in our <target> set end with “.o”. If our <prereq-patterns> … Read more

Introduction to Yocto Build System

Introduction to Yocto Build System

Some images are reproduced from the internet. If there is any infringement, please contact us for removal; Introduction to Yocto SystemWhat is YoctoIntroduction to Yocto VersionsPoky Directory StructureYocto Build ProcessBuild Process OverviewOpenEmbedded Build ProcessUser Configuration Generation ProcessBitBake ProcessBitBake Obtains Source CodeBitBake Patch ProcessBitBa…

Getting Started with CMake for Large Projects

Getting Started with CMake for Large Projects

Most open-source storage systems are built on the Linux operating system. This article introduces storage technology while also covering some Linux content, focusing on practicality. It will be helpful for both application development and kernel understanding. When our project consists of thousands of files, manually writing a Makefile will be a nightmare. Fortunately, CMake helps … Read more

Creating Libraries with CMake: Official Tutorial Step 2

Creating Libraries with CMake: Official Tutorial Step 2

Previous Highlights: CMake Hello, World CMake Variables CMake Official Tutorial (Basic Project Setup) Following the previous article, we will start creating a library. This article corresponds to Step 2 of the official tutorial, and after reading it, you will gain the following knowledge: 1. Creating Library Programs 2. Controlling Compilation via Option Definitions 3. Defining … Read more

Getting Started with CMake: From Hello World to Complex Projects

Getting Started with CMake: From Hello World to Complex Projects

Hello, today we are going to delve into a topic that many people pay attention to but often do not take seriously—Getting Started with CMake: From Hello World to Complex Multi-Module Project Builds. Today, we will start from scratch and explore how to use CMake to build projects, making it a powerful assistant for managing … Read more

CMake From Beginner to Expert: A Modern C++ Build System Guide

CMake From Beginner to Expert: A Modern C++ Build System Guide

Click the blue text to follow us CMake From Beginner to Expert: A Modern C++ Build System Guide Hello everyone, I am an old coder! Today we will discuss the complex issue of building C++ projects. Are you still troubled by tedious compilation and linking? Still manually managing dependencies? Come on, let me introduce you … Read more

CMake: A Cross-Platform Build System

CMake: A Cross-Platform Build System

CMake: A Cross-Platform Build System In modern software development, build systems are an indispensable part. As project scales and complexities increase, developers face the challenge of managing the build process efficiently and flexibly. CMake, as a cross-platform build system, has gradually become the tool of choice for many developers due to its powerful features and … Read more