You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Creating a Makefile Project | Microsoft Docs"
3
3
ms.custom: ""
4
-
ms.date: "11/04/2016"
5
-
ms.reviewer: ""
6
-
ms.suite: ""
4
+
ms.date: "02/28/2018"
7
5
ms.technology: ["cpp-ide"]
8
-
ms.tgt_pltfrm: ""
9
6
ms.topic: "article"
10
7
f1_keywords: ["vc.appwiz.makefile.project"]
11
8
dev_langs: ["C++"]
@@ -18,25 +15,29 @@ manager: "ghogen"
18
15
ms.workload: ["cplusplus"]
19
16
---
20
17
# Creating a Makefile Project
21
-
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 [!INCLUDE[vsUltShort](../ide/includes/vsultshort_md.md)], 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.
22
-
23
-
The project displays no files in Solution Explorer. The project specifies the build settings, which are reflected in the project's property page.
24
-
25
-
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.
26
-
27
-
### To create a Makefile project
28
-
29
-
1. Follow the instructions in the help topic [Creating a Project with a Visual C++ Application Wizard](../ide/creating-desktop-projects-by-using-application-wizards.md).
30
-
31
-
2. In the **New Project** dialog box, select **Makefile Project** in the Templates pane to open the wizard.
32
-
33
-
3. In the [Application Settings](../ide/application-settings-makefile-project-wizard.md) page, provide the command, output, clean, and rebuild information.
34
-
35
-
4. Click **Finish** to close the wizard and open the newly created project in **Solution Explorer**.
36
-
37
-
You can view and edit the project's properties in its property page. See [Setting Visual C++ Project Properties](../ide/working-with-project-properties.md) for information about displaying the property page.
[Special Characters in a Makefile](../build/special-characters-in-a-makefile.md)
42
-
[Contents of a Makefile](../build/contents-of-a-makefile.md)
18
+
19
+
If you have an existing source code project that you build from the command line by using a makefile, the Visual Studio development environment has several ways of turning it into a project that can take full advantage of Visual Studio IDE features. This article describes how to create a Makefile Project in Visual Studio that uses your existing makefile to build your code in the IDE. Alternatively, you can use the **Create New Project from Existing Code Files** wizard to create a native MSBuild project from your source code. For more information, see [How to: Create a C++ Project from Existing Code](how-to-create-a-cpp-project-from-existing-code.md). Starting in Visual Studio 2017, you can also use the **Open Folder** feature, which can use several existing build systems as if they were native Visual Studio projects. For more information, see [Open Folder projects in Visual C++](non-msbuild-projects.md).
20
+
21
+
To use Visual Studio to open and build your source code by using your existing makefile, you first create a new project by selecting the MakeFile project template. A wizard helps you specify the commands and environment used by your makefile. You can then use this project to build your code in the Visual Studio development environment.
22
+
23
+
By default, the makefile project displays no files in Solution Explorer. The makefile project specifies the build settings, which are reflected in the project's property page.
24
+
25
+
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. Your makefile still controls the build process and specifies the build targets.
26
+
27
+
## To create a Makefile project
28
+
29
+
1. Follow the instructions in the help topic [Creating a Project with a Visual C++ Application Wizard](../ide/creating-desktop-projects-by-using-application-wizards.md).
30
+
31
+
1. In the **New Project** dialog box, expand **Visual C++** > **General** and then select **Makefile Project** in the Templates pane to open the project wizard.
32
+
33
+
1. In the [Application Settings](../ide/application-settings-makefile-project-wizard.md) page, provide the command, output, clean, and rebuild information for debug and retail builds.
34
+
35
+
1. Click **Finish** to close the wizard and open the newly created project in **Solution Explorer**.
36
+
37
+
You can view and edit the project's properties in its property page. See [Setting Visual C++ Project Properties](../ide/working-with-project-properties.md) for information about displaying the property page.
0 commit comments