diff options
Diffstat (limited to 'rtmidi-config')
| -rwxr-xr-x | rtmidi-config | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rtmidi-config b/rtmidi-config new file mode 100755 index 0000000..f8b976e --- /dev/null +++ b/rtmidi-config @@ -0,0 +1,19 @@ +#! /bin/sh +if (test "x$#" != "x1") ; then + echo "Usage: $0 [--libs | --cxxflags | --cppflags]" + exit; +fi + +LIBRARY="-framework CoreMIDI -framework CoreFoundation -framework CoreAudio" +CXXFLAGS="-g -Wall -Wextra" +CPPFLAGS=" -D__RTMIDI_DEBUG__ -D__MACOSX_CORE__" + +if (test "x$1" = "x--libs") ; then + echo "$LIBRARY -lrtmidi" +elif (test "x$1" = "x--cxxflags") ; then + echo "$CXXFLAGS" +elif (test "x$1" = "x--cppflags") ; then + echo "$CPPFLAGS" +else + echo "Unknown option: $1" +fi |
