a8824f8ea6f8f2de559412815e808d3cd95abe05
[mTask.git] / int / com / lib / libstm32f7xxhal.mk
1 # Compile the STM32F7xx HAL Driver Library
2
3 LIBN := libstm32f7xxhal.a
4 LIBD := STM32F7xx_HAL_Driver
5 LIBP := fw
6
7 # this part is to be included at the top of the project Makefile
8 ifeq '$(INCLIBS)' 'inc'
9
10 $(info including $(LIBN))
11
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
17
18 INC += $(LIBDIR)/$(LIBD)/Inc
19 INC += $(PORTDIR)/$(LIBP)
20
21 endif
22
23 #this part is to be called to build the lib
24 ifeq '$(INCLIBS)' 'mk'
25 export
26 #$(info making $(LIBN))
27
28 LIBNAME := $(LIBN)
29
30 SRCS_C := $(wildcard $(LIBD)/Src/*.c)
31 SRCS_S := $(wildcard $(LIBD)/Src/*.s)
32
33 include lib.mk
34
35 endif
36
37 LIBN :=
38 LIBD :=
39 LIBP :=