Fix to find rtmidi headers on newer distributions

This commit is contained in:
hirsch 2018-06-26 07:50:55 -04:00
parent 0dd05b57f7
commit 733e1e9a3f

View file

@ -1,4 +1,9 @@
# Newer distributions put rtmidi headers in subdirectory
RTMIDI_INC := $(shell ls -d /usr/include/rtmidi 2>/dev/null | tail -n 1)
ifneq (,$(RTMIDI_INC))
INCDIRS = -I/usr/include/rtmidi
endif
SRC = $(wildcard *.cpp) SRC = $(wildcard *.cpp)
OBJ = $(subst .cpp,.o,$(SRC)) OBJ = $(subst .cpp,.o,$(SRC))