include $(ROOT)/usr/include/make/GBAdefs

TARGETS = mailbox.bin

ASFILES = crt0.s
CFILES = Main.c Data.c 

default: $(TARGETS)

LLDOPTS = -Ttext 0x08000000 -Tbss 0x03000000 
LLDLIBS = -lagbsyscall -lmyfunc

LDIRT += mailbox.elf

include $(COMMONRULES)

mailbox.elf: $(OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
