X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c661ecca60bd71a6d4561425da832cb9e0b30d67..841f23e18a9d9e3d987b60422c3a220571868337:/samples/opengl/penguin/makefile.unx?ds=sidebyside diff --git a/samples/opengl/penguin/makefile.unx b/samples/opengl/penguin/makefile.unx index 2add0896b3..bc26127d08 100644 --- a/samples/opengl/penguin/makefile.unx +++ b/samples/opengl/penguin/makefile.unx @@ -7,19 +7,23 @@ # # Makefile for penguin example (UNIX). -CPP = g++ -CC = gcc +OPENGL_LIBS=-lGL -lGLU +#if you have old Mesa, try this: +#OPENGL_LIBS=-lMesaGL -lMesaGLU + +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 -lMesaGL -lMesaGLU + `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