aboutsummaryrefslogtreecommitdiffhomepage
path: root/makefile
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-02-24 05:51:52 +0100
committercbdev <cb@cbcdn.com>2018-02-24 05:51:52 +0100
commit2deebf9056528ef6d12cbbd0b56411741676a062 (patch)
tree4c4b452fb22c444c81b10c077ec8c40610a0b4e4 /makefile
parent9a3969b21825838a09460acfcdf18d49db944e44 (diff)
downloadmidimonster-2deebf9056528ef6d12cbbd0b56411741676a062.tar.gz
midimonster-2deebf9056528ef6d12cbbd0b56411741676a062.tar.bz2
midimonster-2deebf9056528ef6d12cbbd0b56411741676a062.zip
Add and document sanitizer/valgrind makefile targets
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/makefile b/makefile
index d759a7c..b97c8d8 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-.PHONY: clean
+.PHONY: all clean run sanitize
BACKENDS = artnet.so midi.so osc.so loopback.so evdev.so
OBJS = config.o backend.o plugin.o
PLUGINDIR = "\"./\""
@@ -30,3 +30,7 @@ clean:
run:
valgrind --leak-check=full --show-leak-kinds=all ./midimonster
+
+sanitize: CC = clang
+sanitize: CFLAGS = -g -Wall -Wpedantic -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer
+sanitize: midimonster $(BACKENDS)