Share via


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, 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.

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

Concepts

Special Characters in a Makefile

Contents of a Makefile

Reference

Makefile Project Wizard