Files
Upsilon/build/toolchain.arm-llvm.mak
Romain Goyet d70bad84f3 Rename the scripts folder to build
And the build folder to output
2019-09-18 17:46:38 +02:00

15 lines
326 B
Makefile

CC = clang
CXX = clang++
LD = arm-none-eabi-ld.bfd
GDB = arm-none-eabi-gdb
OBJCOPY = arm-none-eabi-objcopy
SIZE = arm-none-eabi-size
SFLAGS += -target thumbv7em-unknown-eabi -mcpu=cortex-m4 -mfpu=fpv4-sp-d16
ifeq ($(DEBUG),1)
SFLAGS += -ggdb3
else
SFLAGS += -fdata-sections -ffunction-sections
LDFLAGS += --gc-sections
endif