rntviewer/Makefile
2024-07-10 19:38:16 +02:00

15 lines
513 B
Makefile

CXX = clang++
CFLAGS = -Wall -Wextra -pedantic
INC = -Ithird_party -Ithird_party/imgui
LIBS = -lglfw -lROOTNTuple
all: build/imgui.o d
build/imgui.o: src/imgui_inc.cpp
$(CXX) -O3 -fPIC -c -Ithird_party/imgui $< -o $@
d:
$(CXX) -DDEBUG -g -O0 $(CFLAGS) -fsanitize=undefined $(INC) $(shell root-config --cflags) -o rntviewer src/rntviewer.cpp build/imgui.o -lasan $(shell root-config --libs) $(LIBS)
r:
$(CXX) -O2 $(CFLAGS) $(INC) -o rntviewer src/rntviewer.cpp $(shell root-config --cflags --libs) $(LIBS)