aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/Makefile
diff options
context:
space:
mode:
authorFlorian Hülsmann <fh@cbix.de>2022-03-31 08:23:05 +0200
committerFlorian Hülsmann <fh@cbix.de>2022-03-31 08:40:52 +0200
commit640255dc07a24476f0c62338e7fa013e3a93dcf7 (patch)
tree9dcd2ccecb84e4b1fc5384761c048ac9cff712c7 /backends/Makefile
parent25f6a81442111559269bc30f3625b15c24f372d5 (diff)
downloadmidimonster-640255dc07a24476f0c62338e7fa013e3a93dcf7.tar.gz
midimonster-640255dc07a24476f0c62338e7fa013e3a93dcf7.tar.bz2
midimonster-640255dc07a24476f0c62338e7fa013e3a93dcf7.zip
Use C++11 for OLA backend; rename CPPFLAGS → CXXFLAGS
Diffstat (limited to 'backends/Makefile')
-rw-r--r--backends/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/Makefile b/backends/Makefile
index 35782ab..72ba776 100644
--- a/backends/Makefile
+++ b/backends/Makefile
@@ -18,11 +18,11 @@ SYSTEM := $(shell uname -s)
# Generate debug symbols unless overridden
CFLAGS ?= -g
-CPPFLAGS ?= -g
+CXXFLAGS ?= -g
# All backends are shared libraries
CFLAGS += -fPIC -I../ -Wall -Wpedantic
-CPPFLAGS += -fPIC -I../
+CXXFLAGS += -fPIC -I../
LDFLAGS += -shared
# Build Linux backends if possible
@@ -82,7 +82,7 @@ midi.so: LDLIBS = -lasound
evdev.so: CFLAGS += $(shell pkg-config --cflags libevdev || echo "-DBUILD_ERROR=\"Missing pkg-config data for libevdev\"")
evdev.so: LDLIBS = $(shell pkg-config --libs libevdev || echo "-DBUILD_ERROR=\"Missing pkg-config data for libevdev\"")
ola.so: LDLIBS = -lola
-ola.so: CPPFLAGS += -Wno-write-strings
+ola.so: CXXFLAGS += -std=c++11 -Wno-write-strings
# The pkg-config name for liblua5.3 is subject to discussion. I prefer 'lua5.3' (which works on Debian and OSX),
# but Arch requires 'lua53' which works on Debian, too, but breaks on OSX.
@@ -108,7 +108,7 @@ python.dll: LDLIBS += -L../ -lpython3
$(CC) $(CFLAGS) $< $(ADDITIONAL_OBJS) -o $@ $(LDFLAGS) $(LDLIBS)
%.so :: %.cpp %.h
- $(CXX) $(CPPFLAGS) $< $(ADDITIONAL_OBJS) -o $@ $(LDFLAGS) $(LDLIBS)
+ $(CXX) $(CXXFLAGS) $< $(ADDITIONAL_OBJS) -o $@ $(LDFLAGS) $(LDLIBS)
# This is the actual first named target, and thus the default
all: $(BACKEND_LIB) $(BACKENDS)