include common.mk all: compile # To run Particle, we need to install Particle CLI # Please see: # https://docs.particle.io/guide/getting-started/connect/photon/#install-the-particle-cli monitor: sudo chmod 666 /dev/ttyACM0 particle serial monitor compile-c: #g++ -c LifxLightBulb.cpp -o ./LifxLightBulb.o -Wall -O3 -g -I. -Wno-unused-variable -std=c++11 -pthread -pg g++ ./LifxLightBulb.cpp ./socket/Socket.cpp -o ./LifxLightBulb.o -Wall -Wno-unused-variable --std=c++11 -pthread -pg -I. -I./socket compile: rm -f *.bin particle compile raspberry-pi flash: particle flash Pi-3 raspberry-pi*.bin PHONY += clean clean: rm -f *.bin PHONY += mrclean mrclean: clean rm -rf ../docs tabbing: uncrustify -c C.cfg --no-backup *.cpp uncrustify -c C.cfg --no-backup *.h wc: wc *.cpp *.h .PHONY: $(PHONY)