CFLAGS = -g -std=c++20 -O2 -DBCM2835_HAVE_LIBCAP LFLAGS = -lbcm2835 TARGET = spi default: $(TARGET) .PHONY = clean %: %.cpp g++ $< -o $@ $(CFLAGS) $(LFLAGS) run: default sudo ./$(TARGET) clean: rm $(TARGET)