Create a basic Makefile

Create a basic Makefile Review the past and learn the new Optimization preparation Create Makefile Convert compile.sh content Improve Makefile content Next article: Exercise 3 A brief introduction to Makefile, Previous article: Exercise 1 Understand the basic process of compilation, Table of Contents | Home Page Review the past and learn the new Exercise 1 […]

Conditional part of Makefile

Conditional part of Makefile Review the past and learn the new Condition example Grammar of conditional sentences Test flag conditions Next article: Exercise 8: Using functions in Makefile, Previous article: Exercise 6: Using variables in Makefile, Table of Contents | Home Page Review the past and learn the new Exercise 1 Understand the basic process […]

Makefile update archive

Makefile update archive Review the past and learn the new Remake Target profile members Implicit rules for archiving member targets Update archive symbol directory Dangers when using archives Suffix rules for archive files Previous article: Exercise 10 Implicit Rules of Makefile, Table of Contents | Home Page Review the past and learn the new Exercise […]

Makefile–C/C++ compilation method under Linux

Directory 1. C 1.1 Compiling C 1.2 Create static library 1.3 Create dynamic library 2.C++ 3. Makefile 3.1 Variables 3.2 Commonly used functions 3.3 makefile compilation file 1. C Files related to common C language projects under Linux are shown in the figure below. 1.1 Compiling C GCC is usually used to compile C files. […]

Makefile rule search

Article directory Correspondence Write Makefile with me 2.1**makefile** **Rules** **2.2** **An example** **2.5** **Let** **make** **Automatic derivation** **2.6 makefile** **another style** **2.7** **Rules for clearing directories** **2.10** **Contains other** **Makefile** **3.4** **File Search** **3.5** **Fake target** **3.6** **Multiple Targets** **3.8** **Automatically generate dependencies** **4.1** **Display command** **4.2** **Command Execution** **4.3** **Command error** **4.4** **Nested execution** […]

Make encountered in Ubuntu 20: gcc: Command not found Makefile:85: recipe for target obj/gemm.o failed make: **

Table of Contents Make encountered in Ubuntu 20: gcc: Command not found Makefile:85: recipe for target ‘obj/gemm.o’ failed make: ** problem causes Solution Step 1: Update the package list Step 2: Install the gcc compiler Step 3: Verify installation Step 4: Rerun the make command Summarize Sample code Introduction to GCC Function Instructions Summarize Ubuntu […]

Linux tool compiler gcc/g++ use | dynamic and static libraries | use of make/makefile

Table of Contents Program compilation 1. Preprocessing (header file expansion, conditional compilation, macro replacement, comment removal, etc.) 2. Compilation (C language assembly language) 3. Assembly (assembly -> relocatable target binary file, not executable, bin.obj) 4. Link (merge our own .obj files and library files to form an executable program) static library dynamic library Why can […]

“Linux project automated build tool” make/Makefile

Foreword As you can see from the title, make/Makefile is an automated project construction tool under Linux; In the previous article “Linux – gcc / g++” C program translation process, the translation process of C/C++ program was explained; Make/Makefile can be seen as Makefile using gcc/g++ to enable better and more efficient project construction in […]

Makefile Lesson 12: Makefile Dynamic Library

Directory Makefile dynamic library Preface 1.Intro 2. Write cpp and hpp 3. Compile dynamic library 4. Link dynamic library Summarize Makefile dynamic library Foreword Learn the Makefile tutorial video recommended by Teacher Du, link. Record personal study notes for your own reference only. I have previously reprinted Mr. Du’s article on a large project of […]

Embedded Linux application development-use of Makefile

Embedded Linux application development-use of Makefile Chapter 3 Use of Makefile 3.1 Supporting video content outline 3.1.1 Makefile rules and examples 3.1.2 Use of general Makefile 3.1.3 Analysis of general Makefile 3.2 Makefile rules 3.3 Assignment methods in Makefile 3.4.1 String replacement and analysis functions 3.4.2 File name function 3.4.3 Other functions Chapter 3 Use […]