- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif
make -k all make: *** No rule to make target `all'. When i follow the guide create an application, but makefile always failed as above. I'm a linux newer. Can anyone help me? Thank you.Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Those makefiles aren'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 '$(DEBUG)' '1' 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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
I'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 '$(DEBUG)' '1' 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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
http://
--- Quote Start --- originally posted by singerpop@Oct 15 2005, 08:31 AM http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gifi'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 '$(debug)' '1'
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
well, I'm in the same trouble, so if you've already solved that please let me know how. thnx- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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'.
when i follow the guide create an application, but makefile always failed as above.
i'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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page