aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/Makefile
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-03-02 03:20:11 +0100
committercbdev <cb@cbcdn.com>2018-03-02 03:20:11 +0100
commit2dfc564edc0c89c4a8de7e384806aae5d593426d (patch)
treeb1636ec14d3f35ed88b3f079e0c3d168f77b17b9 /backends/Makefile
parentbe5df1c4e639ca6a7cd70a3122039a1de4588e28 (diff)
downloadmidimonster-2dfc564edc0c89c4a8de7e384806aae5d593426d.tar.gz
midimonster-2dfc564edc0c89c4a8de7e384806aae5d593426d.tar.bz2
midimonster-2dfc564edc0c89c4a8de7e384806aae5d593426d.zip
Move backend implementations to subdirectory
Diffstat (limited to 'backends/Makefile')
-rw-r--r--backends/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/backends/Makefile b/backends/Makefile
new file mode 100644
index 0000000..85fe152
--- /dev/null
+++ b/backends/Makefile
@@ -0,0 +1,17 @@
+.PHONY: all clean
+BACKENDS = artnet.so midi.so osc.so loopback.so evdev.so sacn.so
+
+CFLAGS += -fPIC -I../
+LDFLAGS += -shared
+
+midi.so: LDLIBS = -lasound
+evdev.so: CFLAGS += $(shell pkg-config --cflags libevdev)
+evdev.so: LDLIBS = $(shell pkg-config --libs libevdev)
+
+%.so :: %.c %.h
+ $(CC) $(CFLAGS) $(LDLIBS) $< -o $@ $(LDFLAGS)
+
+all: $(BACKENDS)
+
+clean:
+ $(RM) $(BACKENDS)