X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d969af82fc9a94ce02321111c5a7c306157d19a7..afbe906abdf9aa69a56571b8b20b095351dd8f34:/samples/opengl/cube/makefile.unx diff --git a/samples/opengl/cube/makefile.unx b/samples/opengl/cube/makefile.unx index f40497b3e5..6c2b07cdc1 100644 --- a/samples/opengl/cube/makefile.unx +++ b/samples/opengl/cube/makefile.unx @@ -15,7 +15,7 @@ OPENGL_LIBS=-lGL -lGLU PROGRAM=cube -CC = gcc +CXX = $(shell wx-config --cxx) OBJECTS = $(PROGRAM).o @@ -24,12 +24,12 @@ OBJECTS = $(PROGRAM).o .SUFFIXES: .o .cpp .cpp.o : - $(CC) -c `wx-config --cflags` -o $@ $< + $(CXX) -c `wx-config --cxxflags` -o $@ $< all: $(PROGRAM) $(PROGRAM): $(OBJECTS) - $(CC) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS) + $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS) clean: rm -f *.o $(PROGRAM)