

The output file that you specify in the project has no effect on the name that the build script generates. The makefile project specifies the build settings, which are reflected in the project's property page.
#Where to put makefile for c program code#
You can then use this project to build your code in Visual Studio.īy default, the makefile project displays no files in Solution Explorer. In Visual Studio 2017 and later, the Makefile project template is available when the C++ Desktop Development workload is installed.įollow the wizard to specify the commands and environment used by your makefile. To create a makefile project with the makefile project template

For more information, see Open Folder projects for C++.

Create a makefile project in Visual Studio that uses your existing makefile to configure a.If you have an existing makefile project, you have these choices if you want to edit, build, and debug in the Visual Studio IDE: A program (often called a make program) reads the makefile and invokes a compiler, linker, and possibly other programs to make an executable file.
#Where to put makefile for c program how to#
A makefile is a text file that contains instructions for how to compile and link (or build) a set of source code files.
