# Service Dashboard (C++) -- XMonitorGrid of live service checks.
#
# Build: make
# Run:   DISPLAY=:119 ./service-dashboard   (Xvfb or a real X server)
#        Close the window to quit.
#
# The include paths mirror the widget demo build line
# (widgets/components/XMonitorGrid/CMakeLists.txt + the flat example
# in examples/XMonitorGrid.cpp): XMonitorGrid.h includes
# "core/xframe_core.h" (widgets/core/) and
# "../XMonitorButton/XMonitorGrid.h"'s sibling XMonitorButton.h.

REPO_ROOT := /root/monitor-wt/service-dashboard/lightgui
CXX      := g++
CXXFLAGS := -std=c++17 -O2 -Wall -Wextra -I$(REPO_ROOT)/widgets/components -I$(REPO_ROOT)/widgets
LDLIBS   := -lX11

TARGET := service-dashboard

all: $(TARGET)

$(TARGET): main.cpp
	$(CXX) $(CXXFLAGS) main.cpp $(LDLIBS) -o $@

clean:
	rm -f $(TARGET)

.PHONY: all clean
