6502-spi/Makefile

20 lines
224 B
Makefile
Raw Permalink Normal View History

2023-10-30 22:23:12 +01:00
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)