948d8e1a64c44da78201352df4b3f223a3b1c953
[iotcloud.git] / version2 / src / others / RPi / 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-c:
13         #g++ -c LifxLightBulb.cpp -o ./LifxLightBulb.o -Wall -O3 -g -I. -Wno-unused-variable -std=c++11 -pthread -pg
14         g++ ./LifxLightBulb.cpp ./socket/Socket.cpp -o ./LifxLightBulb.o -Wall -Wno-unused-variable --std=c++11 -pthread -pg -I. -I./socket
15
16 compile:
17         rm -f *.bin
18         particle compile raspberry-pi
19         #particle compile photon
20         
21         
22 flash:
23         particle flash Pi-1 raspberry-pi*.bin
24
25 PHONY += clean
26 clean:
27         rm -f *.bin
28
29 PHONY += mrclean
30 mrclean: clean
31         rm -rf ../docs
32
33 tabbing:
34         uncrustify -c C.cfg --no-backup *.cpp
35         uncrustify -c C.cfg --no-backup *.h
36
37 wc:
38         wc *.cpp *.h
39
40 .PHONY: $(PHONY)