Creating a makefile

Once you have created your C/C++ source files, you must create a makefile before you can build your remote C/C++ project. To create a makefile:

  1. In the Project Explorer view, right-click a project, and select New > File.

  2. New > File in Project Explorer View

  3. In the File name field, type makefile.

  4. New File Wizard

  5. Ensure that the correct project (parent folder) is selected.
  6. (Optional) Click Advanced if you want to link to an existing makefile in the file system.

  7. Link to Existing makefile

  8. (Optional) Click Variables if you want to define path variables.
  9. Click Finish.
  10. The editor automatically opens. Type the make instructions in the editor and save the file when finished.

  11. Editor view with a sample code

Your new makefile, along with your source files are displayed in the Project Explorer view. You can now build your newly created project.




Related tasks
Creating a remote connection
Creating a Local/Remote C/C++ project
Creating a C or C++ source file
Editing a C or C++ File
Building a C/C++ project