Makefile VS (VisualStudio Project File)

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.

转载于:https://www.cnblogs.com/taoxu0903/archive/2011/02/01/1948613.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值