aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/Makefile
diff options
context:
space:
mode:
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)