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

How to Write an Impressive Makefile from Version 1 to Version 5

How to Write an Impressive Makefile from Version 1 to Version 5

1. The Three Essential Elements of Makefile 2. Working Principle 3. Start Writing First, let’s write our program, taking C language as an example. 1) func.h Define two functions: addition and subtraction: 2) Implementation of the Addition Function 3) Implementation of the Subtraction Function 4) main function 3.1 Version 1 The most basic version: just … Read more

Understanding Makefile from a Different Perspective

Understanding Makefile from a Different Perspective

Source: WeChat Official Account [Programming Gems] Author: Mr. Watcher ID: shouwangxiansheng As a C/C++ developer on Linux, it’s essential to have some exposure to Makefile. Typically, constructing large C/C++ projects relies heavily on Makefile. You might be using cmake or other similar tools, but they are fundamentally similar. As a light user, at the request … Read more

An Overview of Makefile, Kconfig, and .config in Linux Kernel Source

An Overview of Makefile, Kconfig, and .config in Linux Kernel Source

Click on the above“Embedded and Linux Matters”, select“Pin/Star the Official Account” Welfare and valuable content delivered first-hand The Linux kernel source code files are numerous, and it can be confusing to understand the relationship between Makefile, Kconfig, and .config. Not knowing the kernel compilation system can lead to issues when compiling or modifying the kernel, … Read more

Sharing Common Makefile Templates

Sharing Common Makefile Templates

Original: https://blog.csdn.net/qq_20553613/article/details/90649734 Hello everyone, I am ZhengN. This time I bring you three Makefile templates: compiling executable programs, compiling static libraries, and compiling dynamic libraries. Related past articles: Overview of Common Makefile Basics! 1. Introduction For development on Windows, many IDEs integrate compilers, such as Visual Studio, providing a “one-click compile” feature, where after coding, … Read more

C Compilation: Basics of Makefile

C Compilation: Basics of Makefile

(Click the public account above to quickly follow) Source: Vamei Link: http://www.cnblogs.com/vamei/archive/2013/04/29/3051062.html When compiling a large project, there are often many target files, library files, header files, and the final executable file. There are dependencies between different files. For example, when we compile using the following commands: $gcc -c -o test.o test.c $gcc -o helloworld … Read more

Makefile Supplement: A Comprehensive Guide

Makefile Supplement: A Comprehensive Guide

I looked at my article inventory, and it seems I don’t have an article about Makefile, so this one can fill that gap. Makefile Predefined Variables Predefined variables are system-provided variables. Predefined Variable Function AR Name of the library file maintenance program, default is ar AS Name of the assembler program, default is as CC … Read more

Getting Started with Makefile: A Comprehensive Guide

Getting Started with Makefile: A Comprehensive Guide

<span>Makefile</span> is a tool used for automating the build and management of projects, widely used in C/C++ projects but also applicable to other languages and tasks. It describes how to generate target files (such as executables, library files, etc.) from source code by defining rules. 1. Getting Started: Basic Concepts and Simple Examples 1.1 What … Read more

Understanding Phony Targets in Makefile

Understanding Phony Targets in Makefile

<span>Makefile</span> phony targets are a very important concept. They are used to define targets that do not directly correspond to files, but are used to perform specific operations (such as cleaning files, running tests, etc.). 1. Introduction: What is a Phony Target? 1.1 Definition of Phony Targets A phony target is a target that does … Read more

Getting Started with MicroPython on F1C200s

Getting Started with MicroPython on F1C200s

Attempt 0001 sudo apt update sudo apt install gcc-arm-none-eabi arm-none-eabi-gcc –version sudo apt install make make –version sudo apt install python3 python3-pip python3 –version git clone https://github.com/micropython/micropython.git cd micropython/ports/minimal/ Based on your information, you already have an embedded Linux environment based on F1C200s and can access it via serial. This is a great starting point! … Read more