diff options
author | cbdev <cb@cbcdn.com> | 2019-03-22 21:16:41 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-03-22 21:16:41 +0100 |
commit | 95f804bb5f8239d018e8fa440a2ca3e0111d4696 (patch) | |
tree | 3f01045d6c4ea66e311cf567d397dc2cfbd3ed8e /backends/Makefile | |
parent | 63643cc99a8d621a82111fd6d4d69f80379d2933 (diff) | |
download | midimonster-95f804bb5f8239d018e8fa440a2ca3e0111d4696.tar.gz midimonster-95f804bb5f8239d018e8fa440a2ca3e0111d4696.tar.bz2 midimonster-95f804bb5f8239d018e8fa440a2ca3e0111d4696.zip |
Implement an OLA backend (Fixes #14)
Diffstat (limited to 'backends/Makefile')
-rw-r--r-- | backends/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/backends/Makefile b/backends/Makefile index 446ad70..aef39c4 100644 --- a/backends/Makefile +++ b/backends/Makefile @@ -1,10 +1,12 @@ -.PHONY: all clean +.PHONY: all clean full +OPTIONAL_BACKENDS = ola.so LINUX_BACKENDS = midi.so evdev.so BACKENDS = artnet.so osc.so loopback.so sacn.so SYSTEM := $(shell uname -s) CFLAGS += -fPIC -I../ +CPPFLAGS += -fPIC -I../ LDFLAGS += -shared # Build Linux backends if possible @@ -19,11 +21,18 @@ endif midi.so: LDLIBS = -lasound evdev.so: CFLAGS += $(shell pkg-config --cflags libevdev) evdev.so: LDLIBS = $(shell pkg-config --libs libevdev) +ola.so: LDLIBS = -lola +ola.so: CPPFLAGS += -Wno-write-strings %.so :: %.c %.h $(CC) $(CFLAGS) $(LDLIBS) $< -o $@ $(LDFLAGS) +%.so :: %.cpp %.h + $(CXX) $(CPPFLAGS) $(LDLIBS) $< -o $@ $(LDFLAGS) + all: $(BACKENDS) +full: $(BACKENDS) $(OPTIONAL_BACKENDS) + clean: - $(RM) $(BACKENDS) + $(RM) $(BACKENDS) $(OPTIONAL_BACKENDS) |