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