# Compiler and flags
CXX       = g++
CXXFLAGS  = -Iinclude
LDFLAGS   = -Llib -lhcnetsdk -lpthread -ldl

# Source files
SRC       = src/reboot.cpp src/snapshot.cpp

# Output binaries (one per source file)
TARGETS   = reboot snapshot

# Default target: build all
all: $(TARGETS)

# Build each binary
reboot: src/reboot.cpp
	$(CXX) $(CXXFLAGS) $< -o $@ $(LDFLAGS)

snapshot: src/snapshot.cpp
	$(CXX) $(CXXFLAGS) $< -o $@ $(LDFLAGS)

# Clean command
clean:
	rm -f $(TARGETS)
