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.

Coding > YopYop -help

#27755 - tomer - Wed Oct 20, 2004 5:46 pm

Hi YopYop!
I tried this:

Code:

CC=gcc
LD=ld
AS=as

CFLAGS += -I D:\GBA\DEVKIT\arm-agb-elf\include -I C:\gbadev\lib -g -O2 -mthumb-interwork -Wall -fverbose-asm

LDFLAGS += -L D:\GBA\DEVKIT\arm-agb-elf\lib\interwork -L. -Tlnkscript -Ttext 0x08000000 -Tbss 0x03000000

ASFLAGS += -mthumb-interwork

EXEC = proto.bin

SHELL = sh.exe

TARGET_ELF = out.elf
.CFILES= $(wildcard *.c)
.OFILES= crt0.o $(.CFILES:.c=.o)

all: $(EXEC)

$(EXEC): $(TARGET_ELF)
               objcopy -v -O binary $(TARGET_ELF)$(EXEC)\
$(TARGET_ELF): $(.OFILES)\
            $(LD) $(LDFLAGS) $^ -o $(TARGET_ELF) -lm\







and this is the output:



Code:

process_begin: CreateProcess((null), as -mthumb-interwork -o crt0.o crt0.s, .....)

make(e=2): the system cannot find the specified file






I guess, that there is a little syntax problem


Cheers, tomer


Last edited by tomer on Wed Oct 20, 2004 5:51 pm; edited 1 time in total

#27756 - poslundc - Wed Oct 20, 2004 5:48 pm

You can send private messages to a person by clicking on the "pm" at the bottom of a person's message. Please don't use the forum for that purpose.

Dan.