Taskfile vs Makefile: Which Build Tool Reigns Supreme?

Taskfile vs Makefile: Which Build Tool Reigns Supreme?

1. What is Taskfile Taskfile describes various execution tasks using YAML and is primarily written in Go. Compared to Makefile which uses tab-separated and bash syntax, Taskfile appears more modern and user-friendly (although it may turn you into a YAML engineer). Taskfile has built-in advanced features such as dynamic variables and recognition of operating system … Read more

Understanding the Relationship Between Makefile, Kconfig, and .config in Linux Kernel

Understanding the Relationship Between Makefile, Kconfig, and .config in Linux Kernel

Source: Baiwen Technology ❞The Linux kernel source code files are numerous, and it’s hard to understand the relationship between Makefile, Kconfig, and .config. Without understanding the kernel compilation system, it can be difficult to compile and modify the kernel, integrate your own drivers, or configure the kernel. These issues are all related to Makefile, Kconfig, … Read more

Introduction to Make and Makefile in Compilation and Linking

Introduction to Make and Makefile in Compilation and Linking

Introduction Many engineers without formal training are actually quite unfamiliar with the compilation and linking of projects (including the author himself). However, if we want to create our own projects or implement a project from 0 to 1, or if we want to optimize programs, modify the memory layout, or implement memory protection under the … Read more

Learning and Using Makefile: A Comprehensive Guide

Learning and Using Makefile: A Comprehensive Guide

1. Introduction to Makefile Makefile is used in conjunction with the make tool to organize and manage the compilation and linking of project source code. The make tool identifies modified files, finds the affected related files based on dependencies, and finally compiles these files according to the rules. The Makefile records the dependencies and compilation … Read more

How Makefile Compiles Code Files

How Makefile Compiles Code Files

This article summarizes: This article mainly introduces the process of using Makefile to compile code into executable binary files for microcontrollers and discusses commonly used Makefile syntax. It narrates the transformation from a straightforward Makefile to a more universal Makefile. Introduction to Makefile The most common function of a Makefile is to inform the make … Read more

Introduction to Makefile

Introduction to Makefile

Click the blue text above to follow me~ 01 Introduction Today I took some time to study Makefile and organized the information I found for quick reference during future reviews, helping beginners like me save time. 02 Preparation First, let’s assume we have the following code files: main.cpp functions.h function1.cpp function2.cpp — functions.h —// functions.hvoid … Read more

Mastering Makefile: A Comprehensive Guide

Mastering Makefile: A Comprehensive Guide

1What is Makefile In the previous study of compiling C programs, we learned that compiling a program is relatively simple. However, if we need to compile multiple files or files in different folders, we need to generate different library files and determine the compilation order of these files, which often requires many complex command lines … Read more

Setting Dynamic Library Path Parameters in Makefile

Setting Dynamic Library Path Parameters in Makefile

Table of Contents 1. Makefile Dynamic Library Related 1.1 Libs Variable 1.2 LDFLAGS Variable 1.3 Differences Between the Two 2. Configuration Methods 2.1 Specifying Library Path During Compilation 2.2 Specifying Library Path During Runtime 3. Testing 1. Makefile Dynamic Library Related 1.1 Libs Variable In a Makefile, Libs is typically a variable used to store … Read more