Completing firmware for the temperature/humidity, IR, and magnetic sensors for both...
[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         
20 flash:
21         particle flash Pi-1 raspberry-pi*.bin
22
23 PHONY += clean
24 clean:
25         rm -f *.bin
26
27 PHONY += mrclean
28 mrclean: clean
29         rm -rf ../docs
30
31 tabbing:
32         uncrustify -c C.cfg --no-backup *.cpp
33         uncrustify -c C.cfg --no-backup *.h
34
35 wc:
36         wc *.cpp *.h
37
38 .PHONY: $(PHONY)