Select Git revision
ftomi authored
Makefile 573 B
CC = g++
# -g or nothing
DEBUG =
PROJECT = minimatrixrpi
COMPONENTS = animation mxframe spiframe spisender matrix_server ola_receiver
COMPONENTS_O = $(addsuffix .o,$(COMPONENTS))
LIBS = -lwiringPi `pkg-config --cflags --libs libola` -lpthread
all: $(PROJECT)
%.o: %.cpp %.h
$(CC) -c $(DEBUG) $<
$(PROJECT).o: $(PROJECT).cpp
$(CC) -c $(DEBUG) $<
$(PROJECT): $(PROJECT).o $(COMPONENTS_O)
$(CC) $^ $(LIBS) $(DEBUG) -o $@
chmod +x $(PROJECT)
clean:
rm -f $(PROJECT) *.o
install:
sudo cp minimatrixrpi /usr/bin/
sudo cp minimatrixrpi.service /etc/systemd/system/