X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d969af82fc9a94ce02321111c5a7c306157d19a7..841f23e18a9d9e3d987b60422c3a220571868337:/samples/opengl/penguin/makefile.unx diff --git a/samples/opengl/penguin/makefile.unx b/samples/opengl/penguin/makefile.unx index aaea80b74b..bc26127d08 100644 --- a/samples/opengl/penguin/makefile.unx +++ b/samples/opengl/penguin/makefile.unx @@ -11,19 +11,19 @@ OPENGL_LIBS=-lGL -lGLU #if you have old Mesa, try this: #OPENGL_LIBS=-lMesaGL -lMesaGLU -CPP = g++ -CC = gcc +CC = $(shell wx-config --cc) +CXX = $(shell wx-config --cxx) Penguin: penguin.o trackball.o lw.o - $(CPP) -o Penguin \ + $(CXX) -o Penguin \ penguin.o trackball.o lw.o \ `wx-config --libs` -lwx_gtk_gl $(OPENGL_LIBS) penguin.o: penguin.cpp - $(CPP) `wx-config --cflags` -I../../gtk -c penguin.cpp + $(CXX) `wx-config --cxxflags` -I../../gtk -c penguin.cpp lw.o: lw.cpp - $(CPP) `wx-config --cflags` -I../../gtk -c lw.cpp + $(CXX) `wx-config --cxxflags` -I../../gtk -c lw.cpp trackball.o: trackball.c $(CC) `wx-config --cflags` -I../../gtk -c trackball.c