Forum Discussion
Altera_Forum
Honored Contributor
20 years agoMikefile problem
This the makefile of hello.c.When I "build make targe" in Nios2 IDE, this problem appears as above. I am not able to solve it. Can anyone help me? Thank you!
# # 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 *. *.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 This problem is mazing!2 Replies
- Altera_Forum
Honored Contributor
hehe, you should
1. lefe click the file folder, which directly contain makefile, and notice the TOPDIR is the dir which contain the Rules.mak( so you should modify it correctly) 2. right click "crate/build make target" BTW: the error cuased by left click wrong file folder And please post plain words rather than pictures. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by mountain8848@Oct 17 2005, 07:10 PM hehe, you should1. lefe click the file folder[/b], which directly contain makefile, and notice the TOPDIR is the dir which contain the Rules.mak( so you should modify it correctly) 2. right click "crate/build make target" BTW: the error cuased by left click wrong file folder And please post plain words rather than pictures. <div align='right'><{post_snapback}> (index.php?act=findpost&pid=10403) --- Quote End --- [/b] --- Quote End --- Thank you. I copy hello.c and makefile to my project, and change "TOPDIR = .. "to TOPDIR = ./ ". It's OK.