aboutsummaryrefslogtreecommitdiffhomepage
path: root/makefile
blob: 6819f7fbf43edb8c6c8139ed01e2cef8e2ba8c94 (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
.PHONY: clean
BACKENDS = artnet.so midi.so osc.so
OBJS = config.o backend.o plugin.o
PLUGINDIR = "\"./\""

LDLIBS = -lasound -ldl
CFLAGS ?= -g -Wall

midimonster: CFLAGS += -rdynamic -DPLUGINS=$(PLUGINDIR)
%.so: CFLAGS += -fPIC
%.so: LDFLAGS += -shared

%.so :: %.c %.h
	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)

all: midimonster $(BACKENDS)

midimonster: midimonster.h $(OBJS)

clean:
	$(RM) midimonster
	$(RM) $(OBJS)
	$(RM) $(BACKENDS)

run:
	valgrind --leak-check=full --show-leak-kinds=all ./midimonster