forked from rs2k/raceflight
-
Notifications
You must be signed in to change notification settings - Fork 1
/
top_makefile
92 lines (81 loc) · 3.17 KB
/
top_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
85
86
87
88
89
90
91
#ALL_TARGETS := naze
#ALL_TARGETS += cc3d
#ALL_TARGETS += cc3d_opbl
#ALL_TARGETS += nazepro
#ALL_TARGETS += olimexino
#ALL_TARGETS += stm32f3discovery
#ALL_TARGETS += chebuzzf3
#ALL_TARGETS += cjmcu
#ALL_TARGETS += eustm32f103rc
ALL_TARGETS += spracingf3
#ALL_TARGETS += port103r
#ALL_TARGETS += sparky
#ALL_TARGETS += alienwiif1
#ALL_TARGETS += alienwiif3
#ALL_TARGETS += colibri_race
ALL_TARGETS += motolab
ALL_TARGETS += rmdo
ALL_TARGETS += lux_race
#ALL_TARGETS += ircfusionf3
#ALL_TARGETS += afromini
ALL_TARGETS += REVO
ALL_TARGETS += REVO_OPBL
ALL_TARGETS += SPARKY2
ALL_TARGETS += SPARKY2_OPBL
ALL_TARGETS += REVONANO
ALL_TARGETS += REVONANO_OPBL
ALL_TARGETS += ALIENFLIGHTF4
ALL_TARGETS += BLUEJAYF4
ALL_TARGETS += VRCORE
ALL_TARGETS += KKNGF4
CLEAN_TARGETS := $(addprefix clean_, $(ALL_TARGETS))
clean_naze naze : opts := TARGET=NAZE
clean_cc3d cc3d: opts := TARGET=CC3D
clean_cc3d_opbl cc3d_opbl : opts := TARGET=CC3D_OPBL
clean_nazepro nazepro : opts := TARGET=NAZE32PRO
clean_olimexino olimexino : opts := TARGET=OLIMEXINO
clean_stm32f3discovery stm32f3discovery : opts := TARGET=STM32F3DISCOVERY
clean_chebuzzf3 chebuzzf3 : opts := TARGET=CHEBUZZF3
clean_cjmcu cjmcu : opts := TARGET=CJMCU
clean_eustm32f103rc eustm32f103rc : opts := TARGET=EUSTM32F103RC
clean_spracingf3 spracingf3 : opts := TARGET=SPRACINGF3
clean_port103r port103r : opts := TARGET=PORT103R
clean_sparky sparky : opts := TARGET=SPARKY
clean_alienwiif1 alienwiif1 : opts := TARGET=ALIENWIIF1
clean_alienwiif3 alienwiif3 : opts := TARGET=ALIENWIIF3
clean_colibri_race colibri_race : opts := TARGET=COLIBRI_RACE
clean_motolab motolab : opts := TARGET=MOTOLAB
clean_rmdo rmdo : opts := TARGET=RMDO
clean_lux_race lux_race : opts := TARGET=LUX_RACE
clean_afromini afromini : opts := TARGET=AFROMINI
clean_VRCORE VRCORE : opts := TARGET=VRCORE
clean_BLUEJAYF4 BLUEJAYF4 : opts := TARGET=BLUEJAYF4
clean_ALIENFLIGHTF4 ALIENFLIGHTF4 : opts := TARGET=ALIENFLIGHTF4
clean_REVONANO_OPBL REVONANO_OPBL : opts := TARGET=REVONANO_OPBL
clean_REVONANO REVONANO : opts := TARGET=REVONANO
clean_SPARKY2_OPBL SPARKY2_OPBL : opts := TARGET=SPARKY2_OPBL
clean_SPARKY2 SPARKY2 : opts := TARGET=SPARKY2
clean_REVO_OPBL REVO_OPBL : opts := TARGET=REVO_OPBL
clean_REVO REVO : opts := TARGET=REVO
clean_REVO KKNGF4 : opts := TARGET=KKNGF4
.PHONY: all clean
all: everything
clean: clean_everything
.PHONY: clean_everything
clean_everything: $(CLEAN_TARGETS)
.PHONY: everything
everything: $(ALL_TARGETS)
.PHONY:$(ALL_TARGETS)
$(ALL_TARGETS):
make -f Makefile $(opts)
.PHONY: $(CLEAN_TARGETS)
$(CLEAN_TARGETS):
make -f Makefile clean $(opts)
.PHONY: help
help:
@echo "This is your new top makefile. synopsis: make <target>" .
@echo "Valid targets":
@echo "all"
@echo "clean"
@echo "$(ALL_TARGETS)"
@echo "$(CLEAN_TARGETS)"