File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ BINDIR=bin/
99
1010# append -DWITH_WIIUSE to compile with WIIUSE support!
1111# append -DNOSOUND to compile WITHOUT sound support
12- CC =g++ -DDATADIR="\"$(DATADIR ) \""
1312STRIP =strip
13+ CXX? =g++
1414
15- CFLAGS + =-c - Wall ` sdl-config --cflags `
15+ CXXFLAGS + =-Wall ` sdl-config --cflags ` -DDATADIR="\" $( DATADIR ) \""
1616
1717# append -lwiiuse to compile with WIIUSE support
1818# remove -lSDL_mixer if compiling with -DNOSOUND
@@ -26,11 +26,11 @@ EXECUTABLE=sdl-ball
2626all : $(SOURCES ) $(EXECUTABLE )
2727
2828$(EXECUTABLE ) : $(OBJECTS )
29- $(CC ) $(LDFLAGS ) $(OBJECTS ) $(LIBS ) -o $@
29+ $(CXX ) $(LDFLAGS ) $(OBJECTS ) $(LIBS ) -o $@
3030 $(STRIP ) $@
3131
3232.cpp.o :
33- $(CC ) $( CFLAGS ) $< -o $@
33+ $(CXX ) -c $( CXXFLAGS ) $< -o $@
3434
3535clean :
3636 rm -f * .o sdl-ball
You can’t perform that action at this time.
0 commit comments