diff options
-rw-r--r-- | artnet.c | 2 | ||||
-rw-r--r-- | makefile | 11 |
2 files changed, 7 insertions, 6 deletions
@@ -310,7 +310,7 @@ static int artnet_handle(size_t num, managed_fd* fds){ static int artnet_start(){ size_t n, u, p; - int rv = 1i, flags; + int rv = 1, flags; instance** inst = NULL; artnet_instance_data* data_a, *data_b; artnet_instance_id id = { @@ -1,17 +1,18 @@ .PHONY: clean -BACKENDS = artnet.so midi.so osc.so +BACKENDS = artnet.so midi.so osc.so loopback.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 +midimonster: LDLIBS = -ldl +midimonster: CFLAGS += -rdynamic -DPLUGINS=$(PLUGINDIR) +midi.so: LDLIBS = -lasound + %.so :: %.c %.h - $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) + $(CC) $(CFLAGS) $(LDLIBS) $< -o $@ $(LDFLAGS) all: midimonster $(BACKENDS) |