aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2017-06-21 21:10:52 +0200
committercbdev <cb@cbcdn.com>2017-06-21 21:10:52 +0200
commitdb4e679769f54943997a1b5936551996d97b3855 (patch)
tree6ac2b14d3c52e30fd4449654c879877b3b0560b6
parentce46f0e9d232c9469c3626db82633071bc6446dc (diff)
downloadmidimonster-db4e679769f54943997a1b5936551996d97b3855.tar.gz
midimonster-db4e679769f54943997a1b5936551996d97b3855.tar.bz2
midimonster-db4e679769f54943997a1b5936551996d97b3855.zip
Fix typo, improve makefile
-rw-r--r--artnet.c2
-rw-r--r--makefile11
2 files changed, 7 insertions, 6 deletions
diff --git a/artnet.c b/artnet.c
index fe9efd9..98bb792 100644
--- a/artnet.c
+++ b/artnet.c
@@ -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 = {
diff --git a/makefile b/makefile
index 6819f7f..2101e96 100644
--- a/makefile
+++ b/makefile
@@ -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)