次の方法で共有


Creating a Makefile Project

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Creating a Makefile Project.

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 Ultimate, Visual Studio Professional, or Visual Studio Express for Windows Desktop, first create an empty project by selecting the MakeFile project template. You can then use this project to build your project from the Visual Studio development environment.

The project displays no files in Solution Explorer. The project specifies the build settings, which are reflected in the project's property page.

The output file that you specify in the project has no effect on the name that the build script generates; it declares only an intention.

To create a Makefile project

  1. Follow the instructions in the help topic Creating a Project with a Visual C++ Application Wizard.

  2. In the New Project dialog box, select Makefile Project in the Templates pane to open the wizard.

  3. In the Application Settings page, provide the command, output, clean, and rebuild information.

  4. Click Finish to close the wizard and open the newly created project in Solution Explorer.

You can view and edit the project's properties in its property page. See Setting Visual C++ Project Properties for information about displaying the property page.

See Also

Makefile Project Wizard
Special Characters in a Makefile
Contents of a Makefile