Bugfix for brushed motor support
[betaflight.git] / top_makefile
blob011327416247c44492e2687e8adf548195e33e81
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 += motolab
17 ALL_TARGETS += rmdo
18 ALL_TARGETS += ircfusionf3
20 CLEAN_TARGETS     := $(addprefix clean_, $(ALL_TARGETS)) 
22 clean_naze naze :                         opts := TARGET=NAZE
23 clean_cc3d cc3d:                          opts := TARGET=CC3D
24 clean_cc3d_opbl cc3d_opbl :               opts := TARGET=CC3D_OPBL
25 clean_nazepro nazepro :                   opts := TARGET=NAZE32PRO
26 clean_olimexino olimexino :               opts := TARGET=OLIMEXINO
27 clean_stm32f3discovery stm32f3discovery : opts := TARGET=STM32F3DISCOVERY
28 clean_chebuzzf3 chebuzzf3 :               opts := TARGET=CHEBUZZF3
29 clean_cjmcu cjmcu :                       opts := TARGET=CJMCU
30 clean_eustm32f103rc eustm32f103rc :       opts := TARGET=EUSTM32F103RC
31 clean_spracingf3 spracingf3 :             opts := TARGET=SPRACINGF3
32 clean_port103r port103r  :                opts := TARGET=PORT103R
33 clean_sparky sparky :                     opts := TARGET=SPARKY
34 clean_alienwiif1 alienwiif1 :             opts := TARGET=ALIENWIIF1
35 clean_alienwiif3 alienwiif3  :            opts := TARGET=ALIENWIIF3
36 clean_colibri_race colibri_race :         opts := TARGET=COLIBRI_RACE
37 clean_motolab motolab :                   opts := TARGET=MOTOLAB
38 clean_rmdo rmdo :                         opts := TARGET=RMDO
39 clean_ircfusionf3 ircfusionf3 :           opts := TARGET=IRCFUSIONF3
42 .PHONY: all clean
43 all: everything
44 clean: clean_everything
47 .PHONY: clean_everything
48 clean_everything: $(CLEAN_TARGETS)
50 .PHONY: everything
51 everything: $(ALL_TARGETS)
54 .PHONY:$(ALL_TARGETS)
55 $(ALL_TARGETS):
56         make -f Makefile $(opts)
58 .PHONY: $(CLEAN_TARGETS)
59 $(CLEAN_TARGETS):
60         make -f Makefile clean $(opts)
62 .PHONY: help
63 help:
64         @echo "This is your new top makefile. synopsis: make <target>" .
65         @echo "Valid targets":
66         @echo "all"
67         @echo "clean"
68         @echo "$(ALL_TARGETS)"
69         @echo "$(CLEAN_TARGETS)"