Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

4.2.2. Makefile Targets

Intel FPGA recommends that you study the generated makefiles for further details about the application makefile targets.
Table 15.  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.