CXX      ?= g++
CXXFLAGS ?= -std=c++17 -O2 -Wall -Wextra

# One -I per widget dir: each widget header includes "core/xframe_core.h"
# from its own component directory.
INCLUDES := -I../../../widgets/components/XCoreGrid \
            -I../../../widgets/components/XArcGauge \
            -I../../../widgets/components/XHistoryGraph \
            -I../../../widgets/components/XLoadBadge \
            -I../../../widgets/components/XUsageBar

LDFLAGS  := -lX11

all: cpu-dashboard

cpu-dashboard: main.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) main.cpp -o cpu-dashboard $(LDFLAGS)

clean:
	rm -f cpu-dashboard

.PHONY: all clean
