mirror of
https://gittea.dev/nova/th.git
synced 2025-10-21 10:20:15 -04:00
profiling target added
This commit is contained in:
4
Makefile
4
Makefile
@@ -3,6 +3,7 @@ CFLAGS := -Wall -Wextra -O2 -flto=auto
|
|||||||
CURSES := -lncursesw -ltinfow #utf8 support
|
CURSES := -lncursesw -ltinfow #utf8 support
|
||||||
#CURSES := -lncurses -tinfo #no utf8
|
#CURSES := -lncurses -tinfo #no utf8
|
||||||
CFLAGS_DEBUG := $(CFLAGS) -g
|
CFLAGS_DEBUG := $(CFLAGS) -g
|
||||||
|
CFLAGS_PROFILE := $(CFLAGS) -pg
|
||||||
GDB := gdb --tui ./th
|
GDB := gdb --tui ./th
|
||||||
VALGRIND := valgrind --leak-check=full --track-origins=yes --show-leak-kinds=all --log-fd=9 9>>valgrind.log ./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
|
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)
|
$(CC) ./main.c -o th -std=c89 $(CFLAGS_DEBUG) $(CURSES)
|
||||||
$(GDB)
|
$(GDB)
|
||||||
|
|
||||||
|
p:
|
||||||
|
$(CC) ./main.c -o th -std=c89 $(CFLAGS_PROFILE) $(CURSES)
|
||||||
|
|
||||||
v:
|
v:
|
||||||
$(CC) ./main.c -o th -std=c89 $(CFLAGS_DEBUG) $(CURSES)
|
$(CC) ./main.c -o th -std=c89 $(CFLAGS_DEBUG) $(CURSES)
|
||||||
$(VALGRIND)
|
$(VALGRIND)
|
||||||
|
Reference in New Issue
Block a user