From b6d293534278c6733fe0bde7d3de7cd7f8fa1621 Mon Sep 17 00:00:00 2001 From: dylanbenzi Date: Sun, 15 Nov 2026 15:25:06 -0500 Subject: [PATCH] update makefile --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4921ef8..e397fee 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,13 @@ LED_DIR = external/rpi-rgb-led-matrix -CXXFLAGS += -I$(LED_DIR)/include +CXXFLAGS += -std=c++17 -Wall -I$(LED_DIR)/include LDFLAGS += -L$(LED_DIR)/lib -lrgbmatrix -lrt -lm -lpthread -app: main.cpp $(LED_DIR)/lib/librgbmatrix.a - $(CXX) $(CXXFLAGS) $< -o $@ $(LDFLAGS) +SRCS = main.cpp FlightWall.cpp LEDMatrix.cpp Network.cpp SBS1Decoder.cpp TrackedAircraft.h + +.PHONY: clean + +app: $(SRCS) $(LED_DIR)/lib/librgbmatrix.a + $(CXX) $(CXXFLAGS) main.cpp -o $@ $(LDFLAGS) $(LED_DIR)/lib/librgbmatrix.a: $(MAKE) -C $(LED_DIR)/lib