# Processor dependent make definitions # $Id: efm32.mk 3849 2012-05-15 09:58:31Z svn $ CPUFLAGS += -mcpu=cortex-m3 -mthumb -DCORTEX_M3 FLASHWRITEADDR ?= 0x00000000 TEXTBASE ?= 0x00000000 CFLAGS += -DEFM32 LDFLAGS += -Ttext $(TEXTBASE) # Board specific macro definitions ifeq ($(BOARDNAME), EFM32_G8XX_STK) BOARDFLAGS ?= -DCONSOLE_PORT='"com1:115200,n,8,1"' MCU = efm32g890f128 JLINKGDBIF = -if SWD endif # Include MCU specific make file include $(MCUDIR)/$(MCU).mk # Phony targets .PHONY: lib clean_$(MCU) reallyclean_$(MCU) distclean_$(MCU) # Build processor dependent support library include $(MCUDIR)/libs/efm32libs.mk LIBOBJS = cpu.o gpiopins.o leds.o serial.o lib$(MCU).a: $(LIBOBJS) $(AR) crs lib$(MCU).a $(LIBOBJS) $(MAKE) efm32libs $(MAKE) otherlibs lib: lib$(MCU).a # Clean out working files clean_$(MCU): reallyclean_$(MCU): clean_$(MCU) distclean_$(MCU): reallyclean_$(MCU)