X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c661ecca60bd71a6d4561425da832cb9e0b30d67..8916d00747c8e7b704ad549afcd8d0f88b6d861e:/samples/opengl/penguin/makefile.unx?ds=inline diff --git a/samples/opengl/penguin/makefile.unx b/samples/opengl/penguin/makefile.unx index 2add0896b3..778d905184 100644 --- a/samples/opengl/penguin/makefile.unx +++ b/samples/opengl/penguin/makefile.unx @@ -7,22 +7,26 @@ # # Makefile for penguin example (UNIX). +OPENGL_LIBS=-lGL -lGLU +#if you have old Mesa, try this: +#OPENGL_LIBS=-lMesaGL -lMesaGLU + CPP = g++ -CC = gcc +CXX = $(shell wx-config --cxx) Penguin: penguin.o trackball.o lw.o $(CPP) -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 + $(CPP) `wx-config --cxxflags` -I../../gtk -c penguin.cpp lw.o: lw.cpp - $(CPP) `wx-config --cflags` -I../../gtk -c lw.cpp + $(CPP) `wx-config --cxxflags` -I../../gtk -c lw.cpp trackball.o: trackball.c - $(CC) `wx-config --cflags` -I../../gtk -c trackball.c + $(CXX) `wx-config --cxxflags` -I../../gtk -c trackball.c clean: rm -f *.o Penguin