OPTIONS_CC = -c -Wall -ansic -cpu ARM7TDMI -fpu none -Otime -apcs /narrow/noswst
OPTIONS_ASM = -CPU ARM7TDMI -Littleend

LIB = #/q/arm250/lib/armlib_cn.32l

CC = armcc
ASM = armasm
LINK = armlink

OBJS = start.o test.o data.o

test:		$(OBJS)
	$(LINK) -bin -first start.o $(OBJS) -map -ro-base 0x08000000 -l $(LIB) -o gba_3d_1b.bin

start.o:	start.asm	
	$(ASM) $(OPTIONS_ASM) start.asm 

test.o:		test.c gba.h
	$(CC) $(OPTIONS_CC) test.c -o test.o
	
data.o:		data.asm font.raw signs.raw
	$(ASM) $(OPTIONS_ASM) data.asm 

