1 LIB = libstm32l_discovery.a
5 RANLIB = arm-none-eabi-ranlib
9 INC_CORE_SUPPORT=../inc/core_support
10 SRC_CORE_SUPPORT=../inc/core_support
11 INC_DEVICE_SUPPORT=../inc/device_support
12 INC_PLATFORM=../inc/$(PLATFORM)
13 SRC_PLATFORM=../src/$(PLATFORM)
15 CFLAGS = -Wall -O2 -mlittle-endian -mthumb
16 CFLAGS += -mcpu=cortex-m3 -ffreestanding -nostdlib -nostdinc
17 CFLAGS += -I$(INC_PLATFORM) -I$(INC_DEVICE_SUPPORT) -I$(INC_CORE_SUPPORT) -I../inc/base
19 SRCS=$(wildcard $(SRC_PLATFORM)/*.c)
20 SRCS+=$(SRC_CORE_SUPPORT)/core_cm3.c
27 $(AR) -r $(LIB) $(OBJS)
31 $(CC) $(CFLAGS) -c -o $@ $^