blob: 4a85eab92b098a1fb35132181ab05f466a9a962d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
.PHONY: all clean run sanitize backends
OBJS = config.o backend.o plugin.o
PLUGINDIR = "\"./backends/\""
CFLAGS ?= -g -Wall
LDLIBS = -ldl
CFLAGS += -DPLUGINS=$(PLUGINDIR)
#CFLAGS += -DDEBUG
LDFLAGS += -Wl,-export-dynamic
all: midimonster backends
backends:
$(MAKE) -C backends
midimonster: midimonster.c $(OBJS)
clean:
$(RM) midimonster
$(RM) $(OBJS)
$(MAKE) -C backends clean
run:
valgrind --leak-check=full --show-leak-kinds=all ./midimonster
sanitize: export CC = clang
sanitize: export CFLAGS = -g -Wall -Wpedantic -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer
sanitize: midimonster backends
|