Makefile VS (VisualStudio Project File)

來源:互聯網
上載者:User

1. both of them are used to tell how to build a project. Especially, about makefile from wiki:

make is a utility that automatically builds executable programs and libraries from source code by reading files called makefiles which specify how to derive the target program. 

2. Makefile is used by make utility to build a project/program, while vs project is used by VS. for make utility, there are many developed by different organizations and corps. MS has its own nmake.

3. For VS, it has Makefile project type, by creating which, the project's building will be organized by a make file which will be used by nmake; while for normal projects, the project file is the configuration file to tell how to build a project. MS MSDN note about project file is: "A Visual C++ project file is an XML file with the extension .vcproj, which contains information needed to build a Visual C++ project. .vcproj files are not compatible with NMAKE." About how to create a nmake project, please see this page on MSDN.

4. If you have a project that you build from the command line with a makefile, then the Visual Studio development environment will not recognize your project. To open and build your project using Visual Studio, first create an empty project containing the appropriate build settings using the Makefile Project Wizard. You can then use this project to build your project from the Visual Studio development environment. So, it means: if you just want to make use of VS to build your makefile based project, above work is enough; but if you want to totally transfer to VS IDE as building system, you need to manually OR by some tools to convert your makefile to be VS project file. On stackoverflow
Convert nmake makefile into Visual Studio 2005 project
:

"you either need to make a new project file with the make file (and all references to the code are in the make file, it just compiles in the VS IDE), or you need to re-create the functionality of the make file in a new project that functions as a "real" VS project with files and such."

5. CMake, the cross-platform, open-source build system. It's a way to organize files and has the ability to generate platform dependent project files including vcxproj for Windows VS and xcodeproj for Mac Xcode.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.