Tweaked phone app for testbed experiment; tweaked testbed files
[iotcloud.git] / version2 / src / others / Magnetic-Sensor / Makefile
1 include common.mk
2
3 all: compile
4
5 # To run Particle, we need to install Particle CLI
6 # Please see: 
7 #       https://docs.particle.io/guide/getting-started/connect/photon/#install-the-particle-cli
8 monitor:
9         sudo chmod 666 /dev/ttyACM0
10         particle serial monitor
11
12 compile:
13         rm -f *.bin
14         particle compile photon
15         
16 flash0:
17         particle flash IoT-0 photon*.bin
18
19 flash1:
20         particle flash IoT-1 photon*.bin
21
22 flash2:
23         particle flash IoT-2 photon*.bin
24
25 flash14:
26         particle flash IoT-14 photon*.bin
27
28 PHONY += clean
29 clean:
30         rm -f *.bin
31
32 PHONY += mrclean
33 mrclean: clean
34         rm -rf ../docs
35
36 tabbing:
37         uncrustify -c C.cfg --no-backup *.cpp
38         uncrustify -c C.cfg --no-backup *.h
39
40 wc:
41         wc *.cpp *.h
42
43 .PHONY: $(PHONY)