
TARGET = embox

ARCH = arm

CHIP_VENDOR = stm32
PLATFORM_VENDOR = stm32
PLATFORM = stm32f4

CROSS_COMPILE = arm-none-eabi-

OPTIMIZATION_FLAG := -Os 
#OPTIMIZATION_FLAG := -O0 -g

CFLAGS += $(OPTIMIZATION_FLAG)
CFLAGS += -mthumb -mlittle-endian -march=armv7e-m -mtune=cortex-m4
CFLAGS += -ffreestanding

/* Switch between FPU and non-FPU modes */
#CFLAGS += -msoft-float
CFLAGS += -mfpu=fpv4-sp-d16 -mfloat-abi=hard

CXXFLAGS += $(OPTIMIZATION_FLAG)
CXXFLAGS += -ffreestanding
CXXFLAGS += -mthumb -mlittle-endian -march=armv7e-m -mtune=cortex-m4
CXXFLAGS += -mfpu=fpv4-sp-d16 -mfloat-abi=hard
CXXFLAGS += -fno-rtti
CXXFLAGS += -fno-exceptions
CXXFLAGS += -fno-threadsafe-statics
