What Is Makefile in Linux?
Contents in Linux, a Makefile Is a Text File That Describes Which Files Are Required to Build a Particular Program as Well as How to Compile and Link the Files...
In Linux, a makefile is a text file that describes which files are required to build a particular program as well as how to compile and link the files to build the program.
What is a makefile used for?
You need a file called a makefile to tell make what to do. Most often, the makefile tells make how to compile and link a program. In this chapter, we will discuss a simple makefile that describes how to compile and link a text editor which consists of eight C source files and three header files.
Must Read
What is makefile and how do you use it?
A makefile is a special file, containing shell commands, that you create and name makefile (or Makefile depending upon the system). While in the directory containing this makefile, you will type make and the commands in the makefile will be executed.