-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
85 lines (68 loc) · 2.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright (c) 2019-2024 Travis Bemann
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# Without this make can start in the wrong source directory
.OBJDIR: ./
export IDIR=src/include
export AS=arm-none-eabi-as
export LD=arm-none-eabi-ld
export COPY=arm-none-eabi-objcopy
export DUMP=arm-none-eabi-objdump
export ASFLAGS=-g
export PREFIX=/usr/local
export PLATFORM=stm32f407
export VERSION=1.9.2-dev
KERNEL_INFO=src/common/kernel_info.s
all: stm32f407 stm32f411 stm32l476 stm32f746 rp2040 rp2040_big rp2350
install:
$(MAKE) -C src/stm32f407 install
$(MAKE) -C src/stm32f411 install
$(MAKE) -C src/stm32l476 install
$(MAKE) -C src/stm32f746 install
$(MAKE) -C src/rp2040 install
$(MAKE) -C src/rp2040_big install
$(MAKE) -C src/rp2350 install
stm32f407:
$(MAKE) -C src/stm32f407
stm32f411:
$(MAKE) -C src/stm32f411
stm32l476:
$(MAKE) -C src/stm32l476
stm32f746:
$(MAKE) -C src/stm32f746
rp2040:
$(MAKE) -C src/rp2040
rp2040_big:
$(MAKE) -C src/rp2040_big
rp2350:
$(MAKE) -C src/rp2350
.PHONY: all install stm32f407 stm32f411 stm32l746 stm32f746 rp2040 rp2040_big rp2350 clean html epub
html:
cd docs ; sphinx-build -b html . ../html
epub:
cd docs ; sphinx-build -b epub . ../epub
clean:
$(MAKE) -C src/stm32f407 clean
$(MAKE) -C src/stm32f411 clean
$(MAKE) -C src/stm32l476 clean
$(MAKE) -C src/stm32f746 clean
$(MAKE) -C src/rp2040 clean
$(MAKE) -C src/rp2040_big clean
$(MAKE) -C src/rp2350 clean
$(MAKE) -C src/common clean