0. PrefaceStart by learning C language and start to contact makefile slowly. Consulted a lot of makefile information but the total feeling did not really master makefile, assume that oneself write a makefile always think very laborious. So deliberately using the blog to summarize the relevant knowledge of makefile. The detailed use of the makefile is illustrated by the sample example.
The blog is trying to be easy. The makefile is illustrated by the sample example. Rather than the entire paragraph or the entire piece of plagiarism on the web.
1. Index1. Only a single C file 2. Contains multiple C files 3. You need to include the header file path 4. Add a macro definition 5. Add a system Shared Library 6. Add your own definition Shared Library 7. A practical case--freemodbus linuxtcp
2. Code WarehouseThe Code warehouse--makefile-example code warehouse is located in BitBucket, where you can clone code with TORTOISEHG (GUI tools) or download a zip package directly from a Web page.
Linux Learning Notes--Example Makefile Index blog post