6502-spi/Makefile
2023-10-30 22:23:12 +01:00

20 lines
224 B
Makefile

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)