Why do we need a makefile?

Usually a project is split into many files. Although it is beneficial in many ways but keeping track of which OBJECT was built, when and whether or not a particular OBJECT depends upon something that was just changed can be a real hassle. It is for this reason MAKE was created. MAKE reads a file called MAKEFILE which list the projects executable's and/or object's along with the files upon which they depend. It also contains list of commands to execute in order to dependent files from their dependencies.

No comments: