Altera_Forum
Honored Contributor
14 years agoMake Error: multiple target patterns
Hi,
I've got a make error which I do not understand as I'm not a big make expert. (I'm using the 11.1 tools and my bsp is generated by QSys). The error says exactly: make: *** multiple target patterns. Stop. mem_init.mk /ad_tpdb_0300_bsp line 182 C/C++ Problem The according line(s) in the makefile looks like this: .PHONY: onchip_ram onchip_ram: check_elf_exists $(MEM_INIT_DIR)/$(MEM_0).hex $(HDL_SIM_DIR)/$(MEM_0).dat $(HDL_SIM_DIR)/$(MEM_0).sym Background: When I compile my Nios II C code I want to get the onchip memory initialization files immediately. So I learned in Version 9.1 SP2 that I can switch on the following parameter in my firmware project make file: # Options to enable/disable optional files. CREATE_ELF_DERIVED_FILES := 1 This parameter is initally set to zero and I don't get any .hex files. By setting thia to "1" it worked just flawless in V9.1. Now, by using 11.1 I sometimes run into problems when I want to get my hex files generated automatically. As I said above, I have no real clue about make. And the generated make files in the bsp and main firmware project are not designed to be beginner friendly ;-). I started running into this problem when I enabled the QSys checkbox "Enable non-default initialization file" in the onchip memory configuration dialog. As I said all that worked in 9.1/SOPC. I would like to get this working in 11.1 also. What can I do? I tried to generate the hex files in the Nios II console. That (after certain trys) worked. But I ask myself why do I have to do it manually if there are extra switches in the makefile to perform this task? And why don't these switches work in 11.1 Thanks, Maik