GNU Make Learning 1

xiaoxiao2021-03-06  44

Overview of make

Make follows the standard:

GNU Make Conforms to Section 6.2 of IEee Standard 1003.2-1992 (POSIX.2).

This sentence is very important to express the utility of Make: It is not limited to programming languages, nor is it limited by programming, as long as some files need to be automatically updated, other files can be used as Make.

.

Our Examples Show C Programs, Since They Are Most Common

You can use it to describe Any Task Where Some Files Must Be Updated Automatically from Others WHENEVER THEERS CHANGE.

Preparing and Running Make

To use Make, you must write a Makefile file to describe the relationship between your files in your program, and specify the updated command. Usually the executable program is generated by the object file in a program, and the object file is generated by the source file file (IN TURN). Once you have a right makefile file, then after you change the source, you only need to type "Make" on the command line to complete the compile. Make decides to update those files by comparing the Makefile database and the final change time of the specified file, and record the change in the Makefile database. Of course, you can also specify how to update files and updates by providing MAKEs.

1.1 How To Read this Manual 1.2 Problems and Bugs

转载请注明原文地址:https://www.9cbs.com/read-79156.html

New Post(0)