From 733e1e9a3feb1d9ba5d3f066fcec6b2f5858b015 Mon Sep 17 00:00:00 2001 From: hirsch Date: Tue, 26 Jun 2018 07:50:55 -0400 Subject: [PATCH] Fix to find rtmidi headers on newer distributions --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 5e50887..1da4422 100644 --- a/Makefile +++ b/Makefile @@ -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) OBJ = $(subst .cpp,.o,$(SRC))