diff options
author | cbdev <cb@cbcdn.com> | 2018-03-24 11:01:03 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2018-03-24 11:01:03 +0100 |
commit | 9a70fb468c78706cabf62ede9b5a67b822129d91 (patch) | |
tree | 19dab1391702adfccce460e519ccb0b1640a8e67 /backends | |
parent | 37f0119fa2a53c44809043846620e266da92d991 (diff) | |
download | midimonster-9a70fb468c78706cabf62ede9b5a67b822129d91.tar.gz midimonster-9a70fb468c78706cabf62ede9b5a67b822129d91.tar.bz2 midimonster-9a70fb468c78706cabf62ede9b5a67b822129d91.zip |
Work around OSX differences in Makefile
Diffstat (limited to 'backends')
-rw-r--r-- | backends/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/backends/Makefile b/backends/Makefile index 85fe152..446ad70 100644 --- a/backends/Makefile +++ b/backends/Makefile @@ -1,9 +1,21 @@ .PHONY: all clean -BACKENDS = artnet.so midi.so osc.so loopback.so evdev.so sacn.so +LINUX_BACKENDS = midi.so evdev.so +BACKENDS = artnet.so osc.so loopback.so sacn.so + +SYSTEM := $(shell uname -s) CFLAGS += -fPIC -I../ LDFLAGS += -shared +# Build Linux backends if possible +ifeq ($(SYSTEM),Linux) +BACKENDS += $(LINUX_BACKENDS) +endif +# Convince OSX that missing functions are present at runtime +ifeq ($(SYSTEM),Darwin) +LDFLAGS += -undefined dynamic_lookup +endif + midi.so: LDLIBS = -lasound evdev.so: CFLAGS += $(shell pkg-config --cflags libevdev) evdev.so: LDLIBS = $(shell pkg-config --libs libevdev) |