Re: Code::Blocks and devkitARM
Posted: Tue Sep 14, 2010 12:54 am
For the crash issue have a look at this post -> http://devkitpro.org/viewtopic.php?f=3&t=2182
What's dev_make.exe? Did you rename the make in the msys/bin folder or something?
No rule to make target `Debug' & No rule to make target `Release' are exactly what they say, there are no rules for either of those targets. You can add said targets relatively easily
Although it would be better if the build directory was set in relation to the target requested which could be done like this :-
First change the BUILD and TARGET variables so they can be overridden, from this
to this
and further down the Makefile do this
There may possibly be a better way, not sure without doing some digging around in the make manual.
What's dev_make.exe? Did you rename the make in the msys/bin folder or something?
No rule to make target `Debug' & No rule to make target `Release' are exactly what they say, there are no rules for either of those targets. You can add said targets relatively easily
Code: Select all
.PHONY: $(BUILD) clean Release Debug
#---------------------------------------------------------------------------------
$(BUILD):
@[ -d $@ ] || mkdir -p $@
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
Release: $(BUILD)
Debug: $(BUILD)
First change the BUILD and TARGET variables so they can be overridden, from this
Code: Select all
TARGET := $(shell basename $(CURDIR))
BUILD := build
Code: Select all
TARGET ?= $(shell basename $(CURDIR))
BUILD ?= build
Code: Select all
.PHONY: Debug Release $(BUILD) clean
#---------------------------------------------------------------------------------
$(BUILD):
@[ -d $@ ] || mkdir -p $@
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
Debug:
$(MAKE) BUILD=DebugBuild TARGET=$(shell basename $(CURDIR))d
Release:
$(MAKE) BUILD=ReleaseBuild TARGET=$(shell basename $(CURDIR))