X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6656ccb149683950e871b5022d2b88b03712165..6ba5438dda164146bf36ca729f8328332fae36b7:/samples/opengl/cube/makefile.unx?ds=sidebyside diff --git a/samples/opengl/cube/makefile.unx b/samples/opengl/cube/makefile.unx index b68dbefcf4..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 --cxxflags` -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)