1 LIB = libstm32l_discovery.a
5 RANLIB = arm-none-eabi-ranlib
7 CFLAGS = -Wall -O2 -mlittle-endian -mthumb
8 CFLAGS += -mcpu=cortex-m3 -ffreestanding -nostdlib -nostdinc
9 CFLAGS += -I../inc -I../inc/device_support -I../inc/core_support -I../inc/base
13 ../src/stm32l1xx_adc.c \
14 ../src/stm32l1xx_comp.c \
15 ../src/stm32l1xx_crc.c \
16 ../src/stm32l1xx_dac.c \
17 ../src/stm32l1xx_dbgmcu.c \
18 ../src/stm32l1xx_dma.c \
19 ../src/stm32l1xx_exti.c \
20 ../src/stm32l1xx_flash.c \
21 ../src/stm32l1xx_flash_ramfunc.c \
22 ../src/stm32l1xx_gpio.c \
23 ../src/stm32l1xx_i2c.c \
24 ../src/stm32l1xx_iwdg.c \
25 ../src/stm32l1xx_lcd.c \
26 ../src/stm32l1xx_pwr.c \
27 ../src/stm32l1xx_rcc.c \
28 ../src/stm32l1xx_rtc.c \
29 ../src/stm32l1xx_spi.c \
30 ../src/stm32l1xx_syscfg.c \
31 ../src/stm32l1xx_tim.c \
32 ../src/stm32l1xx_usart.c \
33 ../src/stm32l1xx_wwdg.c \
34 ../inc/core_support/core_cm3.c
41 $(AR) -r $(LIB) $(OBJS)
45 $(CC) $(CFLAGS) -c -o $@ $^