-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile~
49 lines (40 loc) · 1.42 KB
/
Makefile~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# libs Makefile
include ../Makefile.common
LIBS+=lib$(series).a
CFLAGSlib+=-c
all: libs
libs: $(LIBS)
$(LIBS):
@echo -n "Building $@ ..."
@cd $(STMLIB)/CMSIS/Device/ST/$(SERIES)/Source/Templates && \
$(CC) $(CFLAGSlib) \
system_$(series).c
@cd $(STMLIB)/$(SERIES)_StdPeriph_Driver/src && \
$(CC) $(CFLAGSlib) \
-D"assert_param(expr)=((void)0)" \
-I../../CMSIS/Include \
-I../../CMSIS/Device/ST/$(SERIES)/Include \
-I../inc \
*.c
# @cd $(STMLIB)/STM32_USB-FS-Device_Driver/src && \
# $(CC) $(CFLAGSlib) \
# -D"assert_param(expr)=((void)0)" \
# -I../../CMSIS/Include \
# -I../../CMSIS/Device/ST/$(SERIES)/Include \
# -I../inc \
# *.c
@$(AR) cr $(LIBDIR)/$@ \
$(STMLIB)/CMSIS/Device/ST/$(SERIES)/Source/Templates/system_$(series).o \
$(STMLIB)/$(SERIES)_StdPeriph_Driver/src/*.o \
# $(STMLIB)/STM32_USB-FS-Device_Driver/src/*.o
@echo "done."
.PHONY: libs clean tshow
clean:
rm -f $(STMLIB)/CMSIS/Device/ST/$(SERIES)/Source/Templates/system_$(series).o
rm -f $(STMLIB)/$(SERIES)_StdPeriph_Driver/src/*.o
rm -f $(STMLIB)/STM32_USB-FS-Device_Driver/src/*.o
rm -f $(LIBS)
tshow:
@echo "######################################################################################################"
@echo "################# optimize settings: $(InfoTextLib), $(InfoTextSrc)"
@echo "######################################################################################################"