CXX = g++ CXXFLAGS = -Wall -Wextra -Werror -pedantic -std=c++1y -g3 -ggdb3 SRC = main.cpp mainclass.cpp LDLIBS = -lpifacedigital -lmcp23s17 OBJ = $(addprefix src/, $(SRC:.cpp=.o)) all: camotion-pifaceo install: all cp camotion-pifaceo /usr/local/bin/ camotion-pifaceo: $(OBJ) $(LINK.cpp) $(OBJ) $(OUTPUT_OPTION) $(LDLIBS) clean: rm -f $(OBJ) rm -f camotion-pifaceo