mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 17:53:45 +01:00
Update valgrind Makefile target
This commit is contained in:
parent
dfd2f5bec7
commit
1f457ed31e
8
Makefile
8
Makefile
@ -14,6 +14,10 @@ SOURCE = $(OSOURCE) database-sqlite.c
|
||||
CPPFLAGS += -DWITH_SQLITE
|
||||
endif
|
||||
|
||||
ifneq ($(wildcard ${VALGRIND_SUPPRESSION_FILE}),)
|
||||
VALGRIND_ARGUMENTS += --suppressions=${VALGRIND_SUPPRESSION_FILE}
|
||||
endif
|
||||
|
||||
OBJECTS = $(patsubst %.c, %.o, $(SOURCE))
|
||||
DOBJECTS = $(patsubst %.c, %.do, $(SOURCE))
|
||||
|
||||
@ -72,8 +76,8 @@ ${PROJECT}.pc: ${PROJECT}.pc.in config.mk
|
||||
$(QUIET)cat ${PROJECT}.pc.in >> ${PROJECT}.pc
|
||||
|
||||
valgrind: debug
|
||||
$(QUIET)G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --tool=memcheck --leak-check=yes \
|
||||
--leak-resolution=high --show-reachable=yes ./${PROJECT}-debug
|
||||
$(QUIET)G_SLICE=always-malloc G_DEBUG=gc-friendly ${VALGRIND} ${VALGRIND_ARGUMENTS} \
|
||||
./${PROJECT}-debug
|
||||
|
||||
gdb: debug
|
||||
$(QUIET)cgdb ${PROJECT}-debug
|
||||
|
@ -18,8 +18,10 @@ WITH_SQLITE ?= 1
|
||||
PREFIX ?= /usr
|
||||
MANPREFIX ?= ${PREFIX}/share/man
|
||||
DESKTOPPREFIX ?= ${PREFIX}/share/applications
|
||||
|
||||
# plugin directory
|
||||
PLUGINDIR ?= ${PREFIX}/lib/zathura
|
||||
|
||||
# locale directory
|
||||
LOCALEDIR ?= ${PREFIX}/share/locale
|
||||
|
||||
@ -66,6 +68,12 @@ CC ?= gcc
|
||||
# strip
|
||||
SFLAGS ?= -s
|
||||
|
||||
# valgrind
|
||||
VALGRIND = valgrind
|
||||
VALGRIND_ARGUMENTS = --tool=memcheck --leak-check=yes --leak-resolution=high \
|
||||
--show-reachable=yes --log-file=zathura-valgrind.log
|
||||
VALGRIND_SUPPRESSION_FILE = zathura.suppression
|
||||
|
||||
# set to something != 0 if you want verbose build output
|
||||
VERBOSE ?= 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user