changing $(PATH) in Makefile has no effect (OS X)
Posted: Thu Jun 10, 2010 1:46 pm
Hello, I am new to this forum.
I am trying to get the devkitARM to work on OS X 10.6 for GBA development. I have hardly any experience with makefiles and I stumble on what seems a trivial thing. Searching the forums has not helped me. I have installed current Apple Developer Tools, make is GNU Make 3.81.
I have downloaded devkitARM, libgba and gba-expamples and extracted them to /opt/devkitpro/... according to this Getting Started page.
Also I have added these lines to my ~/.profile:
Now, I have a Makefile which includes the following lines (one example of the Tonc tutorial):
When executing make, I get the following error:
This is strange, because when I echo the PATH from within the Makefile, it has prepended /opt/devkitpro/devkitARM/bin as desired.
What works is when I prepend the PATH before calling make like this:
$ export PATH=$DEVKITARM/bin:$PATH
$ make
or if I set the PATH in my ~/.profile. But this is only a workaround as I understand it.
The examples of devkitpro (I put them here /opt/devkitpro/examples/gba) compile fine, but I see no reason why the above method does not work.
Thanks.
I am trying to get the devkitARM to work on OS X 10.6 for GBA development. I have hardly any experience with makefiles and I stumble on what seems a trivial thing. Searching the forums has not helped me. I have installed current Apple Developer Tools, make is GNU Make 3.81.
I have downloaded devkitARM, libgba and gba-expamples and extracted them to /opt/devkitpro/... according to this Getting Started page.
Also I have added these lines to my ~/.profile:
Code: Select all
export DEVKITPRO=/opt/devkitpro
export DEVKITARM=$DEVKITPRO/devkitARM
Code: Select all
PATH := $(DEVKITARM)/bin:$(PATH)
PREFIX := arm-eabi-
CC := $(PREFIX)gcc
Code: Select all
make: arm-eabi-gcc: No such file or directory
What works is when I prepend the PATH before calling make like this:
$ export PATH=$DEVKITARM/bin:$PATH
$ make
or if I set the PATH in my ~/.profile. But this is only a workaround as I understand it.
The examples of devkitpro (I put them here /opt/devkitpro/examples/gba) compile fine, but I see no reason why the above method does not work.
Thanks.