Preparing and Running Make | Tutorial Use make Command and makefile P1

preview_player
Показать описание
Preparing and Running Make | Tutorial Use make Command and makefile P1
1. Preparing and Running Make
To prepare to use make, you must write a file called the makefile that describes the relationships among files in your program and provides commands for updating each file.
By default, when make looks for the makefile, it tries the following names, in order: "GNUmakefile", "makefile" and "Makefile".
To execute makefile rule, simple shell command: "make"
You can provide command line arguments to "make" to control which files should be compiled, or how.
By default, make starts with the first target, make reads the makefile in the current directory and begins by processing the first rule.
before make can fully process this rule, it must process the rules for the files that it depends on, which in this case are the object files.
If you want to use a nonstandard name for your makefile, you can specify the makefile name with the ‘-f’ or ‘--file’ option.
The arguments ‘-f name’ or ‘--file=name’ tell make to read the file name as the makefile.

Good lucky!
Thank you so much.
Рекомендации по теме