Nios® II Software Developer Handbook

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

5.2.2. Makefile Targets

Intel FPGA recommends that you study the generated makefiles for further details about the application makefile targets.
Table 17.  Application Makefile Targets
Target Operation
help Displays all available application makefile targets.
all (default) Builds the associated BSP and libraries, and then builds the application executable file.
app Builds only the application executable file.
bsp Builds only the BSP.
libs Builds only the libraries and the BSP.
clean Performs a clean build of the application. Deletes all application-related generated files. Leaves associated BSP and libraries alone.
clean_all Performs a clean build of the application, and associated BSP and libraries (if any).
clean_bsp Performs a clean build of the BSP.
clean_libs Performs a clean build of the libraries and the BSP.
download-elf Builds the application executable file and then downloads and runs it.
program-flash Runs the Nios® II flash programmer to program your flash memory.
Note: You can use the download-elf makefile target if the host system is connected to a single USB-Blaster™ download cable. If you have more than one download cable, you must download your executable with a separate command. Set up a run configuration in the Nios® II SBT for Eclipse, or use nios2-download, with the --cable option to specify the download cable.