Fix compile error
[betaflight.git] / top_makefile
blob4a3e572274f03623840de47fa6a108c4285046f1
1 ALL_TARGETS := naze
2 ALL_TARGETS += cc3d
3 ALL_TARGETS += cc3d_opbl
4 ALL_TARGETS += nazepro
5 ALL_TARGETS += olimexino
6 ALL_TARGETS += stm32f3discovery
7 ALL_TARGETS += chebuzzf3
8 #ALL_TARGETS += cjmcu
9 ALL_TARGETS += eustm32f103rc
10 ALL_TARGETS += spracingf3
11 ALL_TARGETS += port103r
12 ALL_TARGETS += sparky
13 ALL_TARGETS += alienwiif1
14 ALL_TARGETS += alienwiif3
15 ALL_TARGETS += colibri_race
16 ALL_TARGETS += lux_race
17 ALL_TARGETS += motolab
18 ALL_TARGETS += rmdo
19 ALL_TARGETS += ircfusionf3
21 CLEAN_TARGETS     := $(addprefix clean_, $(ALL_TARGETS)) 
23 clean_naze naze :                         opts := TARGET=NAZE
24 clean_cc3d cc3d:                          opts := TARGET=CC3D
25 clean_cc3d_opbl cc3d_opbl :               opts := TARGET=CC3D_OPBL
26 clean_nazepro nazepro :                   opts := TARGET=NAZE32PRO
27 clean_olimexino olimexino :               opts := TARGET=OLIMEXINO
28 clean_stm32f3discovery stm32f3discovery : opts := TARGET=STM32F3DISCOVERY
29 clean_chebuzzf3 chebuzzf3 :               opts := TARGET=CHEBUZZF3
30 clean_cjmcu cjmcu :                       opts := TARGET=CJMCU
31 clean_eustm32f103rc eustm32f103rc :       opts := TARGET=EUSTM32F103RC
32 clean_spracingf3 spracingf3 :             opts := TARGET=SPRACINGF3
33 clean_port103r port103r  :                opts := TARGET=PORT103R
34 clean_sparky sparky :                     opts := TARGET=SPARKY
35 clean_alienwiif1 alienwiif1 :             opts := TARGET=ALIENFLIGHTF1
36 clean_alienwiif3 alienwiif3  :            opts := TARGET=ALIENFLIGHTF3
37 clean_colibri_race colibri_race :         opts := TARGET=COLIBRI_RACE
38 clean_lux_race lux_race :                 opts := TARGET=LUX_RACE
39 clean_motolab motolab :                   opts := TARGET=MOTOLAB
40 clean_rmdo rmdo :                         opts := TARGET=RMDO
41 clean_ircfusionf3 ircfusionf3 :           opts := TARGET=IRCFUSIONF3
44 .PHONY: all clean
45 all: everything
46 clean: clean_everything
49 .PHONY: clean_everything
50 clean_everything: $(CLEAN_TARGETS)
52 .PHONY: everything
53 everything: $(ALL_TARGETS)
56 .PHONY:$(ALL_TARGETS)
57 $(ALL_TARGETS):
58         make -f Makefile $(opts)
60 .PHONY: $(CLEAN_TARGETS)
61 $(CLEAN_TARGETS):
62         make -f Makefile clean $(opts)
64 .PHONY: help
65 help:
66         @echo "This is your new top makefile. synopsis: make <target>" .
67         @echo "Valid targets":
68         @echo "all"
69         @echo "clean"
70         @echo "$(ALL_TARGETS)"
71         @echo "$(CLEAN_TARGETS)"