makefile and its uses

后端 未结 2 773
南方客
南方客 2021-01-06 18:34

What is a makefile and how do I use it?

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-06 18:59

    The main purpose of a Makefile is to store every you need to build your project in one place. It contains the instructions for compiling your code, linking your compiled code, packaging the executables, extracting third party tools, and many other useful things. Pretty much any command you entire at the command line can be used in a makefile.

    The advantage to using a makefile, when done correctly at least, is that anyone can easily build your entire project. It's as easy as typing make

    An example of a Makefile for a windows project http://www.opussoftware.com/tutorial/TutMakefile.htm

提交回复
热议问题