From 8fade0c4a820877208fffcc475e2b814fc481254 Mon Sep 17 00:00:00 2001 From: nova Date: Thu, 2 Oct 2025 20:15:14 +0200 Subject: [PATCH] profiling target added --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 3629459..d7f27c7 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ CFLAGS := -Wall -Wextra -O2 -flto=auto CURSES := -lncursesw -ltinfow #utf8 support #CURSES := -lncurses -tinfo #no utf8 CFLAGS_DEBUG := $(CFLAGS) -g +CFLAGS_PROFILE := $(CFLAGS) -pg GDB := gdb --tui ./th VALGRIND := valgrind --leak-check=full --track-origins=yes --show-leak-kinds=all --log-fd=9 9>>valgrind.log ./th HELGRIND := valgrind --tool=helgrind --log-fd=9 9>>helgrind.log ./th @@ -15,6 +16,9 @@ d: $(CC) ./main.c -o th -std=c89 $(CFLAGS_DEBUG) $(CURSES) $(GDB) +p: + $(CC) ./main.c -o th -std=c89 $(CFLAGS_PROFILE) $(CURSES) + v: $(CC) ./main.c -o th -std=c89 $(CFLAGS_DEBUG) $(CURSES) $(VALGRIND)