X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=example%2Fstm32f4%2FSTM32F4xx_StdPeriph_Driver%2Fbuild%2FMakefile;fp=example%2Fstm32f4%2FSTM32F4xx_StdPeriph_Driver%2Fbuild%2FMakefile;h=1506b0ed34374779ebe39780229d0ad4c5a5942d;hb=428744bbe366de64da6944df9cde447b55a2c14d;hp=0000000000000000000000000000000000000000;hpb=c2fa32ce2bbf133f0eec08ae589fd13d635e3ae4;p=fw%2Fstlink diff --git a/example/stm32f4/STM32F4xx_StdPeriph_Driver/build/Makefile b/example/stm32f4/STM32F4xx_StdPeriph_Driver/build/Makefile new file mode 100644 index 0000000..1506b0e --- /dev/null +++ b/example/stm32f4/STM32F4xx_StdPeriph_Driver/build/Makefile @@ -0,0 +1,60 @@ +LIB = libSTM32F4xx_StdPeriph_Driver.a + +CC = arm-none-eabi-gcc +AR = arm-none-eabi-ar +RANLIB = arm-none-eabi-ranlib + +CFLAGS = -Wall -O2 -mlittle-endian -mthumb +CFLAGS += -mcpu=cortex-m4 -ffreestanding -nostdlib +CFLAGS += -I../inc -I../inc/device_support -I../inc/core_support + +SRCS = \ +../src/misc.c \ +../src/stm32f4xx_adc.c \ +../src/stm32f4xx_can.c \ +../src/stm32f4xx_crc.c \ +../src/stm32f4xx_cryp_aes.c \ +../src/stm32f4xx_cryp_des.c \ +../src/stm32f4xx_cryp_tdes.c \ +../src/stm32f4xx_cryp_des.c \ +../src/stm32f4xx_dac.c \ +../src/stm32f4xx_dbgmcu.c \ +../src/stm32f4xx_dcmi.c \ +../src/stm32f4xx_dma.c \ +../src/stm32f4xx_exti.c \ +../src/stm32f4xx_flash.c \ +../src/stm32f4xx_fsmc.c \ +../src/stm32f4xx_gpio.c \ +../src/stm32f4xx_hash_md5.c \ +../src/stm32f4xx_hash_sha1.c \ +../src/stm32f4xx_hash.c \ +../src/stm32f4xx_i2c.c \ +../src/stm32f4xx_iwdg.c \ +../src/stm32f4xx_pwr.c \ +../src/stm32f4xx_rcc.c \ +../src/stm32f4xx_rng.c \ +../src/stm32f4xx_rtc.c \ +../src/stm32f4xx_sdio.c \ +../src/stm32f4xx_spi.c \ +../src/stm32f4xx_syscfg.c \ +../src/stm32f4xx_tim.c \ +../src/stm32f4xx_usart.c \ +../src/stm32f4xx_wwdg.c \ +#../inc/core_support/core_cm4.c + +OBJS = $(SRCS:.c=.o) + +all: $(LIB) + +$(LIB): $(OBJS) + $(AR) -r $(LIB) $(OBJS) + $(RANLIB) $(LIB) + +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $^ + +clean: + -rm -f $(OBJS) + -rm -f $(LIB) + +.PHONY: all clean