1CPRE := @
2ifeq ($(V),1)
3CPRE :=
4VERB := --verbose
5endif
6
7.PHONY:startup
8startup: all
9
10all:
11	@echo "Build Solution by $(BOARD) "
12	$(CPRE) scons $(VERB) --board=$(BOARD) -j4
13	@echo AOS SDK Done
14
15sdk:
16	$(CPRE) aos sdk
17
18.PHONY:clean
19clean:
20	$(CPRE) scons -c
21ifeq ($(OS), Windows_NT)
22	$(CPRE) if exist aos_sdk rmdir /s /q aos_sdk
23	$(CPRE) if exist binary rmdir /s /q binary
24	$(CPRE) if exist out rmdir /s /q out
25	$(CPRE) if exist aos.elf del /f /q aos.elf
26	$(CPRE) if exist aos.map del /f /q aos.map
27else
28	$(CPRE) rm -rf aos_sdk binary out aos.elf aos.map
29endif
30