File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ install:
101101 install -m 0644 configs/* " $( DESTDIR) $( EXAMPLES) "
102102ifdef 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)"
106106endif
107107endif
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ SYSTEM := $(shell uname -s)
1818
1919# Generate debug symbols unless overridden
2020CFLAGS ?= -g
21- CPPFLAGS ?= -g
21+ CXXFLAGS ?= -g
2222
2323# All backends are shared libraries
2424CFLAGS += -fPIC -I../ -Wall -Wpedantic
25- CPPFLAGS += -fPIC -I../
25+ CXXFLAGS += -fPIC -I../
2626LDFLAGS += -shared
2727
2828# Build Linux backends if possible
@@ -82,7 +82,7 @@ midi.so: LDLIBS = -lasound
8282evdev.so : CFLAGS += $(shell pkg-config --cflags libevdev || echo "-DBUILD_ERROR=\"Missing pkg-config data for libevdev\"")
8383evdev.so : LDLIBS = $(shell pkg-config --libs libevdev || echo "-DBUILD_ERROR=\"Missing pkg-config data for libevdev\"")
8484ola.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
114114all : $(BACKEND_LIB ) $(BACKENDS )
You can’t perform that action at this time.
0 commit comments