# generated_app.mk # # Machine generated for a CPU named "cpu" as defined in: # c:\jtag\software\hello_world_4_syslib\..\..\nios.ptf # # Generated: 2008-10-09 22:27:12.031 # DO NOT MODIFY THIS FILE # # Changing this file will have subtle consequences # which will almost certainly lead to a nonfunctioning # system. If you do modify this file, be aware that your # changes will be overwritten and lost when this file # is generated again. # # DO NOT MODIFY THIS FILE # assuming the Quartus project directory is the same as the PTF directory QUARTUS_PROJECT_DIR = C:/jtag # the simulation directory is a subdirectory of the PTF directory SIMDIR = $(QUARTUS_PROJECT_DIR)/nios_sim DBL_QUOTE := " all: delete_placeholder_warning sim hex delete_placeholder_warning: do_delete_placeholder_warning .PHONY: delete_placeholder_warning sim: $(SIMDIR)/dummy_file .PHONY: sim hex: $(QUARTUS_PROJECT_DIR)/onchip_mem.hex .PHONY: hex verifysysid: dummy_verifysysid_file .PHONY: verifysysid do_delete_placeholder_warning: rm -f $(SIMDIR)/contents_file_warning.txt .PHONY: do_delete_placeholder_warning $(SIMDIR)/dummy_file: $(ELF) if [ ! -d $(SIMDIR) ]; then mkdir $(SIMDIR) ; fi @echo Hardware simulation is not enabled for the target SOPC Builder system. Skipping creation of hardware simulation model contents and simulation symbol files. \(Note: This does not affect the instruction set simulator.\) touch $(SIMDIR)/dummy_file $(QUARTUS_PROJECT_DIR)/onchip_mem.hex: $(ELF) @echo Post-processing to create $(notdir $@) elf2hex $(ELF) 0x01002000 0x1003FFF --width=32 $(QUARTUS_PROJECT_DIR)/onchip_mem.hex --create-lanes=0 dummy_verifysysid_file: nios2-download $(JTAG_CABLE) --sidp=0x01005010 --id=552374982 --timestamp=1223558957 .PHONY: dummy_verifysysid_file generated_app_clean: $(RM) $(SIMDIR)/dummy_file $(RM) $(QUARTUS_PROJECT_DIR)/onchip_mem.hex .PHONY: generated_app_clean