1 # Compile the STM32F7xx HAL Driver Library
3 LIBN
:= libstm32f7xxhal.a
4 LIBD
:= STM32F7xx_HAL_Driver
7 # this part is to be included at the top of the project Makefile
8 ifeq '$(INCLIBS)' 'inc'
10 $(info including
$(LIBN
))
12 LIBS
+= $(ARDIR
)/$(LIBN
)
13 LIBDIRS
+= $(LIBDIR
)/$(LIBD
)
14 PORTDIRS
+= $(PORTDIR
)/$(LIBP
)
15 LIBS_OPT
+= -DUSE_HAL_DRIVER
16 SRCS_ADD
+= $(LIBDIR
)/CMSIS-hal
/Device
/ST
/STM32F7xx
/Source
/Templates
/system_stm32f7xx.c
18 INC
+= $(LIBDIR
)/$(LIBD
)/Inc
19 INC
+= $(PORTDIR
)/$(LIBP
)
23 #this part is to be called to build the lib
24 ifeq '$(INCLIBS)' 'mk'
26 #$(info making $(LIBN))
30 SRCS_C
:= $(wildcard $(LIBD
)/Src
/*.c
)
31 SRCS_S
:= $(wildcard $(LIBD
)/Src
/*.s
)