Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

3.3.2.1. Modifying a Makefile with User Source Management

Editing a makefile manually is an advanced technique. Intel FPGA recommends that you avoid manual editing. The SBT provides extensive capabilities for manipulating makefiles while ensuring makefile correctness.

In a makefile with user-managed sources, you can refer to source files with an absolute path. You might use an absolute path to refer to common source files in a fixed location. In this situation, you can move the project to a different directory without disturbing the common source file references.

Projects with user-managed sources do not support the following features:

  • Linked resources
  • The Add to Nios® II Build command
  • The Remove from Nios® II Build command
Table 4.  GUI Actions that Modify an Application or a Makefile with User Source Management
Modification Where Modified
Specifying the application or user library name Nios® II Application Properties or Nios® II Library Properties dialog box
Specifying a path to an associated BSP Project References dialog box
Specifying a path to an associated user library Project References dialog box
Enabling, disabling or modifying compiler options Nios® II Application Properties or Nios® II Library Properties dialog box
Note: With user source management, the source files shown in the Eclipse Project Explorer view do not necessarily reflect the sources built by the makefile. To update the Project Explorer view to match the makefile, right-click the project and click Sync from Nios® II Build.