root2mat/Makefile
2026-08-25 15:26:33 -04:00

28 lines
430 B
Makefile

# Compiler
CXX := g++
# ROOT flags
ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs)
# Compilation flags
CXXFLAGS := -O2 -Wall -Wextra -std=c++17 $(ROOTCFLAGS)
# Target executable
TARGET := root2mat
# Source files
SOURCES := root2mat.cpp
# Default rule
all: $(TARGET)
$(TARGET): $(SOURCES)
$(CXX) $(CXXFLAGS) $^ -o $@ $(ROOTLIBS)
# Clean rule
clean:
rm -f $(TARGET)
.PHONY: all clean