makefile and its uses

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

What is a makefile and how do I use it?

相关标签:
2条回答
  • 2021-01-06 18:53

    A make file describes the compilation process. It describes which flags, compiler tools, linkers, etc. to use with which source code files and objects

    More info http://www.sis.pitt.edu/~mbsclass/tutorial/advanced/makefile/

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题