From 2deebf9056528ef6d12cbbd0b56411741676a062 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sat, 24 Feb 2018 05:51:52 +0100 Subject: Add and document sanitizer/valgrind makefile targets --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'makefile') 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) -- cgit v1.2.3