Makefile vs (Visual Studio project file)

Source: Internet
Author: User

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

MakeIs a utility that automatically builds executable programs and libraries from source code by reading files calledMakefilesWhich specify how to derive the target program.

2. makefile is usedMakeUtility to build a project/program, while vs project is used by vs.MakeUtility, there are under 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. the 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.

Related Article

Contact Us

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.

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.