From 97eec36f8e9ddf0ebb07a810f19ce6da2a92f1cc Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 30 Oct 2018 16:21:29 +0000 Subject: [PATCH] makefile: Add helper to run in gdb and valgrind Signed-off-by: Nicolas Dufresne --- Makefile.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 050aa6aec..19e3b5629 100644 --- a/Makefile.in +++ b/Makefile.in @@ -11,7 +11,13 @@ run: all SPA_PLUGIN_DIR=build/spa/plugins \ PIPEWIRE_MODULE_DIR=build \ PIPEWIRE_CONFIG_FILE=build/src/daemon/pipewire.conf \ - build/src/daemon/pipewire + $(DBG) ./build/src/daemon/pipewire + +gdb: + $(MAKE) run DBG=gdb + +valgrind: + $(MAKE) run DBG="DISABLE_RTKIT=1 valgrind" monitor: all SPA_PLUGIN_DIR=build/spa/plugins \