Skip to content

Commit 811592c

Browse files
committed
Merge branch 'master' of ssh://github.com/cbdevnet/midimonster
2 parents e7e23f4 + d0d9699 commit 811592c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ install:
101101
install -m 0644 configs/* "$(DESTDIR)$(EXAMPLES)"
102102
ifdef DEFAULT_CFG
103103
# Only install the default configuration if it is not already present to avoid overwriting it
104-
ifeq (,$(wildcard $(DEFAULT_CFG)))
104+
ifeq (,$(wildcard $(DESTDIR)$(DEFAULT_CFG)))
105105
install -Dm 0644 monster.cfg "$(DESTDIR)$(DEFAULT_CFG)"
106106
endif
107107
endif

backends/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ SYSTEM := $(shell uname -s)
1818

1919
# Generate debug symbols unless overridden
2020
CFLAGS ?= -g
21-
CPPFLAGS ?= -g
21+
CXXFLAGS ?= -g
2222

2323
# All backends are shared libraries
2424
CFLAGS += -fPIC -I../ -Wall -Wpedantic
25-
CPPFLAGS += -fPIC -I../
25+
CXXFLAGS += -fPIC -I../
2626
LDFLAGS += -shared
2727

2828
# Build Linux backends if possible
@@ -82,7 +82,7 @@ midi.so: LDLIBS = -lasound
8282
evdev.so: CFLAGS += $(shell pkg-config --cflags libevdev || echo "-DBUILD_ERROR=\"Missing pkg-config data for libevdev\"")
8383
evdev.so: LDLIBS = $(shell pkg-config --libs libevdev || echo "-DBUILD_ERROR=\"Missing pkg-config data for libevdev\"")
8484
ola.so: LDLIBS = -lola
85-
ola.so: CPPFLAGS += -Wno-write-strings
85+
ola.so: CXXFLAGS += -std=c++11 -Wno-write-strings
8686

8787
# The pkg-config name for liblua5.3 is subject to discussion. I prefer 'lua5.3' (which works on Debian and OSX),
8888
# but Arch requires 'lua53' which works on Debian, too, but breaks on OSX.
@@ -108,7 +108,7 @@ python.dll: LDLIBS += -L../ -lpython3
108108
$(CC) $(CFLAGS) $< $(ADDITIONAL_OBJS) -o $@ $(LDFLAGS) $(LDLIBS)
109109

110110
%.so :: %.cpp %.h
111-
$(CXX) $(CPPFLAGS) $< $(ADDITIONAL_OBJS) -o $@ $(LDFLAGS) $(LDLIBS)
111+
$(CXX) $(CXXFLAGS) $< $(ADDITIONAL_OBJS) -o $@ $(LDFLAGS) $(LDLIBS)
112112

113113
# This is the actual first named target, and thus the default
114114
all: $(BACKEND_LIB) $(BACKENDS)

0 commit comments

Comments
 (0)