Import and build existing source code into a Makefile project
A Makefile template type is useful if you want to import and modify existing makefile-based projects. Makefile projects let you tell the IDE which toolchain you're using, which will help the IDE with various tasks such as source navigation into system header files.
To import existing code into a Makefile project:
-
From the File menu, select .
-
In the New Project dialog, click Empty. Click Next.
-
In the resulting dialog, give your project a name.
-
Select the language (C or C++) that you want to use, and select the Makefile option.
-
Click Finish. A ready-to-use project structure is created for you.
-
Click the project from the Project Explorer view.
-
Click
-
Expand General, choose File System, and then click Next.
-
Specify the folder that contains the source code you want to import.
-
Click Finish.