gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Makefile

#170756 - HomocidalCanineK9 - Sat Oct 17, 2009 12:46 am

Does anyone have the Makefile for GBA?

In mine I put
Code:
path=C:\NDS\devkitpro\projects\pong
gcc -o pong.elf pong.c -lm
objcopy -O binary pong.elf pong.bin

But it says GCC and objcopy aren't real commands. I'm assuming it's because I set up devkitPro wrong, so does anyone know how to do that?

#170757 - Dwedit - Sat Oct 17, 2009 6:22 am

Look in the Examples folder of devkitpro.

By the way, you want to use commands prefixed with "arm-eabi".

So you'd use arm-eabi-gcc, or arm-eabi-objcopy.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#170759 - HomocidalCanineK9 - Sun Oct 18, 2009 12:58 am

Dwedit wrote:
Look in the Examples folder of devkitpro.

By the way, you want to use commands prefixed with "arm-eabi".

So you'd use arm-eabi-gcc, or arm-eabi-objcopy.

It still won't work. I added arm-eabi- to objcopy and gcc, added the makefile in the examples to the folder, have it set up just like in the template. But I still get the same error.

Quote:

arm-eabi-objcopy -O binary pong.elf pong.bin
'arm-eabi-objcopy' is not recognized as an internal or external command,
operable program or batch file.

#170760 - Dwedit - Sun Oct 18, 2009 1:18 am

Is C:\devkitpro\devkitarm\bin in your path environment variable?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#170762 - HomocidalCanineK9 - Sun Oct 18, 2009 3:00 pm

Dwedit wrote:
Is C:\devkitpro\devkitarm\bin in your path environment variable?

Yes.