# ePenguin Generated Variables TOOLCHAIN=${ESF_DIR}/toolchain/arm/bin/arm-none-eabi CC=${TOOLCHAIN}-gcc CXX=${TOOLCHAIN}-g++ OBJCOPY=${TOOLCHAIN}-objcopy OBJDUMP=${TOOLCHAIN}-objdump OBJDUMP=${TOOLCHAIN}-gdb SIZE=${TOOLCHAIN}-size AS=${TOOLCHAIN}-as MCPU=cortex-m0plus MCU=__SAMD21J18A__ LD_PATH=../ESF/ld LD_SCRIPT=$(LD_PATH)/samd21j18a_flash.ld CFLAGS= \ -x c \ -DDEBUG \ -Os \ -g3 \ -Wall \ -std=gnu99 \ $(DIR_INCLUDES) \ -MD -MP \ -MF$(QUOTE)$(@:%.o=%.d)$(QUOTE) \ -MT$(QUOTE)$(@:%.o=%.d)$(QUOTE) \ -MT$(QUOTE)$(@:%.o=%.o)$(QUOTE) EFLAGS= \ -Wl,--start-group -l m \ -Wl,--end-group -mthumb \ -Wl,-Map=$(QUOTE)$(PROJECT_NAME).map$(QUOTE) \ --specs=nano.specs \ -Wl,--gc-sections ifdef SystemRoot SHELL = cmd.exe MK_DIR = mkdir else ifeq ($(shell uname), Linux) MK_DIR = mkdir -p endif ifeq ($(shell uname | cut -d _ -f 1), CYGWIN) MK_DIR = mkdir -p endif ifeq ($(shell uname | cut -d _ -f 1), MINGW32) MK_DIR = mkdir -p endif ifeq ($(shell uname | cut -d _ -f 1), MINGW64) MK_DIR = mkdir -p endif ifeq ($(shell uname | cut -d _ -f 1), DARWIN) MK_DIR = mkdir -p endif endif SUB_DIRS+= \ src \ ESF/mcu/src OBJS+= \ ESF/mcu/src/startup_samd21j18a.o \ ESF/mcu/src/system_samd21j18a.o \ src/main.o OBJS_AS_ARGS+= \ $(QUOTE)ESF/mcu/src/startup_samd21j18a.o$(QUOTE) \ $(QUOTE)ESF/mcu/src/system_samd21j18a.o$(QUOTE) \ $(QUOTE)src/main.o$(QUOTE) \ .