forked from xxyyttxx/Quadcopter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile
26 lines (21 loc) · 865 Bytes
/
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
#for keil5 project
create-stdp-proj:
if [ ! -d "STM32F4xx_DSP_StdPeriph_Lib_V1.8.0" ]; \
then \
echo "$$PWD/STM32F4xx_DSP_StdPeriph_Lib_V1.8.0 SHOULD exist, please download and unzip the library package."; \
elif [ -d "stdperiph" ]; then \
echo "$$PWD/stdperiph SHOULD NOT exist."; \
elif [ -d "project" ]; then \
echo "$$PWD/project SHOULD NOT exist."; \
else \
chmod u+x Lib2Proj.sh \
./Lib2Proj.sh; \
fi
zip: clean
zip -x "*/\.*" -x "\.*" -r Quadcopter.zip firmware project stdperiph ucosii
clean:
rm -f project/*/Objects/* project/*/Listings/* project/*/DebugConfig/* project/*/*.uvguix.* project/*/*.scvd
rm -f Quadcopter.zip
clean_root:
rm -f *.bak *.ddk *.edk *.lst *.lnp *.mpf *.mpj *.obj *.omf *.plg *.rpt *.tmp *.__i *.crf *.o *.d *.axf *.tra *.dep JLinkLog.txt *.iex *.htm *.sct *.map
.PHONY: clean, clean_root, create-stdp-proj