#126815 - Palko17 - Fri Apr 27, 2007 12:08 am
Okay I followed the TONC instructions made a C file called first.c made a make file called first.mak. Used command line to run first.mak (make -f first.mak). Nothing happens I get an error: make: arm-eabi-gcc command not found. What am I doing wrong, does the make and c file need to be in a different directory, they are in C:\devkitPro\testing\.
Link to article: http://user.chem.tue.nl/jakvijn/tonc/first.htm
C File:
Make File:
Link to article: http://user.chem.tue.nl/jakvijn/tonc/first.htm
C File:
Code: |
// First demo. You are not expected to understand it
// (don't spend too much time trying and read on). // But if you do understand (as a newbie): wow! int main() { *(unsigned int*)0x04000000 = 0x0403; ((unsigned short*)0x06000000)[120+80*240] = 0x001F; ((unsigned short*)0x06000000)[136+80*240] = 0x03E0; ((unsigned short*)0x06000000)[120+96*240] = 0x7C00; while(1); return 0; } |
Make File:
Code: |
PROJ= first
CC= arm-eabi-gcc OBJCOPY= arm-eabi-objcopy .PHONY : build build: $(CC) -mthumb-interwork -mthumb -c $(PROJ).c $(CC) -specs=gba_mb.specs -mthumb-interwork -mthumb $(PROJ).o -o $(PROJ).elf $(OBJCOPY) -v -O binary $(PROJ).elf $(PROJ).mb.gba -@gbafix $(PROJ).mb.gba .PHONY : clean clean: @rm -fv $(PROJ).o @rm -fv $(PROJ).mb.gba @rm -fv $(PROJ).elf |