Makefile: Difference between revisions

No change in size ,  13 years ago
m
→‎What is a Makefile?: Spelling corrections
[unchecked revision][unchecked revision]
(Added "What Is A" and a basic example to aid complete beginners to makefiles)
m (→‎What is a Makefile?: Spelling corrections)
Line 4:
A Makefile is a file which controls the 'make' command. The 'make' command is available with most C toolchains (such as GCC) and is used to aid in build process of a project. Once the makefile has been written for a project, the 'make' command can easily and efficiently build your project and create the required output file(s).
 
Make can read dependancy information from your makefile and ensure that files are built in the correct order, and can even detect when source files or other dependanciesdependencies have been updated, and can perform only the build steps that are required.
 
Your makefile can also contain other commands (or "targets") to remove built files (usually referred to as 'clean') or to create an archive of your project, ready for release.
33

edits