summaryrefslogtreecommitdiff
path: root/audio/stymulator/files/patch-stsoundlib_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/stymulator/files/patch-stsoundlib_Makefile')
-rw-r--r--audio/stymulator/files/patch-stsoundlib_Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/audio/stymulator/files/patch-stsoundlib_Makefile b/audio/stymulator/files/patch-stsoundlib_Makefile
new file mode 100644
index 000000000000..12d75fa3e04f
--- /dev/null
+++ b/audio/stymulator/files/patch-stsoundlib_Makefile
@@ -0,0 +1,38 @@
+--- stsoundlib/Makefile.orig 2016-07-26 16:04:42 UTC
++++ stsoundlib/Makefile
+@@ -1,28 +1,28 @@
+-CC = g++
++CXX ?= g++
+ AR = ar cr
+ RM = rm -f
+
+ LIB = digidrum.o Ymload.o Ym2149Ex.o YmMusic.o YmUserInterface.o
+
+-CFLAGS = -Wall
++CFLAGS ?= -Wall
+
+ libym.a: $(LIB)
+ $(AR) libym.a $(LIB)
+
+ digidrum.o: digidrum.cpp YmTypes.h
+- $(CC) -c digidrum.cpp
++ $(CXX) $(CXXFLAGS) -c digidrum.cpp
+
+ Ym2149Ex.o: Ym2149Ex.cpp Ym2149Ex.h YmTypes.h
+- $(CC) -c Ym2149Ex.cpp
++ $(CXX) $(CXXFLAGS) -c Ym2149Ex.cpp
+
+ Ymload.o: Ymload.cpp YmMusic.h lzh/lzh.h
+- $(CC) -c Ymload.cpp
++ $(CXX) $(CXXFLAGS) -c Ymload.cpp
+
+ YmMusic.o: YmMusic.cpp YmMusic.h
+- $(CC) -c YmMusic.cpp
++ $(CXX) $(CXXFLAGS) -c YmMusic.cpp
+
+ YmUserInterface.o: YmUserInterface.cpp StSoundLibrary.h YmMusic.h
+- $(CC) -c YmUserInterface.cpp
++ $(CXX) $(CXXFLAGS) -c YmUserInterface.cpp
+
+ clean:
+ $(RM) *~ *.o *.a