Build source code C/C++ Linux bằng GNU make và Makefile

Trong bài này, tôi giới thiệu đến các bạn cách build source code C/C++ bằng Makefile. Nội dung gồm các phần dưới đây

Môi trường phát triển

Ubuntu v22.4

Workflow compile source code C/C++

Compile source code C/C++

Workflow compile C/C++
Workflow compile C/C++

Output program C/C++

Output chương trình C/C++
Output chương trình C/C++

Tổ chức folder source code C/C++

Cấu trúc folder chương trình C++
Cấu trúc folder chương trình C++

mock: folder parent của toàn bộ project
src: folder chứa source code
bins: folder chứa file binary output
libs: folder chứa library
objs: folder chưa file object
shared header: folder chứa header file của library

Make & Makefile

Be the first to comment

Leave a Reply