Creating a makefile

If you have created a Standard Make C/C++ Project, you need to provide a makefile.

When you build a project, output from make is displayed in the C-Build view. Makefile actions are displayed in the Make Targets view.

To create a makefile:

  1. In the C++ Projects view, right-click a project, and select New > File.
  2. In the File name box, type makefile.
  3. In the list of projects, verify that the correct project is selected.
  4. Click Finish.
  5. The C/C++ editor opens.

  6. Type makefile instructions in the C/C++ editor.
  7. Click File > Save.

Related concepts
Projects
Working with C/C++ project files

Related tasks
Displaying C/C++ file components in the C/C++ Projects view
Hiding files by type in the C/C++ Projects view

Related reference
Views

IBM Copyright Statement