# Makefile — quartic matrix model HMC code (single-file teaching version)
#
#   make          builds ./quartic_hmc
#   make clean    removes the binary
#
# Same toolchain as omnicode: clang++ + Armadillo via pkg-config
# (macOS, if a fresh machine ever needs it: brew install armadillo pkg-config)

CXX      := clang++
CXXFLAGS := -O2 -std=c++17 $(shell pkg-config --cflags armadillo)
LDFLAGS  := $(shell pkg-config --libs armadillo)

TARGET := quartic_hmc
SRC    := quartic_hmc.cpp

.PHONY: all clean
all: $(TARGET)

$(TARGET): $(SRC)
	$(CXX) $(CXXFLAGS) $(SRC) -o $@ $(LDFLAGS)

clean:
	rm -f $(TARGET)
