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

# The five monitor widgets used, each with its own copy of
# core/xframe_core.h (byte-identical, include-guarded).
WIDGET_DIR = ../../../widgets/components
INCLUDES = -I$(WIDGET_DIR)/XStackBar \
           -I$(WIDGET_DIR)/XHistoryGraph \
           -I$(WIDGET_DIR)/XUsageBar \
           -I$(WIDGET_DIR)/XSysBox \
           -I$(WIDGET_DIR)/XDonutGauge

memory-monitor: main.cpp
	$(CXX) $(CXXFLAGS) $(INCLUDES) main.cpp -lX11 -o memory-monitor

clean:
	rm -f memory-monitor

.PHONY: clean
