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
CXX = $(SCTOOLDIR)/arm-elf-g++
LD = $(SCTOOLDIR)/arm-elf-ld
CONVERT = $(SCTOOLDIR)/arm-elf-strip -O binary
MERGE = $(ROOT)/usr/bin/x86/arm-elf-merge

SDRAM_LINK = $(ROOT)/usr/lib/sc/sdram.link
DA_LINK = $(ROOT)/usr/lib/sc/da.link

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

# C++ compiler variables
GC++OPTS	= -mcpu=arm7tdmi -mthumb-interwork $(OPTIMIZER) $(ENDIAN) $(MKDEPOPT) $(WOFF) -fomit-frame-pointer -Wall -Werror -fno-builtin
GC++DEFS = -DNET_CARD -DSC
GC++INCS = -I$(ROOT)/usr/include/sc -I$(ROOT)/usr/include

# Assembler variables
GASDEFS = -DFAST_SEMIHOSTING -DNET_CARD -DSC -DASSEMBLER
GASOPTS = -mcpu=arm7tdmi -mthumb-interwork -Wall -Werror
GASINCS = -I$(ROOT)/usr/include/sc -I$(ROOT)/usr/include

# Linker variables
GLDOPTS = -L$(ROOT)/usr/lib/sc -nostartfiles -nostdlib
GLDLIBS = -lgcc
CRT0 = $(ROOT)/usr/lib/sc/crt0.o

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