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-piface install: all cp camotion-piface /usr/local/bin/ camotion-piface: $(OBJ) $(LINK.cpp) $(OBJ) $(OUTPUT_OPTION) $(LDLIBS) clean: rm -f $(OBJ) rm -f camotion-piface