# System Overview - monitor app (Stage 2, btop-widget project)
CXX ?= g++
CXXFLAGS ?= -O2 -Wall -Wextra -std=c++17
ROOT = ../../..
INCLUDES = -I$(ROOT)/widgets/components/XSysBox \
           -I$(ROOT)/widgets/components/XLoadBadge \
           -I$(ROOT)/widgets/components/XDonutGauge \
           -I$(ROOT)/widgets/components/XUsageBar
LDLIBS = -lX11

all: system-overview

system-overview: main.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) main.cpp $(LDLIBS) -o system-overview

# Smoke test: build only (the GUI needs an X display; see README).
test: all
	@echo "system-overview: build OK"

clean:
	rm -f system-overview

.PHONY: all test clean
