#41466 - NoToDoHo - Thu Apr 28, 2005 8:30 pm
I am trying to adapt my NDSLIB Makefiles to work under 4NT with my version of make.exe (same version I used for GBA dev). I am trying to build the examples/arm9/2d/hello_world demo. I've been able to build the libraries and the startup boot loader with minimal changes to the Makefiles. With hello_world, I'm encountering two problems. First, with the line:
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
Make doesn't seem to find main.cpp (I do echo $(OFILES) within one of the steps and it gives me a blank). When I copy main.cpp to the same directory as Makefile and change the above line to:
CPPFILES := main.cpp
it finds the file now ($(OFILES) now yields main.o) but it doesn't see the need to build it - the link fails because it doesn't build main.o. I noticed the line:
%.elf:
<link commands>
and changed this to:
%.elf: $(OFILES)
<link commands>
when I do this, I get the message:
make[1]: Circular main.elf <- main.o dependency dropped.
So it still doesn't work.
Any insight you could offer would be greatly appreciated!
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
Make doesn't seem to find main.cpp (I do echo $(OFILES) within one of the steps and it gives me a blank). When I copy main.cpp to the same directory as Makefile and change the above line to:
CPPFILES := main.cpp
it finds the file now ($(OFILES) now yields main.o) but it doesn't see the need to build it - the link fails because it doesn't build main.o. I noticed the line:
%.elf:
<link commands>
and changed this to:
%.elf: $(OFILES)
<link commands>
when I do this, I get the message:
make[1]: Circular main.elf <- main.o dependency dropped.
So it still doesn't work.
Any insight you could offer would be greatly appreciated!