1 LIB = libSTM32F4xx_StdPeriph_Driver.a
5 RANLIB = arm-none-eabi-ranlib
7 CFLAGS = -Wall -O2 -mlittle-endian -mthumb
8 CFLAGS += -mcpu=cortex-m4 -ffreestanding -nostdlib
9 CFLAGS += -I../inc -I../inc/device_support -I../inc/core_support
13 ../src/stm32f4xx_adc.c \
14 ../src/stm32f4xx_can.c \
15 ../src/stm32f4xx_crc.c \
16 ../src/stm32f4xx_cryp_aes.c \
17 ../src/stm32f4xx_cryp_des.c \
18 ../src/stm32f4xx_cryp_tdes.c \
19 ../src/stm32f4xx_cryp_des.c \
20 ../src/stm32f4xx_dac.c \
21 ../src/stm32f4xx_dbgmcu.c \
22 ../src/stm32f4xx_dcmi.c \
23 ../src/stm32f4xx_dma.c \
24 ../src/stm32f4xx_exti.c \
25 ../src/stm32f4xx_flash.c \
26 ../src/stm32f4xx_fsmc.c \
27 ../src/stm32f4xx_gpio.c \
28 ../src/stm32f4xx_hash_md5.c \
29 ../src/stm32f4xx_hash_sha1.c \
30 ../src/stm32f4xx_hash.c \
31 ../src/stm32f4xx_i2c.c \
32 ../src/stm32f4xx_iwdg.c \
33 ../src/stm32f4xx_pwr.c \
34 ../src/stm32f4xx_rcc.c \
35 ../src/stm32f4xx_rng.c \
36 ../src/stm32f4xx_rtc.c \
37 ../src/stm32f4xx_sdio.c \
38 ../src/stm32f4xx_spi.c \
39 ../src/stm32f4xx_syscfg.c \
40 ../src/stm32f4xx_tim.c \
41 ../src/stm32f4xx_usart.c \
42 ../src/stm32f4xx_wwdg.c \
43 #../inc/core_support/core_cm4.c
50 $(AR) -r $(LIB) $(OBJS)
54 $(CC) $(CFLAGS) -c -o $@ $^