X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6656ccb149683950e871b5022d2b88b03712165..60c0a8dbf449725ab81a0b26ca2538625c81c359:/samples/opengl/cube/makefile.unx?ds=inline 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)