Makefile
- This page is a candidate for deletion
- Reason given: Not really Gentoo related. Incomplete
- If you disagree with its deletion, please explain why on its discussion page.
- If you intend to fix it, please remove this notice, but do not remove this notice from articles that you have created yourself.
- Make sure no other pages link here and check the page's history before deleting.
Contents |
What is a makefile?
A makefile is a specification file used by build tools to create an executable version of an application. The makefile details the files, dependencies, and rules to compile and link the target application.
A makefile automates the application building process
The use of a makefile simplifies the development process by automatically performing tasks necessary to rebuild an application when the application source code has been modified.
Components of a makefile
A makefile contains the following elements:
- Explicit Rules - These specify how to remake one or more targets and lists prerequisites of the target
- Implicit Rules - These specify how to make a class of files based on their names.
- Variable Definitions - These specify a value for a variable that can be used within the makefile.
- Directives - A directive is a command to do perform a specific function
- Comments - Comments improve the readability of the makefile are ignored by the make interpreter
Declaring a variable in a makefile
Editing a makefile
Syntax of a makefile
Useful makefile targets
Last modified: Thu, 12 Jun 2008 20:21:00 +1000 Hits: 1,409
Created by NickStallman.net, Luxury Homes Australia
Real estate agents should be using interactive floor plans and list their apartments, townhouses and units.
