# generated_app.mk # # Machine generated for a CPU named "cpu_0" as defined in: # D:\fpgalanguage\sopc_led\nios_II.ptf # # Generated: 2009-05-24 11:34:37.125 # 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 = D:/fpgalanguage/sopc_led # the simulation directory is a subdirectory of the PTF directory SIMDIR = $(QUARTUS_PROJECT_DIR)/nios_II_sim # macros defined by/for onchip_memory_0 PAD_DAT_FILES = --pad=0 all: dat delete_placeholder_warning hex sym dat: $(SIMDIR)/onchip_memory_0.dat .PHONY: dat delete_placeholder_warning: do_delete_placeholder_warning .PHONY: delete_placeholder_warning hex: $(QUARTUS_PROJECT_DIR)/onchip_memory_0.hex .PHONY: hex sym: $(SIMDIR)/onchip_memory_0.sym .PHONY: sym $(SIMDIR)/onchip_memory_0.dat: $(ELF) if [ ! -d $(SIMDIR) ]; then mkdir $(SIMDIR) ; fi @echo Post-processing to create $(notdir $@) elf2dat --infile=$(ELF) --outfile=$(SIMDIR)/onchip_memory_0.dat --base=0x00000000 --end=0xFFF $(PAD_DAT_FILES) --create-lanes=0 --width=32 do_delete_placeholder_warning: rm -f $(SIMDIR)/contents_file_warning.txt .PHONY: do_delete_placeholder_warning $(QUARTUS_PROJECT_DIR)/onchip_memory_0.hex: $(ELF) @echo Post-processing to create $(notdir $@) elf2hex $(ELF) 0x00000000 0xFFF --width=32 $(QUARTUS_PROJECT_DIR)/onchip_memory_0.hex --create-lanes=0 $(SIMDIR)/onchip_memory_0.sym: $(ELF) if [ ! -d $(SIMDIR) ]; then mkdir $(SIMDIR) ; fi @echo Post-processing to create $(notdir $@) nios2-elf-nm -n $(ELF) > $(SIMDIR)/onchip_memory_0.sym generated_app_clean: $(RM) $(SIMDIR)/onchip_memory_0.dat $(RM) $(QUARTUS_PROJECT_DIR)/onchip_memory_0.hex $(RM) $(SIMDIR)/onchip_memory_0.sym .PHONY: generated_app_clean