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

SCTOOLDIR = /opt/crosstool/bin
AS = $(SCTOOLDIR)/arm-elf-gcc -x assembler-with-cpp -c
CC = $(SCTOOLDIR)/arm-elf-gcc
LD = $(SCTOOLDIR)/arm-elf-ld
CONVERT = $(SCTOOLDIR)/arm-elf-strip -O binary
MERGE = $(ROOT)/usr/bin/x86/arm-elf-merge

# C compiler variables
GCOPTS	= -mcpu=arm7tdmi -mthumb-interwork $(OPTIMIZER) $(ENDIAN) $(MKDEPOPT) $(WOFF) -fomit-frame-pointer -Wall -Werror -fno-builtin
GCDEFS = -DGBA
GCINCS = -I$(ROOT)/usr/include/gba

# Assembler variables
GASDEFS = -DGBA
GASOPTS = -mcpu=arm7tdmi -mthumb-interwork -Wall -Werror
GASINCS = -I$(ROOT)/usr/include/gba

# Linker variables
GLDOPTS = -L$(ROOT)/usr/lib/gba -nostartfiles -nostdlib
GLDLIBS = -lgcc

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