From 2dfc564edc0c89c4a8de7e384806aae5d593426d Mon Sep 17 00:00:00 2001 From: cbdev Date: Fri, 2 Mar 2018 03:20:11 +0100 Subject: Move backend implementations to subdirectory --- backends/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 backends/Makefile (limited to 'backends/Makefile') 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) -- cgit v1.2.3