Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

How solve this problem?

Altera_Forum
Honored Contributor II
1,013 Views

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif  

 

make -k all  

make: *** No rule to make target `all&#39;. 

 

When i follow the guide create an application, but makefile always failed as above. 

I&#39;m a linux newer. 

Can anyone help me? 

Thank you.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
289 Views

Those makefiles aren&#39;t a speciality of linux. they are very common (BCB, VC++,GCC) 

 

How does your makefile look ? Maybe take a look at the makefile of the hello program example and try to build it (look a bit closer in the guide): 

 

# # configurable options# - set DEBUG = 1 to turn on debugging support#  

DEBUG = 1 

PROJ_NAME = hello 

INSTALL_DIR =  

PROGS := $(PROJ_NAME).exe 

CFLAGS += 

# # You should not need to modify anything beyond this point#  

TOPDIR = .. 

include $(TOPDIR)/Rules.mak 

 

ifeq &#39;$(DEBUG)&#39; &#39;1&#39; 

PROGS += $(PROGS:.exe=.gdb) 

endif 

 

all: $(PROGS) 

 

.PHONY: clean 

clean: 

-rm -f *.[oad] *.elf *.gdb *.bin *.exe 

 

.PHONY: install 

install: all 

ifeq "$(INSTALL_DIR)" "" 

$(error No installation directory specified) 

endif 

mkdir -p $(INSTALL_DIR)/bin 

install -v $(filter %.exe, $(PROGS)) $(INSTALL_DIR)/bin
0 Kudos
Altera_Forum
Honored Contributor II
289 Views

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

I&#39;m sorry to say that it fails again. 

This is my makefile. 

# # configurable options# - set DEBUG = 1 to turn on debugging support#  

DEBUG = 1 

PROJ_NAME = debug 

INSTALL_DIR =  

PROGS := $(PROJ_NAME).exe 

CFLAGS += 

# # You should not need to modify anything beyond this point#  

TOPDIR = .. 

include $(TOPDIR)/Rules.mak 

ifeq &#39;$(DEBUG)&#39; &#39;1&#39; 

PROGS += $(PROGS:.exe=.gdb) 

endif 

 

all: $(PROGS) 

 

.PHONY: clean 

clean: 

-rm -f *.[oad] *.elf *.gdb *.bin *.exe 

 

.PHONY: install 

install: all 

ifeq "$(INSTALL_DIR)" "" 

$(error No installation directory specified) 

endif 

mkdir -p $(INSTALL_DIR)/bin 

install -v $(filter %.exe, $(PROGS)) $(INSTALL_DIR)/bin
0 Kudos
Altera_Forum
Honored Contributor II
289 Views

http://  

--- Quote Start ---  

originally posted by singerpop@Oct 15 2005, 08:31 AM 

http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif  

i&#39;m sorry to say that it fails again. 

this is my makefile. 

# # configurable options#   - set debug = 1 to turn on debugging support#  

debug = 1 

proj_name = debug 

install_dir =  

progs := $(proj_name).exe 

cflags += 

# # you should not need to modify anything beyond this point#  

topdir = .. 

include $(topdir)/rules.mak 

ifeq &#39;$(debug)&#39; &#39;1&#39; 

progs += $(progs:.exe=.gdb) 

endif 

 

all: $(progs) 

 

.phony: clean 

clean: 

-rm -f *.[oad] *.elf *.gdb *.bin *.exe 

 

.phony: install 

install: all 

ifeq "$(install_dir)" "" 

$(error no installation directory specified) 

endif 

mkdir -p $(install_dir)/bin 

install -v $(filter %.exe, $(progs)) $(install_dir)/bin 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10382) 

--- quote end ---  

 

--- Quote End ---  

 

 

additional,the outline of niosii ide shows that  

"mkdir -p $(install_dir)/bin" and  

"install -v $(filter %.exe, $(progs)) $(install_dir)/bin" are wrong.
0 Kudos
Altera_Forum
Honored Contributor II
289 Views

Hi, 

 

well, I&#39;m in the same trouble, so if you&#39;ve already solved that please let me know how. 

 

thnx
0 Kudos
Altera_Forum
Honored Contributor II
289 Views

 

--- Quote Start ---  

originally posted by singerpop@Oct 14 2005, 03:51 PM 

http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif  

 

make -k all  

make: *** no rule to make target `all&#39;. 

 

when i follow the guide create an application, but makefile always failed as above. 

i&#39;m a linux newer. 

can anyone help me? 

thank you. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10372) 

--- quote end ---  

 

--- Quote End ---  

 

 

Hi, 

 

you can try this makefile with the standard generated rules.mak 

# ################################################## 

 

include Settings.mak 

include Rules.mak 

# put here all the obj files: 

OBJS = myfile.o myfile2.o myfile3.o 

# specify here your target: 

all: myprog.exe 

 

myprog.bin: $(OBJS) 

# ################################################### 

 

It works for me and normally for you too. 

 

Warm Regards
0 Kudos
Reply