CXX = g++ CXXFLAGS = -O3 -std=c++17 -Wall -Wextra LIBS = -lSDL2 -lpthread TARGET = xbox_motor_control_cpp SRC = xbox_motor_control.cpp all: $(TARGET) $(TARGET): $(SRC) $(CXX) $(CXXFLAGS) $(SRC) $(LIBS) -o $(TARGET) clean: rm -f $(TARGET) .PHONY: all clean