From 0 to 1: Easily Master Makefile

From 0 to 1: Easily Master Makefile

Click on the above “IT Circle“, select “Top Public Account” Critical moments, delivered first! This article is published by reader Liang Xu from the public account, please do not reprint without authorization! 1. What is Makefile A typical enterprise-level project usually has many source files, sometimes categorized by function, type, or module in different directories, … Read more

Writing Makefiles for Python Projects

Writing Makefiles for Python Projects

As a fan of Makefiles, I use them in almost every hobby project. I also advocate for their use in work projects. For open source projects, Makefiles inform code contributors on how to build, test, and deploy the project. Moreover, if you use Makefiles correctly, they can greatly simplify your CI/CD process scripts, as you … Read more

Key Points for Writing Makefiles in Windows Environment

Key Points for Writing Makefiles in Windows Environment

(Star this for CPP developers to enhance C/C++ skills) Author: Zhu Jincan (This article is submitted by the author) 1. Basic Patterns of Makefiles in Windows Environment From my observation, there is a basic pattern for makefiles in the Windows environment, which is as follows: 1. Set compiler flags 2. If the compiler flags are … Read more

An Overview of Makefile, Kconfig, and .config in the Kernel

An Overview of Makefile, Kconfig, and .config in the Kernel

The Linux kernel source code is extensive, and it can be confusing to understand the relationship between Makefile, Kconfig, and .config. Not knowing how the kernel compilation system works can lead to issues when trying to modify the kernel, integrate your own drivers, or configure the kernel. These problems are all related to Makefile, Kconfig, … Read more

Taskfile vs Makefile: Which Is the Superior Build Tool?

Taskfile vs Makefile: Which Is the Superior Build Tool?

Follow us on WeChat: 「Wonderful Linux World」 Set as a 「Star」 to explore Linux every day! 1. What is Taskfile? Taskfile describes various execution tasks using YAML, and its core is written in Go; compared to Makefile, which uses tab-separated and bash-combined syntax, Taskfile appears more modern and user-friendly (though it may turn you into … Read more

Understanding Makefile, Kconfig, and .config Files

Understanding Makefile, Kconfig, and .config Files

1 We want to add a program (such as a driver) to the kernel and ensure that this driver can be compiled into the kernel, which is fundamentally divided into two main parts. First, we need to tell the kernel, “Please include me in the next compilation,” which requires us to configure the kernel appropriately. … Read more

A Universal Makefile Template for Various Scenarios

A Universal Makefile Template for Various Scenarios

1. Introduction For development on Windows, many IDEs come with integrated compilers, such as Visual Studio, providing a “one-click compile” feature. After coding, you only need one operation to compile, link, and generate the target file. Linux development is different from Windows; typically, the gcc/g++ compiler is used on Linux. If you are developing Linux … Read more

Linux C Basics: Have You Met the Makefile Master?

Linux C Basics: Have You Met the Makefile Master?

Introduction to Make: Project Manager, as the name suggests, refers to managing multiple files The Make project manager is essentially an “automated compilation manager“. Here, “automated” means it can automatically detect updated files based on file timestamps to reduce compilation workload. It performs a large amount of compilation work by reading the contents of the … Read more

Common Makefile Syntax and Functions in Chip Development

Common Makefile Syntax and Functions in Chip Development

1. Why do Makefiles exist? In software or chip development, Makefile is generally used. It is a text file that contains instructions on how to compile and link programs. Makefile is used by the make tool, which is an automation build tool that can automatically execute the compilation and linking process based on the instructions … Read more

Understanding Makefile: A Tool Language for GNU GCC Compilation

Understanding Makefile: A Tool Language for GNU GCC Compilation

Click aboveLinux Community to follow us Abstract: This article mainly introduces makefile, a commonly used tool language for GNU GCC compilation. LiteOS also uses this file to build project files and generate executable files. In the LiteOS source code, makefile is used for batch processing compilation and linking to generate files. When designing a project … Read more