Skip to content

How to create a Makefile

Cristian Gonzalez edited this page Oct 22, 2020 · 7 revisions

How to create a Makefile

In this page you will find information to learn how to create a Makefile if you want to assess a C/C++ project.

The Make program

The Make program is a utility that allows to build executable programs and libraries, in an automatic way, from one o more source code files. This building is made from source files and reading a program called Makefile that specifies the way to make the building of programs and libraries. Even though it can be used for several purposes, it is focused on code compilation.

In order to use the Make program, must be written the file Makefile in plain text and this must describe the relationship between the program to generate and the source files. Usually in a program, the executable file es updated from the object files and these are obtained from the source code files.

For more details please click on the next link and download the complete tutorial Make multiplefiles tutorial.

Clone this wiki locally