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