Reading Notes 4 open your hands and feet to write makefile files
Source: Internet
Author: User
Reading Notes 4 open your hands and feet to write the makefile file-general Linux technology-Linux programming and kernel information. The following is a detailed description. I spent about a week studying and writing makefile files, learning and writing from the beginning. Although most of them ended with failures, at the end, but after a successful start, most of them end with success. I think you only need to remember the following to learn makefile files.
First, understand the relationship between each file. That is, the primary-secondary relationship between the main program and a function, that is, the so-called dependency in the book. To put it bluntly, you must understand the causes and consequences between the programs.
Second, let the obscure rules go to hell.
Third, the command line in the Makefile file must start with the Tab key.
Fourth, try to add the shell command to the Makefile file. Remember that the shell command is usually placed behind the Makefile.
Fifth, from ease to difficulty, in fact, writing the makefile file does not have to write several program source code programs to use the Makefile file. In fact, only one source code program can also be compiled using the Makefile file.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.