rntviewer/Makefile

17 lines
572 B
Makefile
Raw Normal View History

2024-07-10 15:04:11 +00:00
CXX = clang++
2024-07-10 17:38:16 +00:00
CFLAGS = -Wall -Wextra -pedantic
INC = -Ithird_party -Ithird_party/imgui
LIBS = -lglfw -lROOTNTuple
MOLD = mold -run
2024-07-10 15:04:11 +00:00
2024-07-10 17:38:16 +00:00
all: build/imgui.o d
build/imgui.o: src/imgui_inc.cpp third_party/imgui/imgui.h
2024-07-10 17:38:16 +00:00
$(CXX) -O3 -fPIC -c -Ithird_party/imgui $< -o $@
2024-07-10 15:04:11 +00:00
d:
$(MOLD) $(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)
2024-07-10 15:04:11 +00:00
r:
$(MOLD) $(CXX) -O2 $(CFLAGS) $(INC) -o rntviewer src/rntviewer.cpp $(shell root-config --cflags --libs) $(LIBS)